New submission from anonymous:

sup-sync seems to crash on some mails. I've tried removing the first problematic
mail, only to have it crash on the next one. I've attached the one this
stacktrace is from.

Maybe the issue is that the entire mail is multipart/mixed, with a first and a
second part. The second part is a simple text/plain footer added by Mailman, but
the first part is a multipart/signed thing (with a different boundary)? 

Updating message
maildir:/Users/marten/Mail/INBOX.Lists.NotMuch#12594169380004531; labels
inbox,unread,notmuch => inbox,unread,notmuch; offset 12594169380004531 =>
12594169380004531
/Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/message.rb:507:in
`message_to_chunks': undefined method `downcase' for nil:NilClass 
(NoMethodError)
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/message.rb:440:in
`message_to_chunks'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/message.rb:440:in `map'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/message.rb:440:in
`message_to_chunks'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/message.rb:244:in
`load_from_source!'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/message.rb:340:in
`build_from_source'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/poll.rb:145:in 
`each_message_from'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/maildir.rb:160:in 
`each'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/maildir.rb:157:in 
`upto'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/maildir.rb:157:in 
`each'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/util.rb:560:in `send'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/util.rb:560:in `__pass'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/util.rb:547:in 
`method_missing'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/poll.rb:139:in 
`each_message_from'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/util.rb:520:in `send'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/lib/sup/util.rb:520:in 
`method_missing'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/bin/sup-sync:146
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/bin/sup-sync:141:in `each'
        from /Library/Ruby/Gems/1.8/gems/sup-0.9/bin/sup-sync:141
        from /usr/bin/sup-sync:19:in `load'
        from /usr/bin/sup-sync:19

This stacktrace starts at line 507, I had to edit in something to get at the
filename in of the mail in the maildir store, so it's not quite the same as in
0.9 gem, and probably not the same as in mainline/master. 507 on my system is:

500  ## if there's a filename, we'll treat it as an attachment.
501  if filename
502    # add this to the attachments list if its not a generated html
503    # attachment (should we allow images with generated names?).
504    # Lowercase the filename because searches are easier that way 
505    @attachments.push filename.downcase unless filename =~ /^sup-attachment-/
506     add_label :attachment unless filename =~ /^sup-attachment-/
507     content_type = m.header.content_type.downcase || "application/unknown" #
sometimes RubyMail gives us nil
508     [Chunk::Attachment.new(content_type, filename, m, sibling_types)]

----------
files: sup-problematic-mail
messages: 55
nosy: anonymous
priority: bug
ruby_version: 1.8.7
status: unread
sup_version: 0.9
title: sup-sync crashes on gpg multipart signed message

_________________________________________
Sup issue tracker <[email protected]>
<http://masanjin.net/sup-bugs/issue27>
_________________________________________

Attachment: sup-problematic-mail
Description: Binary data

_______________________________________________
Sup-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-devel

Reply via email to