On Thu, Mar 15 2018, Evgeniy Berdnikov wrote: > On Thu, Mar 15, 2018 at 04:58:41PM +0100, Yuri D'Elia wrote: >> I'd be fine with a way to trigger an executable on new messages in the >> INBOX folder, but I don't see an easy way to do that. > > It's quite easy. Example: > > touch timestamp.file > mbsync ... > find /path/to/inbox/ -type f -cnewer timestamp.file -exec myscript {} + > rm -f timestamp.file
I wished there was something for this already :/ I ended up rolling my own simple script due to time constraints. Not as nice as being able to use sieve directly :/ But in the process I found this project which I'd like to point out: https://github.com/chneukirchen/mblaze it includes several small utilities to work with maildir and message entries. Very useful for scripting. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel