summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/App/ImapNotify.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/ImapNotify.pm b/lib/App/ImapNotify.pm
index 0b44f68..1445c13 100644
--- a/lib/App/ImapNotify.pm
+++ b/lib/App/ImapNotify.pm
@@ -65,14 +65,14 @@ method loop() {
$log->info("Waiting for notify events");
while (my $line = $imap->readline_timeout()) {
- $log->tracef("Got line: '%s'", $line);
+ $log->tracef("Got line: '%s'", $line =~ s/\r\n$//r);
if ($line =~ m/^\* .* FETCH /) {
my $message = $imap->handle_fetch($line);
$self->_notify($message);
next;
}
if ($line =~ m/^\* STATUS (?<mailbox>[^ ]+) \(MESSAGES \d+ UIDNEXT (?<uidnext>\d+) UNSEEN \d+\)/) {
- $log->debugf("Got status change: '%s'", $line);
+ $log->debugf("Got status change: '%s'", $line =~ s/\r\n$//r);
my $mailbox = $+{mailbox};
my $uid = $+{uidnext} - 1;
#$imap2->select($mailbox);