Closed kljohann closed 13 years ago
It seems uid_fetch will return nil in some cases leading to errors of the following form:
uid_fetch
nil
/tmp/heliotrope/lib/heliotrope/imap-dumper.rb:191:in `next_message': undefined method `size' for nil:NilClass (NoMethodError) from bin/heliotrope-add:127:in `<main>'
I changed
imapdata = begin @imap.uid_fetch query, imap_query_columns
to
imapdata = begin (@imap.uid_fetch query, imap_query_columns) or []
But I don't know if this is the right fix to apply (I did not read the documentation of net/imap yet).
It seems
uid_fetch
will returnnil
in some cases leading to errors of the following form:I changed
to
But I don't know if this is the right fix to apply (I did not read the documentation of net/imap yet).