GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/412

    Bug: use actual envelope header if present

    The From_ line is currently generated by mbox.lua from the Return-Path and 
Received headers.
    This is not always accurate.
    
    The method msg.as_bytes() can include the original envelope header as used 
in the From_ line.
    This should only be done if the envelope is present, as otherwise a default 
is added which changes the source. Also the default is not as good as the one 
generated by mbox.lua.
    
    Since existing messages won't have the From_ line, mbox.lua needs to check 
if the From_ line needs to be added or not. This also affects From_ prefixing 
as the code currently assumes the buffer does not contain the From_ header

----

----


---

Reply via email to