Quantcast
Channel: Mercury Community Support
Viewing all articles
Browse latest Browse all 272

Working with "Labels"

$
0
0

This is the first time I ty to work with Labels. But my simple script doesn't work as expected. Only mails from ipcam1@domain.com should trigger the Label "IPCAM". It should save the attachment. This is working so far, but is saving jpg attachments from any mails, not only from sender ipcam1@domain.com. Where I'm wrong?

Mercury Global Rules
If header "F" is "ipcam1@domain.com" Call "IPCAM"
If header "F" contains "noreply@domain.com" Copy "name@domain.com"
If header "F" contains "jobiniton.de" Move "spam"
If size > 13000000 SendMessage "jm:E:\\Mercury\\RESOURCE\\MailSize.txt"
If size > 13000000 SendTextFile "E:\\Mercury\\RESOURCE\\attachment too big.txt"
If size > 13000000 Delete ""
If header "F" contains "spam@domain.com" Exit ""
If expression headers matches "X-SPAMHALTER: SPAM*" Move "spam"
Label "IPCAM"
If attachment ExtnPart contains "jpg" SaveAttmt "@D:\\Logs\\IPCam"
Always Return ""



Viewing all articles
Browse latest Browse all 272