afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 98 forks source link

return a machine usable number of actions #238

Open muradm opened 5 years ago

muradm commented 5 years ago

Currently output of afew is some human readable text. By default (without debug / verbosity) it could return number of messages affected. Then for instance --move-mails would be returning number of mails moved. This will be useful in scripts, in the way that, if number of moved mails is 0, then there is no need to do additional actions like mbsync for instance.

GuillaumeSeren commented 5 years ago

Hey, This is interresting idea and I would do that with a new option, but this would mean to recheck / change the log system and most of outputs to get something close of your description.

Again feel free to devellop and show us a more precise description or patch.