From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.180.131 with SMTP id bu3cs106294icb; Sat, 6 Nov 2010 05:08:07 -0700 (PDT) Received: by 10.229.101.207 with SMTP id d15mr2987566qco.222.1289045286238; Sat, 06 Nov 2010 05:08:06 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id s2si4804701qcp.67.2010.11.06.05.08.05; Sat, 06 Nov 2010 05:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 857D0185834E; Sat, 6 Nov 2010 08:08:05 -0400 (EDT) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 47907185834E for ; Sat, 6 Nov 2010 07:45:50 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=entry.masanjin.net) by entry.masanjin.net with esmtp (Exim 4.69) (envelope-from ) id 1PEhDO-0000qx-H2 for sup-devel@rubyforge.org; Sat, 06 Nov 2010 07:45:49 -0400 MIME-Version: 1.0 To: sup-devel@rubyforge.org From: anonymous Date: Sat, 06 Nov 2010 11:45:46 +0000 Precedence: bulk X-Roundup-Name: Sup issue tracker X-Roundup-Loop: hello X-Roundup-Version: 1.4.10 Message-Id: <1289043945.99.0.911687811063.issue126@masanjin.net> X-Roundup-issue-status: unread X-Roundup-issue-priority: bug In-Reply-To: <1289043945.99.0.911687811063.issue126@masanjin.net> Subject: [sup-devel] [issue126] exception at the first poll after a message has been sent X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Reply-To: Sup issue tracker , Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel