Sorry Subject Current svn build problems, minor patch Re: [Dbmail-dev] (no subject)

2006-02-17 Thread Leif Jackson
On Fri, February 17, 2006 5:35 pm, Leif Jackson wrote: > Current svn build problems... minor fixes.. Without sieve enabled there > is a missing ifdef and the Return-Path argument is of the wrong type... > > diff -urN dbmail-svn-2.1.3-1987.orig/lmtp.c dbmail-svn-2.1.3-1987/lmtp.c > --- dbmail-svn-2.

[Dbmail-dev] (no subject)

2006-02-17 Thread Leif Jackson
Current svn build problems... minor fixes.. Without sieve enabled there is a missing ifdef and the Return-Path argument is of the wrong type... diff -urN dbmail-svn-2.1.3-1987.orig/lmtp.c dbmail-svn-2.1.3-1987/lmtp.c --- dbmail-svn-2.1.3-1987.orig/lmtp.c 2006-02-17 17:23:43.0 -0500 +++ d

Re: [Dbmail-dev] authdriver=sql using ldap

2006-02-17 Thread Paul J Stevens
Fuckup confirmed. It's a static build that got out accidently. Lucky for me I don't have anything but ldap/mysql deployed :-). Thanks for the heads-up. Paul J Stevens wrote: > Sounds like a fuckup in the build. I'll fix this later this weekend > (hopefully). > > Christian G. Warden wrote: > >>I

Re: [Dbmail-dev] authdriver=sql using ldap

2006-02-17 Thread Paul J Stevens
Sounds like a fuckup in the build. I'll fix this later this weekend (hopefully). Christian G. Warden wrote: > I'm using the debian package version 2.1.3+20060214-1. I have the > authdriver set to sql, but dbmail-users -l, run from the init script, is > trying to connect to the ldap server. > > C

Re: [Dbmail-dev] libsieve-2.1.8

2006-02-17 Thread Aaron Stone
On Fri, 2006-02-17 at 22:21 +0300, Oleg Lapshin wrote: > - dbmail_message_set_header(msg, "Return-Path", from->data); > + dbmail_message_set_header(msg, "Return-Path", (char *) > (dm_list_getstart(&from)->data)); That's a correct fix. > Then, sort_getenvelope function returns correct value to li

[Dbmail-dev] libsieve-2.1.8

2006-02-17 Thread Oleg Lapshin
> Try adding this in sort.c, right above the Sieve section: > > + /* Give Sieve access to the envelope recipient. */ > + dbmail_message_set_envelope_recipient(message, destination); > > /* Sieve. */ > config_get_value("SIEVE", "DELIVERY", val); Now it's OK But there is a

[Dbmail-dev] authdriver=sql using ldap

2006-02-17 Thread Christian G. Warden
I'm using the debian package version 2.1.3+20060214-1. I have the authdriver set to sql, but dbmail-users -l, run from the init script, is trying to connect to the ldap server. Christian

Re: [Dbmail-dev] libsieve-2.1.8

2006-02-17 Thread Aaron Stone
On Fri, 2006-02-17 at 09:18 -0800, Aaron Stone wrote: > On Fri, 2006-02-17 at 19:51 +0300, Oleg Lapshin wrote: > > I found in sv_parser/sieve.c: > > > > } else if (!strcmp("envelope", req)) { > > if (c->callbacks.getenvelope) > > c->support.envelope = 1; > > return

Re: [Dbmail-dev] libsieve-2.1.8

2006-02-17 Thread Aaron Stone
On Fri, 2006-02-17 at 19:51 +0300, Oleg Lapshin wrote: > I found in sv_parser/sieve.c: > > } else if (!strcmp("envelope", req)) { > if (c->callbacks.getenvelope) > c->support.envelope = 1; > return c->support.reject; > > May be there must be: > return c->su

[Dbmail-dev] libsieve-2.1.8

2006-02-17 Thread Oleg Lapshin
I found in sv_parser/sieve.c: } else if (!strcmp("envelope", req)) { if (c->callbacks.getenvelope) c->support.envelope = 1; return c->support.reject; May be there must be: return c->support.envelope; ??? PS. after some twiks with dbmail code, my sieve s

Re: [Dbmail-dev] revision 1984. double free

2006-02-17 Thread Matthew Sayler
On Fri, Feb 17, 2006 at 12:05:19AM +0300, Oleg Lapshin wrote: > Hello I would have thought revision 1984 would be doubleplusgood? Matt

[Dbmail-dev] Re: Problem with 'subaddress' in sieve script (and glib)

2006-02-17 Thread Oleg Lapshin
> Umm. *oh* Wow, ok, that's really stupid of me. The "envelope" is this > case is the envelope recipient, not the envelope sender. Duh. > > Let's see how it works in SVN now... No. You forgot to call dbmail_message_set_envelope_recipient somewhere... (I can't found call to this function) And one

Re: [Dbmail-dev] Re: Problem with 'subaddress' in sieve script (and glib)

2006-02-17 Thread Aaron Stone
On Fri, 2006-02-17 at 15:09 +0300, Oleg Lapshin wrote: > > Ok, it's because GStrings don't self-initialize like GLists do. Bah. I'm > > just going to zap the set/get_envelope functions I wrote last week; > > get_header("Return-Path") already has exactly the same information. > > OK > I download re

[Dbmail-dev] Re: Problem with 'subaddress' in sieve script (and glib)

2006-02-17 Thread Oleg Lapshin
> Ok, it's because GStrings don't self-initialize like GLists do. Bah. I'm > just going to zap the set/get_envelope functions I wrote last week; > get_header("Return-Path") already has exactly the same information. OK I download revision 1986 It works! And there are no more Glib-CRITICAL errors!

Re: [Dbmail-dev] Problem with 'subaddress' in sieve script

2006-02-17 Thread Aaron Stone
On Fri, 2006-02-17 at 02:56 -0800, Aaron Stone wrote: > On Fri, 2006-02-17 at 11:37 +0300, Oleg Lapshin wrote: > > > ==30312== Invalid read of size 4 > > ==30312==at 0x1B926FF9: dbmail_message_get_envelope > > (dbmail-message.c:393) > > ==30312==by 0x1BA929ED: sort_getenvelope (sortsieve.

Re: [Dbmail-dev] Problem with 'subaddress' in sieve script

2006-02-17 Thread Aaron Stone
On Fri, 2006-02-17 at 11:37 +0300, Oleg Lapshin wrote: > ==30312== Invalid read of size 4 > ==30312==at 0x1B926FF9: dbmail_message_get_envelope (dbmail-message.c:393) > ==30312==by 0x1BA929ED: sort_getenvelope (sortsieve.c:306) > ==30312==by 0x1BAA97BE: libsieve_do_getenvelope > (in /

[Dbmail-dev] Problem with 'subaddress' in sieve script

2006-02-17 Thread Oleg Lapshin
Hello > libSieve supports an early revision of this draft: > http://www.ietf.org/internet-drafts/draft-ietf-sieve-rfc3598bis-01.txt I try to use such sieve-script (is it correct?): require "fileinto"; require "subaddress"; if envelope :detail "to" "spam1" { fileinto "SPAM";} elsif header :is "

Re: [Dbmail-dev] revision 1984. double free

2006-02-17 Thread Aaron Stone
Huh, weird. I didn't recall that dm_list_free would free both the list nodes and the memory each node points to. But ok, I guess it does! Fixed in SVN. Aaron On Fri, 2006-02-17 at 00:05 +0300, Oleg Lapshin wrote: > Hello > > valgrind output: > > x:/export/hda3/0TMP/dbmail-svn > $ valgrind --le