|
FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc. |
|
Thread Tools |
28 Jan 2004, 09:19 AM | #1 |
Senior Member
Join Date: Nov 2001
Location: CT, USA
Posts: 124
|
Forwarding rule not accepted
I am trying to create a rule that mail sent to a particular address gets forwarded to five other addresses. I'm using the easy interface, not having worked with Sieve directly.
I get this error message: ERROR: the new sieve script has errors and will not be used. The most recent working version of the script is still in place. The errors in the new version were: line 72: address '[a@b.com, c@d.com, e@f.com, g@h.com, i@j.com]': parse error, expecting `$' I've tried searching the forum, the FAQ, and the Wiki, but haven't come up with what I'm doing wrong. |
28 Jan 2004, 01:55 PM | #2 |
Essential Contributor
Join Date: Dec 2002
Location: Sydney, Australia
Posts: 475
|
Have you tried adding each target address as a separate forwarding rule?
Regards, AB |
28 Jan 2004, 02:11 PM | #3 |
Senior Member
Join Date: Nov 2001
Location: CT, USA
Posts: 124
|
Silly me. I was thinking that I had successfully made a rule using two addresses, in a different account. I just looked -- planning to be very brave and see what the sieve script looked like for it -- and found that in fact I had two rules.
So I will go the route of separate rules, unless someone comes along and says that there is a way to construct one forwarding rule with multiple addresses. |
28 Jan 2004, 02:38 PM | #4 | |
Essential Contributor
Join Date: Dec 2002
Location: Sydney, Australia
Posts: 475
|
Quote:
Regards, AB |
|
28 Jan 2004, 04:05 PM | #5 | |
Guest
Posts: n/a
|
Re: Forwarding rule not accepted
Quote:
Code:
address ["a@b.com","c@d.com","e@f.com"] |
|
18 Oct 2004, 12:35 AM | #6 |
Cornerstone of the Community
Join Date: Oct 2001
Location: Somerville, MA, USA
Posts: 656
|
The problem with multiple rules is that if you want to save a copy, you'd have to manually make all but the last rule a "discard" rule so you'd only get one copy, right?
|
18 Oct 2004, 01:44 AM | #7 | |
Intergalactic Postmaster
Join Date: Oct 2003
Location: Canada
Posts: 5,428
|
Quote:
Susan. |
|
18 Oct 2004, 02:30 AM | #8 | |
Moderator
Join Date: Dec 2002
Location: USA
Posts: 8,687
|
Quote:
header :contains "from" ["address1", "address2"] {redirect "address@gmail.com"; } if false I have a check mark in "Silent" This sends a copy to gmail and auto files to the matching SubDomain folder. I'm not sure what to do if you don't want a copy kept? Sherry |
|
18 Oct 2004, 08:48 PM | #9 | |
The "e" in e-mail
Join Date: May 2002
Posts: 2,804
|
Quote:
|
|
18 Oct 2004, 10:19 PM | #10 |
Cornerstone of the Community
Join Date: Oct 2001
Location: Somerville, MA, USA
Posts: 656
|
so if I want a message to a@mydomain.com to go to b@mydomain.com and c@mydomain.com and I also want to keep a copy, my rules should be, in this order ("basic" rules screen):
to/cc a@mydomain.com b@mydomain.com to/cc a@mydomain.com c@mydomain.com DELETE sorry, I'm trying to do this from memory -- can't get into FM's web interface at the moment |
18 Oct 2004, 10:47 PM | #11 |
The "e" in e-mail
Join Date: May 2002
Posts: 2,804
|
As long as you dont set them all to delete a local copy is kept. Apart from that it doesn't matter.
|
24 Oct 2004, 01:12 PM | #12 | |
Moderator
Join Date: Dec 2002
Location: USA
Posts: 8,687
|
Quote:
Look In: Advanced For Text Matching: header :contains ["to", "cc"] "jcitizen@fastmail.fm" Forward To: joecitizen@example.org"; redirect "address2@example.org"; redirect "address3@example.org Hope you don't mess up your rules trying this unless someone says it will work... Sherry EDIT: This does work. Just tried it. Last edited by Sherry : 24 Oct 2004 at 03:07 PM. |
|
24 Oct 2004, 10:07 PM | #13 |
Guest
Posts: n/a
|
It would be better to use the X-Delivered-To header (or equivalently, the "envelope" option from the drop-down), I think.
Code:
Originally posted by Sherry joecitizen@example.org"; redirect "address2@example.org"; redirect "address3@example.org Sherry, do you know if it's possible to use a second "require" statement without using a custom script? I couldn't do this, because I couldn't find out how to insert it before the first "if". |
25 Oct 2004, 02:25 AM | #14 |
Moderator
Join Date: Dec 2002
Location: USA
Posts: 8,687
|
Wow Daniel, I can't believe you're asking me a question about doing something in sieve. My knowledge is a teeny drop in the bucket where yours is the whole bucket full.
Anyway, I don't even know how I got it to work. I also don't know if it would mess up someone’s script if they tried it. (it didn't mess up any of my file into folder or reject rules. I just tried a whole bunch of combinations with and without the quotes, brackets, commas and semi colons until, all of a sudden there was no error and when tested, it worked. I didn't use the X-Delivered-To because, if I understand it right, it would not work with a subdomain. The To: address I tried it with is a subdomain address. Sherry |
25 Oct 2004, 04:34 AM | #15 |
Master of the @
Join Date: Apr 2003
Posts: 1,395
Representative of:
Fastmail.FM |
Daniel: I don't think you can add a second require with the basic rules interface. But, why are you trying to do this?
Btw, Sherry's solution looks cool. And using X-Delivered-To header is a better option - else, you might miss Bcc'd messages when redirecting. |