Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-22 Thread Johannes Berg
On Fri, 2008-08-22 at 11:52 +0200, Mikael Jenkler wrote: > if it does not exist get_mail_headers returns null or something ? > > is this not the best way? > resiptient = get_mail_headers(mail, "Delivered-To"); > > is mail a global var ? Sorry, I don't have time to play this game. You can learn

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-22 Thread Mikael Jenkler
if it does not exist get_mail_headers returns null or something ? is this not the best way? resiptient = get_mail_headers(mail, "Delivered-To"); is mail a global var ? Regards /J3nkl3r Johannes Berg wrote: On Fri, 2008-08-22 at 11:35 +0200, Mikael Jenkler wrote: I dont have the old orgi

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-22 Thread Johannes Berg
On Fri, 2008-08-22 at 11:35 +0200, Mikael Jenkler wrote: > I dont have the old orginal code anymore :-( only have the modded one > > I can try to patch it myself, can you tell me where in what variable you > have the mail header or mail > Is it reachable in dspam-exec.c Just took a quick look,

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-22 Thread Mikael Jenkler
I dont have the old orginal code anymore :-( only have the modded one I can try to patch it myself, can you tell me where in what variable you have the mail header or mail Is it reachable in dspam-exec.c I relly want this to work :-) Regards /Jenkler Johannes Berg wrote: On Fri, 2008-08-22

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-22 Thread Johannes Berg
On Fri, 2008-08-22 at 11:21 +0200, Mikael Jenkler wrote: > What do you think about the modified plugin, can it be done in the new > version? what var contains the mail or header? I haven't even looked at it, since I don't know that old code any more. If you can send me a diff, then I can maybe ta

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-22 Thread Mikael Jenkler
What do you think about the modified plugin, can it be done in the new version? what var contains the mail or header? Regards /j3nkl3r Mikael Jenkler wrote: The problem is that i dont have it working for the new antispam but here is your old script with the recipient fixed This is 100% your co

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-21 Thread Mikael Jenkler
The problem is that i dont have it working for the new antispam but here is your old script with the recipient fixed This is 100% your code so you should be able to understand what i have done You have changed 1000 things in your antispam plugin so it relly hard for me to patch it atleast take

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-21 Thread Johannes Berg
On Thu, 2008-08-21 at 16:15 +0200, Mikael Jenkler wrote: > The problem is that my %u is a user not the mail address and i train on > the mail address from master.cf > I modded your old script to support (for dovecot 1.0.x) it but when > 1.1.x came it didnot work anymore > > i have a diffrent use

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-21 Thread Mikael Jenkler
The problem is that my %u is a user not the mail address and i train on the mail address from master.cf I modded your old script to support (for dovecot 1.0.x) it but when 1.1.x came it didnot work anymore i have a diffrent username for auth then for resiveing mail so it impossible to trai

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-21 Thread Mikael Jenkler
Needed to be a member, now its done, sorry for remailing this again (need to be in list) Mikael Jenkler wrote: Yeah! My problem is gone. needed: latest dovecot-antispam plugin and dovecot-1.1.2 minimum Thanks Johannes about my other question: My dspam users has the email as username [EMA

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-21 Thread Johannes Berg
> My dspam users has the email as username [EMAIL PROTECTED] and in > dovecot.conf i need to specify the user when training, is there a > way to get the resiptient address in the dovecot.conf? i am only able to > get %u ie the username ;-( > > Could you patch the antispam plugin to be able to t

Re: [Dovecot] dovecot-antispam has some kind of bug

2008-08-21 Thread Johannes Berg
On Thu, 2008-08-21 at 12:25 +0200, Mikael Jenkler wrote: > Hi Johannes! > > it seams that you pluggin is doing something wrong with the imap connection > > i get this: > > Aug 21 12:21:54 firestorm dovecot: child 21443 (imap) killed with signal 11 > > both with squirrelmail and mutt mail client