I have recently seen a total failure happen in my email setup. I do not know exactly what the cause was, and it was hard to diagnose because my systemd setup (#10) didn't log anything to disk.
But even if it would log, I would like to have it a little more verbose. Right now I see this in my logs:
fév 18 13:42:48 curie smd-pull[5482]: default: smd-client@localhost: TAGS: stats::new-mails(1), del-mails(0), bytes-received(31480), xdelta-received(385)
Even in --verbose --show-tags mode, I don't see the actual emails modified, which is strange because we do see those when running in --dry-mode (see #6 for that). The --verbose flag only adds the following lines:
fév 18 13:46:52 curie smd-push[8294]: Phase 0: handshake
fév 18 13:46:52 curie smd-push[8294]: Phase 1: changes detection
fév 18 13:46:52 curie smd-push[8294]: Phase 2: synchronization
fév 18 13:46:52 curie smd-push[8294]: Phase 3: agreement
which are fairly useless in a non-interactive context.
Would it be possible to show which mails were downloaded/uploaded/deleted in --verbose mode instead of --dry-run?
Also: I run notmuch new as a post-hook. Because I first notice the catastrophe through notmuch (which was slowly removing all the emails from its database), it would be tremendously helpful it the output from hooks was also shown instead of silencing them. For example here notmuch shows:
Processed 4 total files in almost no time.
Added 3 new messages to the database.
Would you welcome patches that would change at least that behavior?
Thanks!