getaddr confusion

Neil Romig <[email protected]> Wed, 20 Apr 2016 13:03:28 +0100
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
I am using getaddr in .mailfilter to extract addresses:

if( /^From:\s*(.*)/:h )
{
 FRM=getaddr($MATCH1)
}

I have added log "$FRM" to the .mailfilter file to investigate, and it
fails to extract the address from lines like this:

From: "Someone - Mailbox" <[email protected]>

But it will work with:

From: "Some One" <[email protected]>

I guess the hyphen is causing trouble - is this a bug or am I failing
to understand?

Regards,

Neil.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z