procmail
[Top] [All Lists]

Re: Leaving a copy on the server.

1996-05-29 02:40:11
    Ray> but: Is there a way to leave the mail on the server?

    Ray> At work, I want to forward copies of some email to my
    Ray> home account.  This part works fine, but I check my mail
    Ray> using Eudora on my pc -- I don't use any unix mail
    Ray> programs.  Eudora won't find any mail, because procmail
    Ray> has already pulled it off the server and I can't get it
    Ray> to read unix mail files directly.  Any ideas?

I think the spool is just like any other file for Procmail.  If
you're using the .forward, sendmail is not touching the spool, so
you can get Procmail to write it.  Something like the following:

:0:
* conditions to determine which mail you want to read from home
/usr/spool/mail/degennar 

If you want to execute other actions:

# No need for lockfiles in compound recipes
:0
* conditions to determine which mail you want to read from home
{
# The c option means that procmail will continue processing
:0 c:
/usr/spool/mail/degennar 

:0
Other actions here
}

Sacha

Alexander V. (Sacha) Sardo Infirri       Tel/Fax:+81-75-753-7214/7272 
RIMS, Kyoto University, Kitashirakawa, Sakyou-ku, Kyoto 606-01, Japan.
http://www.kurims.kyoto-u.ac.jp/~sacha/ or finger for PGP Key
Key fingerprint = 79 17 C1 CC 39 72 FB F6  F4 28 B8 FE A2 26 A1 8B

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