diff --git a/lib/larch.rb b/lib/larch.rb index c164263..bda84f3 100644 --- a/lib/larch.rb +++ b/lib/larch.rb @@ -215,7 +215,9 @@ def copy_messages(mailbox_from, mailbox_to) end begin - next unless msg = mailbox_from.peek(guid) + unless msg = mailbox_from.peek(guid) + @failed += 1 + end if msg.envelope.from env_from = msg.envelope.from.first