[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] [issue126] exception at the first poll after a message has been sent



New submission from anonymous:

sup throws the exception below at the first poll after I have sent a message.

This is the setup: I'm fetching mail with offlineimap to a maildir. Sent mails
go to the maildir "Gesendet", so offlineimap pushes them to my mail server:
:sent_source: maildir:/home/mkl/Mail/Gesendet

The before-poll hook runs offlineimap

if (@last_fetch || Time.at(0)) < Time.now - 120
  say "Running offlineimap..."
  cmd = "offlineimap -q -u Noninteractive.Basic"
  `#{cmd} 2>&1`
  say "Finished offlineimap run."
end
@last_fetch = Time.now

For completeness, here the offlineimaprc:
[general]
accounts = mkl
ui = TTY.TTYUI

[Account mkl]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/Mail

[Repository Remote]
type = IMAP
remotehost = xxx
remoteuser = xxx
ssl=yes
remotepass=xxx

The exception is:
--- NoMethodError from thread: user-invoked poll
undefined method `[]' for nil:NilClass
/usr/lib/ruby/1.8/sup/index.rb:722:in `mkterm'
/usr/lib/ruby/1.8/sup/index.rb:500:in `find_docid'
/usr/lib/ruby/1.8/sup/index.rb:506:in `find_doc'
/usr/lib/ruby/1.8/sup/index.rb:516:in `get_entry'
/usr/lib/ruby/1.8/sup/index.rb:193:in `build_message'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/sup/index.rb:525:in `synchronize'
/usr/lib/ruby/1.8/sup/index.rb:193:in `build_message'
/usr/lib/ruby/1.8/sup/util.rb:570:in `send'
/usr/lib/ruby/1.8/sup/util.rb:570:in `method_missing'
/usr/lib/ruby/1.8/sup/poll.rb:117:in `do_poll'
/usr/lib/ruby/1.8/sup/poll.rb:176:in `each_message_from'
/usr/lib/ruby/1.8/sup/maildir.rb:160:in `each'
/usr/lib/ruby/1.8/sup/maildir.rb:157:in `upto'
/usr/lib/ruby/1.8/sup/maildir.rb:157:in `each'
/usr/lib/ruby/1.8/sup/util.rb:610:in `send'
/usr/lib/ruby/1.8/sup/util.rb:610:in `__pass'
/usr/lib/ruby/1.8/sup/util.rb:597:in `method_missing'
/usr/lib/ruby/1.8/sup/poll.rb:164:in `each_message_from'
/usr/lib/ruby/1.8/sup/poll.rb:116:in `do_poll'
/usr/lib/ruby/1.8/sup/poll.rb:104:in `each'
/usr/lib/ruby/1.8/sup/poll.rb:104:in `do_poll'
/usr/lib/ruby/1.8/sup/poll.rb:103:in `synchronize'
/usr/lib/ruby/1.8/sup/poll.rb:103:in `do_poll'
/usr/lib/ruby/1.8/sup/util.rb:570:in `send'
/usr/lib/ruby/1.8/sup/util.rb:570:in `method_missing'
/usr/lib/ruby/1.8/sup/modes/poll-mode.rb:15:in `poll'
/usr/lib/ruby/1.8/sup/poll.rb:50:in `poll_with_sources'
/usr/lib/ruby/1.8/sup/poll.rb:69:in `poll'
/usr/lib/ruby/1.8/sup/util.rb:570:in `send'
/usr/lib/ruby/1.8/sup/util.rb:570:in `method_missing'
/usr/bin/sup-mail:330
/usr/lib/ruby/1.8/sup.rb:75:in `reporting_thread'
/usr/lib/ruby/1.8/sup.rb:73:in `initialize'
/usr/lib/ruby/1.8/sup.rb:73:in `new'
/usr/lib/ruby/1.8/sup.rb:73:in `reporting_thread'
/usr/bin/sup-mail:330

----------
messages: 299
nosy: anonymous
priority: bug
ruby_version: 1.8
status: unread
sup_version: 0.11
title: exception at the first poll after a message has been sent

_________________________________________
Sup issue tracker <sup-bugs@masanjin.net>
<http://masanjin.net/sup-bugs/issue126>
_________________________________________
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel