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...@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; }}}