bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] sieve MDA


From: Dimitrios Apostolou
Subject: Re: [bug-mailutils] sieve MDA
Date: Thu, 22 Jun 2006 17:09:02 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512

Sergey Poznyakoff wrote:
Dimitrios Apostolou <address@hidden> wrote:


Thanks, that helps, though it is not exactly what I need. I really need to feed it a single mail from stdin.


In other words, you want to use it with `mda' keyword. OK, then please
try the enclosed (untested) patch. Sample usage:

mda mail.local --sieve /path/to/script

Hello Sergey, thank you very much for the patch! It seems to work fine, though I plan to test it thoroughly some time later. One question only:

What exactly is it supposed to read from stdin? An email exactly as it is, or an mbox-like dot-quoted email starting with "From ..."?

I am asking because I managed to segfault mail.local, even though I'm probably feeding it with invalid data. :-) For your info, it happens when the first line is "From - " and the backtrace is:


[Thread debugging using libthread_db enabled]
[New Thread -1212008224 (LWP 15262)]
From -
aljdhal dsjfasldjfhasldj

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212008224 (LWP 15262)]
0x8b14244c in ?? ()
(gdb) bt
#0  0x8b14244c in ?? ()
#1 0xb7ea5f54 in mu_attribute_unset_flags (attr=0xb7f2cfa0, flags=4) at attribute.c:143 #2 0xb7ea64b6 in mu_attribute_unset_deleted (attr=0x8b14244c) at attribute.c:350
#3  0x0804adc5 in sieve_test (auth=0x804ee80, mbx=0x8b14244c) at main.c:471
#4 0x0804afb3 in deliver (imbx=0x804e580, name=0x804dc3c "jimis") at main.c:696 #5 0x0804b488 in mda (mbx=0x8b14244c, username=0x8b14244c <Address 0x8b14244c out of bounds>) at main.c:494
#6  0x0804b79f in main (argc=1, argv=0x804c6e4) at main.c:427


Thanks again for the patch, tell me if you plan to apply it to main branch, so that I do further testing.

Dimitris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]