EmailDiscussions.com  

Go Back   EmailDiscussions.com > Email Service Provider-specific Forums > FastMail Forum
Register FAQ Members List Calendar Today's Posts
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 14 Nov 2005, 11:28 PM   #1
astral
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!
astral is offline   Reply With Quote

Old 14 Nov 2005, 11:45 PM   #2
astral
Member
 
Join Date: Dec 2003
Posts: 44
aha!

if true {
redirect :copy "xxx@xyz";
}
astral is offline   Reply With Quote
Old 14 Nov 2005, 11:51 PM   #3
astral
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.
astral is offline   Reply With Quote
Old 15 Nov 2005, 12:09 AM   #4
astral
Member
 
Join Date: Dec 2003
Posts: 44
hmm, looks like redirect followed by a keep may work.
astral is offline   Reply With Quote
Old 15 Nov 2005, 12:40 AM   #5
n5bb
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; }
n5bb is offline   Reply With Quote
Old 15 Nov 2005, 12:45 AM   #6
astral
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...)
astral is offline   Reply With Quote
Old 15 Nov 2005, 01:20 AM   #7
DBH
 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.
DBH is offline   Reply With Quote
Old 15 Nov 2005, 01:27 AM   #8
DianeB
Cornerstone of the Community
 
Join Date: Nov 2003
Location: USA-South Carolina
Posts: 503
Quote:
Originally posted by DBH
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.
Ditto here too.

~Diane
DianeB is offline   Reply With Quote
Old 15 Nov 2005, 01:35 AM   #9
astral
Member
 
Join Date: Dec 2003
Posts: 44
Quote:
Originally posted by DBH
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.
these automatic config options are unfortunately not available when you have a custom script.
astral is offline   Reply With Quote
Old 15 Nov 2005, 01:37 AM   #10
DBH
 Moderator 
 
Join Date: Mar 2002
Location: USA
Posts: 1,533
Bummer, I thought you could do that in addition to the custom script. Sorry.
DBH is offline   Reply With Quote
Reply



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 04:16 AM.

 

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