[Daniel Kahn Gillmor] Bug#698810: notmuch: Internal error: add_message returned unexpected value: 4 (notmuch-new.c:543)

Subject: [Daniel Kahn Gillmor] Bug#698810: notmuch: Internal error: add_message returned unexpected value: 4 (notmuch-new.c:543)

Date: Thu, 24 Jan 2013 00:06:32 -0400

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


Package: notmuch
Version: 0.15-2
Severity: normal

i run notmuch over a mailstore that is also served by a dovecot
instance (which is the reason for much of the spew below).

However, after a recent switch to notmuch 0.15, i got this one-time
error during "notmuch new":

 Internal error: add_message returned unexpected value: 4 (notmuch-new.c:543)

fwiw, i think that "unexepected value: 4" is NOTMUCH_STATUS_FILE_ERROR.

Unfortunately, i don't remember if this is the first time i've run
notmuch new since the 0.15 upgrade or if it has to do with some
particular message.

as you can see from the transcript below, running "notmuch new" a
second time didn't reproduce the error.  If you have any suggestions
on how i could supply better information, please let me know.

sorry for the vagueness of this report.

           --dkg


0 dkg@alice:~$ notmuch new
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot-keywords
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot-uidlist
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot.index
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot.index.cache
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot.index.log
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/maildirfolder
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot-uidlist
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot.index
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot.index.cache
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot.index.log
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Sent/dovecot-uidlist
Error opening /home/dkg/mail/messages/.Sent/dovecot-uidlist.lock: No such file or directory
Internal error: add_message returned unexpected value: 4 (notmuch-new.c:543)
1 dkg@alice:~$ notmuch new
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot-keywords
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot-uidlist
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot.index
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot.index.cache
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/dovecot.index.log
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Archives.2013/maildirfolder
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot-uidlist
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot.index
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot.index.cache
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Drafts/dovecot.index.log
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Sent/dovecot-uidlist
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Sent/dovecot.index
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Sent/dovecot.index.cache
Note: Ignoring non-mail file: /home/dkg/mail/messages/.Sent/dovecot.index.log
Processed 48 total files in almost no time.
Added 34 new messages to the database. Removed 31 messages.
0 dkg@alice:~$ notmuch new
No new mail.
0 dkg@alice:~$ 


-- System Information:
Debian Release: 7.0
Architecture: amd64 (x86_64)

Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages notmuch depends on:
ii  libc6           2.13-37
ii  libglib2.0-0    2.33.12+really2.32.4-3
ii  libgmime-2.6-0  2.6.10-1
ii  libnotmuch3     0.15-2
ii  libtalloc2      2.0.7+git20120207-1

Versions of packages notmuch recommends:
ii  gnupg-agent    2.0.19-2
ii  notmuch-emacs  0.14-1

notmuch suggests no packages.

-- no debconf information


Thread: