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, 05: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, 07:03 PM   #2
Terry
The "e" in e-mail
 
Join Date: Jul 2002
Location: VK4
Posts: 2,995
I am no expert but try it without the *
Terry is online now   Reply With Quote
Old 8 Jun 2017, 09:48 PM   #3
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,084
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, 03: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 08:20 PM.

 

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