diff options
-rw-r--r-- | lib/App/ImapNotify.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/App/ImapNotify.pm b/lib/App/ImapNotify.pm index 1445c13..e7aba6f 100644 --- a/lib/App/ImapNotify.pm +++ b/lib/App/ImapNotify.pm @@ -72,9 +72,9 @@ method loop() { next; } if ($line =~ m/^\* STATUS (?<mailbox>[^ ]+) \(MESSAGES \d+ UIDNEXT (?<uidnext>\d+) UNSEEN \d+\)/) { - $log->debugf("Got status change: '%s'", $line =~ s/\r\n$//r); my $mailbox = $+{mailbox}; my $uid = $+{uidnext} - 1; + $log->debugf("Got status change: '%s'", $line =~ s/\r\n$//r); #$imap2->select($mailbox); #my $message = $imap2->send_command("uid fetch $uid (body.peek[header.fields (from to subject)])"); $imap->select($mailbox); |