|
FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc. |
|
Thread Tools |
14 Nov 2005, 11:28 PM | #1 |
Member
Join Date: Dec 2003
Posts: 44
|
forwarding e-mail from FM post-reception?
I have a custom sieve script running custom filtering. However, I'd like to forward every e-mail I get to another e-mail account AS WELL as receive it into my fastmail account. So for every e-mail, I get a copy in my FM, as usual, and another one forwarded to the other e-mail.
The redirect feature seems to permanently forward the e-mail (i.e. doesn't go to FM mailbox anymore). Thanks in advance! |
14 Nov 2005, 11:45 PM | #2 |
Member
Join Date: Dec 2003
Posts: 44
|
aha!
if true { redirect :copy "xxx@xyz"; } |
14 Nov 2005, 11:51 PM | #3 |
Member
Join Date: Dec 2003
Posts: 44
|
grrr, nope, I get "script errors: line 71: copy not required" when I try redirect :copy. However, non-:copy redirect doesn't keep the emails at FM.
Any ideas? Last edited by astral : 15 Nov 2005 at 12:04 AM. |
15 Nov 2005, 12:09 AM | #4 |
Member
Join Date: Dec 2003
Posts: 44
|
hmm, looks like redirect followed by a keep may work.
|
15 Nov 2005, 12:40 AM | #5 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,926
|
This example will copy emails to a secondary site and keep a copy at Fastmail. Note that you must include copy in the require declaration.
You must place the redirect :copy statement in a location in your script where it captures the messages you want to redirect. So I would place it after any code which discards spam, but before filing code. I have also included a test using the new body search. Code:
### Forwarding example using new copy feature require ["envelope", "fileinto", "reject", "notify", "vacation", "regex","relational","comparator-i;ascii-numeric","body","copy"]; redirect :copy "jcitizen@gmail.com"; if body :text :contains "testing" { fileinto "INBOX.Junk Mail"; stop; } |
15 Nov 2005, 12:45 AM | #6 |
Member
Join Date: Dec 2003
Posts: 44
|
ah, OK, I suppose I didn't have copy then.
Eh, if I only didn't edit my sieve script by hand! (And the only reason for doing so was to be able to apply FM rules to existing mail...) |
15 Nov 2005, 01:20 AM | #7 |
Moderator
Join Date: Mar 2002
Location: USA
Posts: 1,533
|
Just make sure the Delete box is unchecked in the Automatic Forwarding section. Your mail will be forwarded to wherever you want it, and you'll also keep the same mail in your inbox. I've been doing that the last 2 days without a problem.
|
15 Nov 2005, 01:27 AM | #8 | |
Cornerstone of the Community
Join Date: Nov 2003
Location: USA-South Carolina
Posts: 503
|
Quote:
~Diane |
|
15 Nov 2005, 01:35 AM | #9 | |
Member
Join Date: Dec 2003
Posts: 44
|
Quote:
|
|
15 Nov 2005, 01:37 AM | #10 |
Moderator
Join Date: Mar 2002
Location: USA
Posts: 1,533
|
Bummer, I thought you could do that in addition to the custom script. Sorry.
|