You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Massimiliano Giovine <ev...@gmail.com> on 2010/12/14 22:51:30 UTC
Loading receiver within my spamassassin plugin.
I wrote a plugin that tries to do some operation on the receiver mail
address before the message is delivered.
How can i retrieve such address?
$mailTo = $pms->get('EnvelopeTo:addr');
dbg("EvelopeTo-Addr read from mail $mailTo");
and i have this output on the log:
Tue Dec 14 22:45:54 2010 [2807] dbg: generic: EvelopeTo-Addr read from mail
with no address. How can i get it?
Thanks in advance!
--
-Massimiliano Giovine
Aksel Peter Jørgensen dice: "Why make things difficult, when it is
possible to make them cryptic and totally illogic, with just a little
bit more effort?"
Blog: http://opentalking.blogspot.com
"Linus Torvalds doesn't die, he simply returns zero."
Re: Loading receiver within my spamassassin plugin.
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
Fixicated the copy-n-paste blob to reply...
On Tue, 2010-12-14 at 23:08 +0100, Massimiliano Giovine wrote:
> 2010/12/14 Karsten Bräckelmann <gu...@rudersport.de>:
> > > How can i retrieve such address?
> > >
> > > $mailTo = $pms->get('EnvelopeTo:addr');
> > > dbg("EvelopeTo-Addr read from mail $mailTo");
> >
> > Does that EnvelopeTo header exist?
> >
> > I guess the actual header, if any, depends on your MTA and glue. The
> > whitelist_to option in the Conf documentation has a list with likely
> > candidates.
>
> I use Postfix. What Conf do you talk about?
Conf documentation. The SA Conf documentation.
http://spamassassin.apache.org/doc/Mail_SpamAssassin_Conf.html
Also available on your system as 'man Mail::SpamAssassin::Conf'.
> I have to compare it with a list in a database and with a custom
> header but this is not important.
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: Loading receiver within my spamassassin plugin.
Posted by Massimiliano Giovine <ev...@gmail.com>.
# I guess the actual header, if any, depends on your MTA and glue. The
# whitelist_to option in the Conf documentation has a list with likely
# candidates.
I use Postfix. What Conf do you talk about?
I have to compare it with a list in a database and with a custom
header but this is not important.
2010/12/14 Karsten Bräckelmann <gu...@rudersport.de>:
> On Tue, 2010-12-14 at 22:51 +0100, Massimiliano Giovine wrote:
>> I wrote a plugin that tries to do some operation on the receiver mail
>> address before the message is delivered.
>
> Operation? You're not trying to change it, are you?
>
>> How can i retrieve such address?
>>
>> $mailTo = $pms->get('EnvelopeTo:addr');
>> dbg("EvelopeTo-Addr read from mail $mailTo");
>
> Does that EnvelopeTo header exist?
>
> I guess the actual header, if any, depends on your MTA and glue. The
> whitelist_to option in the Conf documentation has a list with likely
> candidates.
>
>
>> and i have this output on the log:
>>
>> Tue Dec 14 22:45:54 2010 [2807] dbg: generic: EvelopeTo-Addr read from mail
>>
>> with no address. How can i get it?
>>
>> Thanks in advance!
>
> --
> char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
> (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
>
>
--
-Massimiliano Giovine
Aksel Peter Jørgensen dice: "Why make things difficult, when it is
possible to make them cryptic and totally illogic, with just a little
bit more effort?"
Blog: http://opentalking.blogspot.com
"Linus Torvalds doesn't die, he simply returns zero."
Re: Loading receiver within my spamassassin plugin.
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Tue, 2010-12-14 at 22:51 +0100, Massimiliano Giovine wrote:
> I wrote a plugin that tries to do some operation on the receiver mail
> address before the message is delivered.
Operation? You're not trying to change it, are you?
> How can i retrieve such address?
>
> $mailTo = $pms->get('EnvelopeTo:addr');
> dbg("EvelopeTo-Addr read from mail $mailTo");
Does that EnvelopeTo header exist?
I guess the actual header, if any, depends on your MTA and glue. The
whitelist_to option in the Conf documentation has a list with likely
candidates.
> and i have this output on the log:
>
> Tue Dec 14 22:45:54 2010 [2807] dbg: generic: EvelopeTo-Addr read from mail
>
> with no address. How can i get it?
>
> Thanks in advance!
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}