notmuchsync --move (was: add a number of new feature ideas to TODO file)
Sebastian Spaeth
Sebastian at SSpaeth.de
Fri Apr 16 01:43:40 PDT 2010
On 2010-04-16, Dirk Hohndel wrote:
> +Thirdparty apps
> +---------------
> +(not sure this is the best spot to collect requests like this)
> +
> +notmuchsync
> +
> +Add feature to move files in the maildir hierarchy
> +
> + notmuchsync --move "searchstring" "targetfolder"
> + Where searchstring is any valid notmuch search
> +
You can remove that bit from the patch, it is implemented now :-)
notmuchsync --move "querystring" "targetfolder"
(use with --dry-run and -d to preview changes)
once folder: search is implemented you can e.g. simply do:
notmuchsync --move "not tag:inbox and folder:inbox"
/home/spaetz/mail/archive/cur
and make your IMAP web clients (or iphones) happy.
This works right now already:
notmuchsync --move "not tag:inbox" /home/spaetz/mail/archive/cur
but is of course slower (still ok) as it has to traverse through most
of your mails.
Sebastian
More information about the notmuch
mailing list