* [mlmmj] deletion of From-header
@ 2010-05-13 17:26 Franky Van Liedekerke
2010-05-14 1:18 ` Ben Schmidt
0 siblings, 1 reply; 2+ messages in thread
From: Franky Van Liedekerke @ 2010-05-13 17:26 UTC (permalink / raw)
To: mlmmj
Hi,
in the source code there's a line:
delheaders->strs[delheaders->count++] = mystrdup("From ");
effectively deleting a header called "From " in a mail, but this never
happens in reality (maybe it does with feeded mails via a program); the
header is always "From:".
For now this always forced me to add "From:" to the delheaders section,
but maybe this can be changed? Maybe just by removing it from the code
entirely (so people can choose wether or not to remove the
"From:"-information) ?
Just a thought ...
Franky
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [mlmmj] deletion of From-header
2010-05-13 17:26 [mlmmj] deletion of From-header Franky Van Liedekerke
@ 2010-05-14 1:18 ` Ben Schmidt
0 siblings, 0 replies; 2+ messages in thread
From: Ben Schmidt @ 2010-05-14 1:18 UTC (permalink / raw)
To: mlmmj
The "From " header isn't truly a header. It is, however, how the
envelope sender is often communicated to mlmmj by the MTA. A line of the
form "From emailaddress@domain.tld" is prepended to the mail, the same
as in mbox files. It needs to be removed precisely because it is not
truly a header. To be honest, it would perhaps be better to simply
swallow the first line of input if it had that form, but doing it the
current way works, too; no valid header will have that form, so we won't
remove too much, and by ensuring we do remove it, we don't remove too
little (which would result in invalid mails and much nastiness).
Cheers,
Ben.
On 14/05/10 3:26 AM, Franky Van Liedekerke wrote:
> Hi,
>
> in the source code there's a line:
>
> delheaders->strs[delheaders->count++] = mystrdup("From ");
>
> effectively deleting a header called "From " in a mail, but this never
> happens in reality (maybe it does with feeded mails via a program); the
> header is always "From:".
>
> For now this always forced me to add "From:" to the delheaders section,
> but maybe this can be changed? Maybe just by removing it from the code
> entirely (so people can choose wether or not to remove the
> "From:"-information) ?
>
> Just a thought ...
>
> Franky
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-14 1:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 17:26 [mlmmj] deletion of From-header Franky Van Liedekerke
2010-05-14 1:18 ` Ben Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox