notmuchsync --move (was: add a number of new feature ideas to TODO file)

Subject: notmuchsync --move (was: add a number of new feature ideas to TODO file)

Date: Fri, 16 Apr 2010 10:43:40 +0200

To: Dirk Hohndel, notmuch@notmuchmail.org

Cc:

From: Sebastian Spaeth


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

Thread: