procmail
[Top] [All Lists]

Re: copy of all mails to one user

2006-02-01 08:20:12

On Wed, 1 Feb 2006, updatemyself . wrote:

Hai All,

is there any way to filter outgoing mail...

        As I know the answer is no.

i wish to add that also to my archive...

        If your mail client doesn't have the option to save
        sent messages you can do something with procmail:

        Never send the message directly to the recipient - send
        it to your self with a kyeword in the subject:

Subject: toto: misha(_at_)gmail(_dot_)com%%% Hello Misha

        Now.  In your .procmailrc:

:0
* Subject: toto: \/[^%]+
{
ADDR=$MATCH

        :0 fh
        |sed -e '/^Subject:/s/toto:.*%%%/ /' -e 's/^To:.*/To: '$ADDR'/'

        :0 c
        ! $ADDR

        :0
        sent-mail-archive
}

        Can it be more ugly?  Well, I don't know any mailer that
        has no archive-sent-mail option.

Bye,
 Udi



Please Help me..
i go through many document.. but nothing is working..
anway.. incomming mail is Adding to archive.. properly..
Thanks a lot for Your Help

i am using
=======================
sendmail-8.13.1-2
procmail-3.22-14
dovecot-0.99.11-2.EL4.1
squirrelmail-1.4.5
=======================

right now my *procmail recipe is.. as follows
/etc/procmailrc

*PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/mail      # You'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/from
LOCKFILE=$HOME/.lockmail


:0 c:
* ^To:(_dot_)*(_at_)dqe(_dot_)com
/home/admin/mail/mbox


If any way to Adchive the Outgoing mail.. Please Help me..

Thank You in Advance,
Jerrynikki


+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>