Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I'd like to forward incoming Gmail to exactly one of two places, depending on the sender, something like this:

  • If the sender is a.com or z.com, forward only to myid@firstforward.com and delete.
  • If the sender is anyone else, forward only to myid@secondforward.com and delete.

I've tried doing this with various filter incantations, but with no luck - both filters kick in, and the mail gets forwarded to both places. Is there any way to make it happen?

EDIT: I just tried these filters:

  • from:(a.com OR z.com) : Skip Inbox, Forward to myid@firstforward.com, Delete it
  • from:(-a.com AND -z.com) : Skip Inbox, Forward to myid@secondforward.com, Delete it

This works fine, except that all spam is being directed to the second forward as well. (Apparently we're no longer able to negate entire "from" clauses with a single hyphen.)

share|improve this question
    
'No luck' - what happens to your email? Are messages being forwarded and not deleted, or does nothing happen at all? –  Vidar S. Ramdal Feb 21 '13 at 11:49
    
@VidarS.Ramdal: Edited for clarity. –  Tony Feb 21 '13 at 21:58
    
In some ways, Gmail filters are very powerful, but in others rather lacking. While there's some evidence that the order of the filters matters, I don't think that you can rely on it. Certainly there's no action which says "Stop processing more rules" like there is in, say, Microsoft Outlook. –  Al E. Feb 22 '13 at 14:03
    
Perhaps you can add "Star it" to the actions of the first filter, then add -is:starred to the search criteria of the second filter. –  Al E. Feb 22 '13 at 14:06

1 Answer 1

up vote 0 down vote accepted

It appears that Gmail doesn't offer a way to accomplish what I want. Ultimately I just forwarded all Gmail to my web host, and used their [far better and more flexible] filters to send it where I really want it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.