procmail
[Top] [All Lists]

Re: Forwarding to a second email account

1999-08-29 09:31:09
A friend who has been using a very simple procmail recipe to sort mail 
into different folders in his account, has asked me to enquire about 
the following situation.

What you haven't specified is how he wants this done. For example, does he
want *all* mail forwarded, so that he can invoke procmail on the temporary
account, and duplicate his mail folder collection there? Does he want mail
sorted into folders at the permanent place, then simply toss copies at the
temporary place? There are a gazillion ways to do this.

He will be working temporarily at another university. He will have a
separate email account at that university during that time. Rather 
than having to telnet into his permanent account, he would like to be 
able to have mail sent from this permanent account to his temporary 
account.

This is diffcult to answer (see possible boatload of reasons above)
I guess the *easiest* way to do it is to add an action to any mail
he wants to read on his temporary account, (and maybe keep a copy for when
he returns?)
So, a recipe that reads like so:
  :0:
  * ^From.*joe
  * ^Subject:.*Inventory
 in-inventory
Just chucks mail from Joe concerning Inventory into a file called
in-inventory.

If I was elsewhere, and needed to read mail from Joe which concerned
inventory, but wanted to keep a copy in that same folder as above, I'd do
something like this;
  :0
  * ^From.*joe
  * ^Subject.*Inventory
  ! me(_at_)my_new_home(_dot_)com

        :0 A
        in-inventory

Is there a line or two he can add to his current procmailrc which will 
do that?  
Yes, that's about what it amounts to....adding lines to current recipes.

(I never thought I'd be saying this....but) It's not wisdom, all of this
can be found in the man pages for procmail. Your friend must have been
there at some point (I would think anyway) if he's currently using
procmail.
Collective wisdom welcomed.

That said, I hope the above helps.
Regards,
-Colin

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