procmail
[Top] [All Lists]

Re: How to detect "How procmail was called?"

2009-01-21 06:47:58
Hello Bart,

Am 2009-01-16 08:12:09, schrieb Bart Schaefer:
I'd have to say no, there isn't.

Your best bet is probably to have the caller put something to identify
itself into an environment variable, and then test the value of that
variable.

If you have to, you can do this by building a wrapper script around procmail:

#!/bin/sh
export PROCMAIL_CALLER=fetchmail
exec procmail "$@"

Then in fetchmailrc you invoke the wrapper instead of procmail.  Use a
different wrapper for courier, etc.

OK, thanks for the info...

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>               <http://www.can4linux.org/>
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)


____________________________________________________________
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>