Hi Jerry,

you can get the Headers via the MimeMessage:

mail.getMessage().getFrom();

Bye,
Norman


2010/7/10 Jerry M <[email protected]>:
> I received an email from  [email protected].   The Return-Path header in the
> email is: <[email protected]>
>
> The WhiteList matcher is using the latter address, which is useless for
> whitelist checking.  I'm seeing this long-string email address thing showing
> up more and more in emails from services like Constant-Contact.
>
> I looked at the matcher code.  It is simply giving me mail.getSender().  I
> guess I can't argue that this is indeed the 'sender' address as far as the
> low level SMTP stuff is concerned.  But I simply want the matcher to check
> the whitelist database for the [email protected] version of the address
> instead of this address.  I know the address I want is in the email.  When
> it gets to Thunderbird, the from and reply-to appears correctly.
>
> I have no problem modifying the matcher code.  I just need some advice on
> what to change it to.  I don't see any alternate methods on the mail class
> to give me the From or Reply-To address instead of the one I'm getting.
>
> Can someone advise me on what to change it to?
>
> Thanks.
>
> Jerry
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to