Skip to content

Commit

Permalink
add temporary workaround for Mail::IMAPClient >3.25
Browse files Browse the repository at this point in the history
  • Loading branch information
mreitinger committed Mar 2, 2011
1 parent 8b5417f commit 20077e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CiderWebmail/Model/IMAPClient.pm
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ sub get_headers_hash {
$message->{uid} = $uid;
$message->{mailbox} = $o->{mailbox};

#my $headers = $c->stash->{imapclient}->Unescape($entry->{"BODY[HEADER.FIELDS ($headers_to_fetch)]"});

#we need to add \n to the header text because we only parse headers not a real rfc2822 message
#otherwise it would skip the last header
my $email = Email::Simple->new($entry->{"BODY[HEADER.FIELDS ($headers_to_fetch)]"}."\n") || croak;
Expand Down

0 comments on commit 20077e3

Please sign in to comment.