On Thu, 14 Dec 2000, Charrua wrote:

> Hi , thank you for you prompt answer to my message.
> 
> Excuse my lack of experience but it isn't clear to me the way the message
> copy works, my doubts are as follows:

Go back and read the man pages, examine http://www.qmail.org and
http://Web.InfoAve.Net/~dsill/lwq.html. There is a wealth of
information there just waiting for you to read it.

> 
> 1. Where are these messages stored?
> 2. Can you give me an approximate idea of how the filter you suggest works.
> Would it be with a script?

By making the appropriate patch (as outlined in the FAQ), every
message is ALSO delivered to a local user called log. On the
assumption that you don't have a local user called log, the message
will be controlled by the contents of

    ~alias/.qmail-log

(Just like it says in the FAQ).

So, in ~alias/.qmail-log you would put:

    | myfilter
    ./trapped

And myfilter would examine the message and determine if it was from,
or for the user in question and then exit 0. Then the message would be
saved in the file ~alias/trapped for you to examine at your leisure. If
the message wasn't from or for the user it would exit 99 and the
message would not be saved anywhere.

It's up to you to write myfilter, Have a look at the dot-qmail and
qmail-command man pages.

-- 
Regards
Peter
----------
Peter Samuel                            [EMAIL PROTECTED]
http://www.e-smith.org (development)    http://www.e-smith.com (corporate)
Phone: +1 613 368 4398                  Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to