[MGNLFORUM-181] Emails with no From: or To: or Cc: headers can't be imported when filtering on sender or recipient, respectively Created: 18/Jul/13  Updated: 02/Dec/13  Resolved: 18/Jul/13

Status: Closed
Project: Forum (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0 ? (rewrite)

Type: Bug Priority: Neutral
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

javax.mail.Message#getAllRecipients() returns null in case no To: or Cc: header exists in the message (which happens when an email is sent using only a Bcc: field).

Likewise, javax.mail.Message#getFrom() can return null if there is no From: header (I don't know of a valid reason for that).

Such emails should not imported when filtering on recipient or sender respectively, since there is no recipient/sender to check.

We currently don't treat that, resulting in a dumb NullPointerException



 Comments   
Comment by Christoph Meier [ 02/Dec/13 ]

closed, since it was resolved quite a long time ago

Generated at Mon Feb 12 02:01:29 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.