Uploaded image for project: 'Magnolia Forum Module'
  1. Magnolia Forum Module
  2. MGNLFORUM-181

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0 ? (rewrite)
    • Component/s: None
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              gjoseph Grégory Joseph
              Reporter:
              gjoseph Grégory Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: