Re: Vars for Custom Plugins
Sorry , didn't send tha last email to the list as well/ Doesn't Spamassassin have a standard routine somewhere to deteremine who an email is for? It would seem like pretty basic stuff? Rick On Thu, May 22, 2008 at 11:38 AM, Theo Van Dinter <[EMAIL PROTECTED]> wrote: > [sending back to users@ list since it's generally useful info] > > On Thu, May 22, 2008 at 11:25:44AM -0400, Rick Duval wrote: > > One thing though, IF using to:addr I often get the name of the mailing > list > > as opposed to the actual recipient. Is there a "clean" way to get that? > > It sounds like you want the envelope recipient, not the "To" header field. > > Unfortunately, there's no standard way to get that since each MTA does it > differently, if that information is added at all. > > There should probably be a standard get() option that at least attempts > to figure this out similar to EnvelopeFrom (feel free to open a bugzilla > request about it), but in the mean time, looking at another function in > PerMsgStatus that wants similar data (in no particular order): > > $self->get('To') # std > $self->get('Cc') # std > $self->get('Apparently-To')# sendmail, from envelope > $self->get('Delivered-To') # Postfix, poss qmail > $self->get('Envelope-Recipients') # qmail: new-inject(1) > $self->get('Envelope-To') # exim > $self->get('X-Envelope-To')# procmailrc manpage > $self->get('X-Delivered-To') # procmail quick start > $self->get('X-Original-To')# procmail quick start > $self->get('X-Rcpt-To')# procmail quick start > $self->get('X-Real-To')# procmail quick start > $self->get('Apparently-Resent-To') # procmailrc manpage > > Hope this helps. :) > > -- > Randomly Selected Tagline: > "I lost my foo." - Theo >
Re: Vars for Custom Plugins
[sending back to users@ list since it's generally useful info] On Thu, May 22, 2008 at 11:25:44AM -0400, Rick Duval wrote: > One thing though, IF using to:addr I often get the name of the mailing list > as opposed to the actual recipient. Is there a "clean" way to get that? It sounds like you want the envelope recipient, not the "To" header field. Unfortunately, there's no standard way to get that since each MTA does it differently, if that information is added at all. There should probably be a standard get() option that at least attempts to figure this out similar to EnvelopeFrom (feel free to open a bugzilla request about it), but in the mean time, looking at another function in PerMsgStatus that wants similar data (in no particular order): $self->get('To') # std $self->get('Cc') # std $self->get('Apparently-To')# sendmail, from envelope $self->get('Delivered-To') # Postfix, poss qmail $self->get('Envelope-Recipients') # qmail: new-inject(1) $self->get('Envelope-To') # exim $self->get('X-Envelope-To')# procmailrc manpage $self->get('X-Delivered-To') # procmail quick start $self->get('X-Original-To')# procmail quick start $self->get('X-Rcpt-To')# procmail quick start $self->get('X-Real-To')# procmail quick start $self->get('Apparently-Resent-To') # procmailrc manpage Hope this helps. :) -- Randomly Selected Tagline: "I lost my foo." - Theo pgpELCntOxkm4.pgp Description: PGP signature
Re: Vars for Custom Plugins
On Thu, May 22, 2008 at 08:57:37AM -0400, Rick Duval wrote: > Can someone point me to a list and description of vars available to plugins. > > I know a couple like $pms->get("to") , etc but there's also "to:addr". I'm > looking for some sort of reference that tell me what the differences are? $pms->get() is a function, not a variable. :) Take a look at "perldoc Mail::SpamAssassin::PerMsgStatus" for the functions from PerMsgStatus. -- Randomly Selected Tagline: "Only your father could take a part-time job at a small town paper, and wind up the target of international assassins." - Marge Simpson, Guess Who's Coming to Criticize Dinner pgp0POGkYVqUA.pgp Description: PGP signature
Vars for Custom Plugins
Can someone point me to a list and description of vars available to plugins. I know a couple like $pms->get("to") , etc but there's also "to:addr". I'm looking for some sort of reference that tell me what the differences are? Also how to just get a clean "to" address. I've notice that may mailing lists will put their name in the to which screw me up. Any help would be much appreciated. Rick