|
FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc. |
|
Thread Tools |
26 May 2008, 07:26 AM | #1 |
Cornerstone of the Community
Join Date: Jul 2002
Location: Tacoma, WA
Posts: 642
|
Sieve tester out of date
The wonderful Sieve Tester maintained by SanjaySeth (at http://sastools.com/SieveTest/sievetest.php) works wonderfully but doesn't support some modern extensions (such as "body"). Does anyone know of an updated Sieve script test?
|
27 May 2008, 10:18 AM | #2 |
Intergalactic Postmaster
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 6,102
Representative of:
Fastmail.FM |
I copied and updated sanjays script a while back.
http://www.fastmail.fm/docs/sieve/sievetest.php It uses the same install of cyrus that our backend servers do, so it should be up to date. Rob |
27 May 2008, 11:39 AM | #3 |
Cornerstone of the Community
Join Date: Jul 2002
Location: Tacoma, WA
Posts: 642
|
Marvellous! Thank you!
(Perhaps Sanjay might consider linking back to this new one...) |
28 May 2008, 02:16 AM | #4 |
Master of the @
Join Date: Mar 2002
Location: Chicago
Posts: 1,079
|
In fact, this is a great thing. I haven't had a chance to update or maintain that tester for a long time so it will be nice if Fastmail can keep it up to date.
I'll update my website to redirect my sieve tester page to the Fastmail page. - Sanjay |
28 May 2008, 05:59 AM | #5 | |
Master of the @
Join Date: Aug 2002
Location: Israel
Posts: 1,060
|
Quote:
Is there any chance you could add this link to the Advanced Rules (Sieve Script Source) window? This way, users who are not forum participants will also be able to enjoy it (and it would also be more accessible to the rest of us). Thanks! Prog. |
|
28 May 2008, 10:22 AM | #6 |
Intergalactic Postmaster
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 6,102
Representative of:
Fastmail.FM |
Will do. Should be on beta now.
Rob |
28 May 2008, 11:46 AM | #7 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,929
|
|
28 May 2008, 11:08 PM | #8 |
Master of the @
Join Date: Mar 2002
Location: Chicago
Posts: 1,079
|
Rob,
Since you've added the link to the sieve tester on that page, I would suggest going one small step further and automatically preloading the tester with the current sieve script that a user has set. That would make it a one-click operation. For bonus points, put something on the email actions list (the dropdown while you are viewing an email) that will automatically go to the sieve tester page with the user's current sieve script preloaded as well as the current email preloaded so a user can see exactly how sieve processed it... I think that is the most common usage of the sieve tester anyways (to see why a particular email isn't getting filed correctly...) |
29 May 2008, 08:16 AM | #9 |
Intergalactic Postmaster
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 6,102
Representative of:
Fastmail.FM |
I have had a long term plan to add a "Apply sieve rules" action on the Mailbox screen so you can select a range of emails and have your sieve rules applied.
Actually, it wouldn't immediately apply them, instead it would come back with a screen like: [ ] 20 emails - discard [ ] 15 emails - fileinto "xyz" ... etc ... And you then checkbox the actions you actually want to happen. I could implement this already, but it would require retrieving every email from the server and running the sieve-test program on it. A better idea is to add a new IMAP command which runs the test on the server, and returns the results back to the client. That way you don't have to copy every email over the network, and launch a separate sieve-test process on every one. I looked briefly into this a while back, and it should be straightforward to do, it's just yet another piece of work on the stack... Rob |
29 May 2008, 08:19 AM | #10 |
Intergalactic Postmaster
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 6,102
Representative of:
Fastmail.FM |
I guess I should say, you're suggestion would be quicker to implement right now
Hmmm, what would be the best way of filling in the form fields though? I'd prefer to not give the php script any access to FM usernames or other information. A standard redirect would end up with a URL that's too long trying to hold all the script + message data. You want a POST redirect of some sort? Any ideas? Rob |