Skip Menu |

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 84028
Status: resolved
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: Nobody in particular
Requestors: bitcard [...] phroggy.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 3.32
  • 3.16
  • 3.17
  • 3.17_02
  • 3.18
  • 3.19
  • 3.20
  • 3.21
  • 3.22
  • 3.23
  • 3.24
  • 3.25
  • 3.26
  • 3.27
  • 3.28
  • 3.29
  • 3.30
  • 3.31
Fixed in: 3.33



Subject: get_envelope() fails when subject line ends with backslash
Using Mail::IMAPClient, If the last character of a message's subject line is a backslash, calling get_envelope() fails. This is 64-bit perl 5.10.1 on CentOS 6.3. Confirmed the problem happens with multiple IMAP servers, including Microsoft Exchange 2010. When the problem occurs, a separate bug is causing this warning: Use of uninitialized value $bs in concatenation (.) or string at /usr/local/share/perl5/Mail/IMAPClient.pm line 2032. That line is: $self->_debug( "get_envelope: msg $msg returns ref: " . $bs || "UNDEF" ); Since . is higher on the order of operations than || this needs parentheses around the ($bs || "UNDEF"). With debugging turned on, the relevant bit looks something like this: Sending: 5 UID FETCH 1 ENVELOPE Sent 24 bytes Read: \t* 1 FETCH (UID 1 ENVELOPE ("Mon, 18 Mar 2013 18:23:04 +0000" "test\\\\" (("myname" NIL "myuser" "mydomain")) (("myname" NIL "myuser" "mydomain")) (("myname" NIL "myuser" "mydomain")) (("recipient@example.com" NIL "recipient" "example.com")) NIL NIL NIL "<messageid@server>")) Read: \t5 OK UID FETCH Completed
Thanks for the bug report! I've patched the code and the fix will be in the next release 3.33. If you're curious, the latest code can be pulled via git: http://sourceforge.net/p/mail- imapclient/git/
Mail::IMAPClient 3.33 has been released!