• Resolved webtecky

    (@webtecky)


    Why is there a condition that stops the fetching if there is a line with only an opened parenthesis on line 94 (lib/pImapMailServer.php)? We received an email with a paragraph ending with a closed parenthesis and it got cut out (the parenthesis fell in a new line with nothing after that). We had to disable the condition in order to make it work.

    Robert

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Because that is how IMAP works. If you want to know the gory details see https://tools.ietf.org/html/rfc2060

    Take a look at page 63 for an example.

    Thread Starter webtecky

    (@webtecky)

    Thanks for the explanation, but that approach interferes with a regular parenthesis in the message body. I would make the loop break when it finds a “A0006 OK” (IMAP-SSL/gmail) or “a004 OK FETCH” string (example on page 63), so the email would not be cut out. I know it’s very rare, but it happened to me (and it could happen to others).

    Kudos to the plugin though!

    Best.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I will look into this a bit more, but as I didn’t write the IMAP parsing and the library I used isn’t being updated it may take awhile.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    FYI there is an update coming soon that fixes this issue. Thanks for bringing it to my attention.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘fetchMessageSource on pImapMailServer.php’ is closed to new replies.