[Dovecot] deliver copies "^From " header lines when delivering to Maildir

Timo Sirainen tss at iki.fi
Mon Sep 24 20:19:25 EEST 2007


On Mon, 2007-09-24 at 15:41 +0100, pod wrote:
> >>>>> "TS" == Timo Sirainen <tss at iki.fi> writes:
> 
>     >> Well, doing it only if it's the first header would make it
>     >> better. I guess I could do something like that since this is a
>     >> pretty common problem..
> 
>     TS> http://hg.dovecot.org/dovecot-1.0/rev/4c807839ac0c
> 
> Hasn't create_mbox_stream() returned by the time save_header_callback() is
> called?  Doesn't that mean that the &first passed as *context to
> save_header_callback() is of dubious validity?

Oh, good catch. Yes, that was a security hole just waiting to be
exploited. :) I couldn't figure out a clean and safe way to do it, so:
http://hg.dovecot.org/dovecot/rev/2821a472806f

deliver could use a rewrite some day..

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070924/1329a825/attachment.bin 


More information about the dovecot mailing list