unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* notmuch insert --keep fails in parallel w/ notmuch new
@ 2016-01-24 15:48 Maarten Aertsen
  2016-01-26 15:09 ` David Bremner
  0 siblings, 1 reply; 18+ messages in thread
From: Maarten Aertsen @ 2016-01-24 15:48 UTC (permalink / raw)
  To: Notmuch Mail

Hello list,

I'd like to report a bug against notmuch 0.21, packaged for Debian 
jessie-backports as 0.21-3~bpo8+1.

# Steps to reproduce:
  1. start a notmuch new mail w/ lots of stuff to process (e.g. a 
     migration)
  2. try notmuch insert --keep

# Expected result:
Given the current text in the manpage, I'd expect notmuch insert --keep 
to save the message to the Maildir even if no db interaction is possible:

"--keep Keep the message file if indexing fails, and keep the message 
	indexed if applying tags or maildir flag synchronization fails.  
	Ignore these  errors and return exit status 0 to indicate 
        succesful mail delivery."

That way, I can cron notmuch new to pick up the occasional message that 
can't get indexed right away.

# Actual result:
notmuch insert --keep fails with exit code 1 due to the inability to get 
db access.

# Context:
I've switched to a setup with postfix, where notmuch insert --keep is 
called by /local/, postfix's local delivery daemon, via a pipe in 
.forward. Local treats a non-zero exit code as a 5.3.x status code and 
sends a bounce to the sender.

I had a short chat with j4ni on #notmuch, where he said:
< j4ni> Sagi: oh bummer, we try to open the db first, and bail out 
early. we should change the order of that (at least with --keep).

Thanks for developing notmuch.

best regards, Maarten Aertsen

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-12-15 13:01 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-24 15:48 notmuch insert --keep fails in parallel w/ notmuch new Maarten Aertsen
2016-01-26 15:09 ` David Bremner
2016-02-07 21:13   ` [PATCH] cli: avoid non-zero exits in notmuch insert --keep Maarten Aertsen
2016-02-08 11:56     ` David Bremner
2016-11-28 12:16       ` [PATCH 1/2] cli/insert: delay database open until after writing mail file David Bremner
2016-11-28 12:16         ` [PATCH 2/2] cli/insert: return EX_TEMPFAIL for some errors David Bremner
2016-11-28 12:22           ` David Bremner
2016-11-28 22:12           ` v2 of insert tempfail series David Bremner
2016-11-28 22:12             ` [PATCH 1/3] test: gdb insert: redirect input inside gdb script David Bremner
2016-11-28 22:12             ` [PATCH 2/3] cli/insert: delay database open until after writing mail file David Bremner
2016-11-28 22:12             ` [PATCH 3/3] cli/insert: return EX_TEMPFAIL for some errors David Bremner
2016-12-04 20:51             ` v2 of insert tempfail series Tomi Ollila
2016-12-07 11:27               ` NEWS/docs for insert tempfail changes David Bremner
2016-12-07 11:27                 ` [PATCH 1/2] cli/insert: document the use of EX_TEMPFAIL David Bremner
2016-12-15 13:01                   ` David Bremner
2016-12-07 11:27                 ` [PATCH 2/2] NEWS: news for notmuch-insert error handling David Bremner
2016-12-10 19:26                 ` NEWS/docs for insert tempfail changes Tomi Ollila
2016-11-28 12:23         ` [PATCH 1/2] cli/insert: delay database open until after writing mail file David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).