Knowing the local account ($DEFAULT) is actually perfect for my needs.
I'm doing some additional processing of incoming emails and need to
know where the message being processed is going to be delivered.
Although I wish there was a variable with just the username so I do
not need to run an additional awk command per email.
I'm in control of the /etc/procmailrc and do my processing before any
user recipes, so there's no worries about $DEFAULT changing.
Thanks,
Scott
On Tue, Dec 1, 2009 at 9:46 AM, Professional Software Engineering
<PSE-L(_at_)mail(_dot_)professional(_dot_)org> wrote:
When the system procmail recipe is being processed, is there a system
variable that would be available to tell which email address and/or
local account the message is destined for? Unless I'm missing
something the closest available variable is DEFAULT which maybe I
could use to parse out the local account that will get delivery?
There is no guarantee that $DEFAULT will contain anything related to the
email address. What happens when procmail is invoked via a pipe (say, from
an Mprog mailer invoked from an alias expansion)? Also, DEFAULT may be
redefined, either by the user, or in /etc/procmailrc (the global procmailrc
file), for whatever reason.
Can you indicate what it is you're trying to achieve?
When invoking as am Mprog mailer, I deliberatley pass an identifier in the
commandline of procmail so that I can parse it out in the rcfile.
---
Sean B. Straw / Professional Software Engineering
____________________________________________________________
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