Uploaded image for project: 'Forum (closed)'
  1. Forum (closed)
  2. MGNLFORUM-181

Emails with no From: or To: or Cc: headers can't be imported when filtering on sender or recipient, respectively

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 4.0 ? (rewrite)
    • None
    • None
    • None

      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

        Acceptance criteria

              gjoseph Magnolia International
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: