EmailDiscussions.com  

Go Back   EmailDiscussions.com > Email Service Provider-specific Forums > FastMail Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Stay in touch wirelessly

FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc.

Reply
 
Thread Tools
Old 8 Jun 2017, 04:45 PM   #1
Mr5o1
Junior Member
 
Join Date: Apr 2015
Posts: 8
rules, seive condition

I know you can create a custom seive script, but my question concerns using the UI to make rules, and using the "seive condition" option.

So in Settings > Rules > New Rule

Under the dropdown box where you select the condition type (defaults to "The sender's email") the very last option is "The seive condition..."

I can't figure out how to specify the condition. I'd like a rule to match emails which have a pdf attachment. So I've tried the condition:

Code:
attachment :matches "*.pdf"
But the interface won't accept that, like I get a "please check this" error.

Tahnks in advance.
Mr5o1 is offline   Reply With Quote

Old 8 Jun 2017, 06:03 PM   #2
Terry
The "e" in e-mail
 
Join Date: Jul 2002
Location: VK4
Posts: 2,490
I am no expert but try it without the *
Terry is offline   Reply With Quote
Old 8 Jun 2017, 08:48 PM   #3
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 2,480
I do not have time to test, but I think you need something like
Code:
body :raw :regex "filename=.+\\.pdf"
Since there is no header that contains information about attachments, you need to search the message body for the incantation that identifies them. Based on experience with this kind of test, be prepared for the occasional false positive.
BritTim is offline   Reply With Quote
Old 9 Jun 2017, 02:55 PM   #4
Mr5o1
Junior Member
 
Join Date: Apr 2015
Posts: 8
Thanks for the help.

I've decided that what I had in mind probably isn't the best idea.. so even though these may be solutions, I can't confirm they work.

Thanks again.
Mr5o1 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 11:55 PM.

 

Copyright EmailDiscussions.com 1998-2013. All Rights Reserved. Privacy Policy