procmail
[Top] [All Lists]

"Synchronizing" mail in 2 accounts

2000-02-01 11:30:36
Hey Gang!
I have a user with 2 accounts, both shells that need to have the same mail
in them (all sent to account 1 is copied to 2, all sent to 2 is also
copied to 1)
This is definitely a ringing mail scenario if not handled properly. This
is what I was able to come up with, right out of procmailex;
#Send stuff to account 2 (everything)
:0 c
! user(_at_)account2
# wont send anything that originally came from account2
* !^X-Loop: user(_at_)account2

#Send stuff to account1
:0 c
! user(_at_)account1
# won't send anything that originally came from account 1
* !^X-Loop: user(_at_)account1

#User should not miss any mail, regardless of where it was sent.
#What happens if user is sent mail to both, or sent to 1 and Cc'd to 2

Any thoughts on this? 

Regards as always, & TIA
-Colin

<Prev in Thread] Current Thread [Next in Thread>