Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: anonymous <sup-bugs@masanjin.net>
To: sup-devel@rubyforge.org
Subject: [sup-devel] [issue126] exception at the first poll after a message has been sent
Date: Sat, 06 Nov 2010 11:45:46 +0000	[thread overview]
Message-ID: <1289043945.99.0.911687811063.issue126@masanjin.net> (raw)
In-Reply-To: <1289043945.99.0.911687811063.issue126@masanjin.net>


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


           reply	other threads:[~2010-11-06 12:08 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1289043945.99.0.911687811063.issue126@masanjin.net>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1289043945.99.0.911687811063.issue126@masanjin.net \
    --to=sup-bugs@masanjin.net \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox