https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7831

--- Comment #8 from Rob Mosher <[email protected]> ---
also, PerMsgStatus->_get("EnvelopeFrom") is broken when there are multiple
Return-Path headers specified.

I should be using get("EnvelopeFrom:addr") in this patch, but it wasn't working
right in my tests.  I'll update this patch to use it properly and include a
patch to fix PerMsgStatus.pm

I've also found some bugs in SPF.pm, some of that due it returning junk when
there are multiple Return-Path headers found.  Others due to not checking for
empty strings.  I'll open up a bug report for all of these.

Testing:

    $sender = $scanner->get("EnvelopeFrom:addr");
    dbg("spf: pms:from:addr " . $sender);
    dbg("spf: pms:from:raw " . $scanner->get("EnvelopeFrom:raw"));
    dbg("spf: pms:from " . $scanner->get("EnvelopeFrom"));
    dbg("spf: pms:get:rp " . $scanner->get("Return-Path"));

$ grep Return-Path: mail2.txt
Return-Path: <[email protected]>
Return-Path: <[email protected]>

dbg: spf: pms:from:addr [email protected]> <[email protected]
dbg: spf: pms:from:raw [email protected]>
dbg: spf: pms:from [email protected]>
dbg: spf: pms:get:rp <[email protected]>

But with only one Return-Path:
dbg: spf: pms:from:addr [email protected]
dbg: spf: pms:from:raw [email protected]
dbg: spf: pms:from [email protected]
dbg: spf: pms:get:rp <[email protected]>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to