Community Discussions and Support
How do I forward selected email?

I figured it out.  My wife's inbox is "wife". I created an alias "wife@mydomain.com", which is associated with a filter file, "wife.rul".

The filter file puts all the email in the "wife" inbox, and then selectively forwards emails to the BlackBerry:

# First save all email in the Pegasus inbox
Always Copy "wife"
# Now select which email get dropped
If header "S" contains "Daily Comics" Exit ""
If header "FE" contains "newsletters@news.com" Exit ""
# Anything else is forwarded to the BB
Always Forward "wife@blackberry.net"

When delivering email to "wife@mydomain.com", Mercury always uses the alias, so all email, including BCC goes through the alias. 

As Thomas suggested, I did use a list type filter for the list of senders that should not be forwarded.

 

<p>I figured it out.  My wife's inbox is "wife". I created an alias "wife@mydomain.com", which is associated with a filter file, "wife.rul".</p><p>The filter file puts all the email in the "wife" inbox, and then selectively forwards emails to the BlackBerry:</p><p><font face="courier new,courier"># First save all email in the Pegasus inbox Always Copy "wife" # Now select which email get dropped If header "S" contains "Daily Comics" Exit "" If header "FE" contains "newsletters@news.com" Exit "" # Anything else is forwarded to the BB Always Forward "wife@blackberry.net" </font></p><p>When delivering email to "wife@mydomain.com", Mercury always uses the alias, so all email, including BCC goes through the alias. </p><p>As Thomas suggested, I did use a list type filter for the list of senders that should not be forwarded.</p><p> </p>

I'm trying to configure Mercury/32 (v4.52) so that some (but not all) of my wife's incoming email gets copied to her BlackBerry. Here's what I tried:

1) Verified that email sent to user@blackberry.net shows up in her Blackberry.

2) Created a filter, user.rul, that forwards to the BlackBerry all mail that does NOT have "xxxxx" in the Subject:

       if subject contains "xxxxx" exit rule processing
       always forward to user@blackberry.net

3) Created a Marcury alias, blackberry@mydomain.com that is aliased to
                filter:c:\mercury\user.rul

4) Tested that the filter and alias combination works as expected:

   Mail sent to blackberry@mydomain.com (the alias)
    a) if Subject contains xxxxx, mail is dropped (as expected)
    b) Otherwise, mail is sent to user@blackberry.net (as expected)

5) Create a FORWARD file for user@mydomain.com that forwards incoming email to the alias:
     Forward-To: blackberry@mydomain.com
     Deliver-Also: Y

6) Tested by sending email to user@mydomain.com
   a) All incoming email is delivered to user@mydomain.com inbox (as expected)
   b) All incoming email is sent to filter (as seen in the Mercury Core window) but is always dropped - independent of the Subject line

I have to be doing something dumb, but I can't see what it is.


<p>I'm trying to configure Mercury/32 (v4.52) so that some (but not all) of my wife's incoming email gets copied to her BlackBerry. Here's what I tried:</p><p>1) Verified that email sent to user@blackberry.net shows up in her Blackberry. </p><p>2) Created a filter, user.rul, that forwards to the BlackBerry all mail that does NOT have "xxxxx" in the Subject: </p><p>       if subject contains "xxxxx" exit rule processing        always forward to user@blackberry.net 3) Created a Marcury alias, blackberry@mydomain.com that is aliased to                 filter:c:\mercury\user.rul</p><p>4) Tested that the filter and alias combination works as expected: </p><p>   Mail sent to blackberry@mydomain.com (the alias)     a) if Subject contains xxxxx, mail is dropped (as expected)     b) Otherwise, mail is sent to user@blackberry.net (as expected) 5) Create a FORWARD file for user@mydomain.com that forwards incoming email to the alias:      Forward-To: blackberry@mydomain.com      Deliver-Also: Y </p><p>6) Tested by sending email to user@mydomain.com    a) All incoming email is delivered to user@mydomain.com inbox (as expected)    b) All incoming email is sent to filter (as seen in the Mercury Core window) but is <b>always</b> dropped - independent of the Subject line </p><p>I have to be doing something dumb, but I can't see what it is.</p><p> </p>

I'm having a bit of chaos following what you mean. Does user@mydomain.com have both a forward file and an always filter rule, and this combination does not work with only subject filtering or with any filter trigger?

I'm having a bit of chaos following what you mean. Does <A href="mailto:user@mydomain.com">user@mydomain.com</A> have both a forward file and an always filter rule, and this combination does not work with only subject filtering or with any filter trigger?

The user, user@mydomain.com, has a FORWARD file, that forwards the email to the Mercury alias 'blackberry@mydomain.com'.

This alias is associated with a filter (as far as I know, you can only associate filters with aliases and not with users).

The problem is that if I send email to the alias, the email is processed by the filter and sent on to the blackberry, but if I send email to the user, the email seems to be processed by the filter, but it does not get sent on to the blackberry.

 

<p>The user, user@mydomain.com, has a FORWARD file, that forwards the email to the Mercury alias 'blackberry@mydomain.com'.</p><p>This alias is associated with a filter (as far as I know, you can only associate filters with aliases and not with users).</p><p>The problem is that if I send email <b>to the alias</b>, the email is processed by the filter and sent on to the blackberry, but if I send email <b>to the user</b>, the email seems to be processed by the filter, but it does not get sent on to the blackberry.  </p>

I'm not sure I follow what you are doing.  I would simply use a global rule looking for the users email address AND the matching subject and forward it to the blackberry account/address.  Here's one where I'm matching an email address and header and forwarding to an external address.  The addresses have been munged.  The mail is delivered to the local account and forwarded to an external account.

If header "FCT" contains "address@mydomain.com" LogicalAnd ""
If expression headers matches "*Content-Type: text/calendar*" Forward "address@otherdomain.com"

Am I missing something about what you are trying to do? 

<p>I'm not sure I follow what you are doing.  I would simply use a global rule looking for the users email address AND the matching subject and forward it to the blackberry account/address.  Here's one where I'm matching an email address and header and forwarding to an external address.  The addresses have been munged.  The mail is delivered to the local account and forwarded to an external account. </p><p>If header "FCT" contains "address@mydomain.com" LogicalAnd "" If expression headers matches "*Content-Type: text/calendar*" Forward "address@otherdomain.com" </p><p>Am I missing something about what you are trying to do? </p>

Here's what I'm trying to accomplish:

The current arrangement is that all her incoming email is delivered to her regular Mercury inbox. In addition to that, a copy of ALL the email is being forwarded to the BlackBerry by means of a FORWARD file. This works, but can be improved.

It would be nice if she could have SOME of the email NOT copied to the BlackBerry. For example, she's subscribed to several newsletters. She doesn't need them on the BlackBerry, and can read them later, when she fires up Pegasus at home. Sending those on to the BlackBerry just clutters up its limited display. It's easy to make a list of senders or subject lines that should NOT be copied to the BlackBerry.

My idea was to create some sort of filter that decides if each incoming email should be copied to the BlackBerry or not, but that ALWAYS saves ALL her incoming email in the Mercury inbox.

Any suggestions on how to do this?

 
Thanks
 

 

<p>Here's what I'm trying to accomplish:</p><p>The current arrangement is that all her incoming email is delivered to her regular Mercury inbox. In addition to that, a <b>copy</b> of ALL the email is being forwarded to the BlackBerry by means of a FORWARD file. This works, but can be improved.</p><p>It would be nice if she could have SOME of the email NOT copied to the BlackBerry. For example, she's subscribed to several newsletters. She doesn't need them on the BlackBerry, and can read them later, when she fires up Pegasus at home. Sending those on to the BlackBerry just clutters up its limited display. It's easy to make a list of senders or subject lines that should NOT be copied to the BlackBerry. </p><p>My idea was to create some sort of filter that decides if each incoming email should be copied to the BlackBerry or not, but that ALWAYS saves ALL her incoming email in the Mercury inbox.</p><p>Any suggestions on how to do this?</p><p>  Thanks  </p><p> </p>

Dump the forward file and aliases and add the following to your rules.mer.  This pair of rules looks for the email address in the To: Cc: fields AND if .TRUE. will forward the message to the blackberry email address if the subject contains the text XXXXX.  Is this not what you are trying to do?

If header "CT" contains "email@mydomain.com" LogicalAnd ""
If header "S" contains "XXXXXX" Forward "user@blackberry.com"

When I work with "crackberry" users though I generally set the second rule to look at the SIZE of the message and only forward it if is less than a specified size.  I've found that "crackberry" users want to get all of their mail via the "crackberry" if at all possible.  ;-)

 


 

<p>Dump the forward file and aliases and add the following to your rules.mer.  This pair of rules looks for the email address in the To: Cc: fields AND if .TRUE. will forward the message to the blackberry email address if the subject contains the text XXXXX.  Is this not what you are trying to do? </p><p>If header "CT" contains "email@mydomain.com" LogicalAnd "" If header "S" contains "XXXXXX" Forward "user@blackberry.com" </p><p>When I work with "crackberry" users though I generally set the second rule to look at the SIZE of the message and only forward it if is less than a specified size.  I've found that "crackberry" users want to get all of their mail via the "crackberry" if at all possible.  ;-)</p><p> </p><p>  </p>

Thomas:

Your idea almost works. But remember that what I have is a list of things that should NOT be forwarded to the BlackBerry .Everything else needs to be forwarded. Therefore the rules.mer has to look more or less like this:

# if mail is not for wife. dont send to her BB
If NOT header "CT" contains "wife@mydomain.com" Goto "skipBB"
# Mail for wife - dont send cartoons and newsletters to BB
If header "S" contains "Daily Cartoon" Goto "skipBB"
If header "F" contains "newsletters@news.com" Goto "skipBB"
# Everything else goes to BB
Always Forward "wife@blackberry.net"
# Continue processing
Label "skipBB"

But now, if someone sends an email with a BCC to my wife, it will not be sent to her BlackBerry, even though it was not a cartoon or a newsletter.

The beauty of using the FORWARD file is that this file is processed after Mercury has resolved which inbox gets the email, so the BCC issue has been taken care of. 

 

<p>Thomas:</p><p>Your idea almost works. But remember that what I have is a list of things that should NOT be forwarded to the BlackBerry .Everything else needs to be forwarded. Therefore the rules.mer has to look more or less like this:</p><p># if mail is not for wife. dont send to her BB If NOT header "CT" contains "wife@mydomain.com" Goto "skipBB" # Mail for wife - dont send cartoons and newsletters to BB If header "S" contains "Daily Cartoon" Goto "skipBB" If header "F" contains "newsletters@news.com" Goto "skipBB" # Everything else goes to BB Always Forward "wife@blackberry.net" # Continue processing Label "skipBB" But now, if someone sends an email with a BCC to my wife, it will not be sent to her BlackBerry, even though it was not a cartoon or a newsletter. </p><p>The beauty of using the FORWARD file is that this file is processed after Mercury has resolved which inbox gets the email, so the BCC issue has been taken care of. </p><p> </p>

You seem to know what mail you do not want forwarded so why not why not simply create a dist list with the addresses that you do not want forwarded and then do a list can type filter for the second part. You can also MOVE these messages to a separate account and the forward everything that goes to the original account using the FORWARD file.

The beauty of using the FORWARD file is that this file is processed

after Mercury has resolved which inbox gets the email, so the BCC issue

has been taken care of.

But that did not work because mail from the server to the alias was discarded to prevent looping. The only way the forward file would work is to keep the mail that you do not want forwarded from being delivered to this account.
You seem to know what mail you do not want forwarded so why not why not simply create a dist list with the addresses that you do not want forwarded and then do a list can type filter for the second part. You can also MOVE these messages to a separate account and the forward everything that goes to the original account using the FORWARD file. <blockquote>The beauty of using the FORWARD file is that this file is processed after Mercury has resolved which inbox gets the email, so the BCC issue has been taken care of. </blockquote>But that did not work because mail from the server to the alias was discarded to prevent looping. The only way the forward file would work is to keep the mail that you do not want forwarded from being delivered to this account.
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft