Hallo,
ich habe ein kleines Problem mit einer Mail Rule. Und zwar handelt es sich um eingehende Faxe, die per Mail-Rule in einen entsprechenden Ordner verschoben werden sollen.
Bei "normalen" Mails funktioniert das auch einwandfrei, nur bei diesen "Faxen" erstellt er zwar den Link im gewünschten Ordner, versteckt aber hinterher die Fax-Mail nicht in der Inbox.
Ich habe da den "Before New Mail Arrives"-Agenten im verdacht. Dieser packt ein passendes Icon an das Fax und setzt noch ein oder 2 Felder.
Kann es sein, daß diese Änderungen die Mail-Rule dazu bewegen, die Fax-Mail nicht zu verstecken?
Hier der Code des Agenten:
| Dim ss As New notessession |
| Dim thisdb As notesdatabase |
| Dim thisdoc As notesdocument |
| Dim profdoc As notesdocument |
| |
| Const viewicon = 129 |
| |
| Set thisdb = ss.CurrentDatabase |
| Set thisdoc = ss.DocumentContext |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Select Case Ucase (thisdoc.X_C4BMessageClass (0)) |
| Case "FAXRECEIVE" |
| |
| Call thisdoc.replaceitemvalue ("_ViewIcon2", "xp_fax_view.gif") |
| Call thisdoc.replaceitemvalue ("xp_register", "3") |
| Case "FAXDR", "SMSDR" |
| |
| Call thisdoc.replaceitemvalue ("_ViewIcon2", "xp_dr_view.gif") |
| Call thisdoc.replaceitemvalue ("xp_register", "1") |
| Case "FAXNDR", "SMSNDR" |
| |
| Call thisdoc.replaceitemvalue ("_ViewIcon2", "xp_ndr_view.gif") |
| Call thisdoc.replaceitemvalue ("xp_register", "1") |
| Case "VOICE" |
| |
| Call thisdoc.replaceitemvalue ("_ViewIcon2", "xp_voicemail.gif") |
| Case Else |
| |
| Exit Sub |
| End Select |
| |
| thisdoc.form = "Memo" |
| thisdoc.C4BMessageClass = thisdoc.X_C4BMessageClass |
| |
| If Ucase (thisdoc.C4BMessageClass (0)) = "FAXRECEIVE" _ |
| Or Ucase (thisdoc.C4BMessageClass (0)) = "VOICE" _ |
| Then |
| |
| |
| |
| |
| |
| |
| |
| |
| Set profdoc = thisdb.GetProfileDocument ("C4BUmsProfileDocument") |
| If thisdoc.HasItem ("X_C4BMessageClass") _ |
| And thisdoc.X_C4BCallerNumber (0) <> "" _ |
| And profdoc.IsXPhoneInstalled (0) = "1" _ |
| And profdoc.XP_CallerIdentificationActive (0) = "1" Then |
| profdoc.xp_mailarrived = "1" |
| Call profdoc.Save (True, True) |
| thisdoc.UM_NotResolved = "1" |
| End If |
| |
| |
| thisdoc.XPhoneCallerEmail = thisdoc.X_C4BCallerEmail |
| End If |
| |
| Call thisdoc.PutInFolder ("($Inbox)") |
| Call thisdoc.Save (True, True) |
Gruß,
Markus