unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>
To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org
Subject: Re: Introducing notmuchsync
Date: Thu, 25 Feb 2010 10:40:57 +0100	[thread overview]
Message-ID: <87k4u1bql2.fsf@SSpaeth.de> (raw)
In-Reply-To: <87wry2wl7p.fsf@yoom.home.cworth.org>

On Wed, 24 Feb 2010 10:19:06 -0800, Carl Worth <cworth@cworth.org> wrote:
> On Mon, 18 Jan 2010 16:12:28 +0100, "Sebastian Spaeth" <Sebastian@SSpaeth.de> wrote:
> > ================
> >  - Synchronizes the "S" flag with the "unread" tag (1-way). The
> >  synchronization direction is decided by using either --sync (change
> >  maildir flags according to notmuch) or --revsync (change notmuch tags
> >  according to maildir). By default it always checks the mails from the
> >  previous 30 days (but can also do --all mails if you have plenty of
> >  RAM and time).
> >  - Deletes all mail files that have the "delete" tag
> >  - Quiet/normal/verbose logging 
> 
> Thanks for contributing this, Sebastian.

No problem. It was just an itch I had :-). I have to say that I stopped
using the --revsync (change notmuch tags based on maildir flags) as I am
using the patch that does that from within "notmuch new" and which is
much faster than any external script could be.
 
> Let me know if you'd like to host this within the contrib directory of
> the notmuch repository.

I am fine with hosting it in contrib or on github whatever others
prefer.
 
> >  - It temporarily slurps in all your mails from the last 30 days into
> >  RAM. I am waiting for "notmuchs show blah --output filename --output
> >  tags" to improve that :). Generally the parsing of the output of
> >  "notmuch show" is a bit hackyish with regexps at the moment.
> 
> OK. So we'll be adding an --output option to give you just filenames
> soon, and we've got JSON output now so you can avoid hacky regexps now.

JSON will definitely help. I need to investigate that, and --output will
make help performance. So yes, these are good changes from a 3rd party
perspective. I was thinking of interfacing notmuch.so directly but as
long as the python bindings are still in development, I am not going to
look at this option.

> I think that's the open question still. How much of this kind of
> functionality do we integrate into notmuch itself. I don't know the
> answer to that question yet, but I'm quite happy to see people
> experimenting with doing scripts like this on top of notmuch already.

I'll comment on that in JRollins reply in a second :).
Sebastian

  parent reply	other threads:[~2010-02-25  9:41 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 15:12 Introducing notmuchsync Sebastian Spaeth
2010-01-18 15:24 ` Sebastian Spaeth
2010-01-18 15:41 ` Michal Sojka
2010-01-18 15:57   ` Sebastian Spaeth
2010-01-19 13:37     ` Sebastian Spaeth
2010-01-19 15:00       ` Marten Veldthuis
2010-01-19 15:24         ` Jameson Rollins
2010-01-19 15:52           ` Sebastian Spaeth
2010-01-19 16:04             ` Jameson Rollins
2010-01-19 16:13               ` Sebastian Spaeth
2010-01-19 16:29               ` Servilio Afre Puentes
2010-01-19 16:38                 ` Jameson Rollins
2010-01-20  8:20               ` Tassilo Horn
2010-01-19 15:42         ` Sebastian Spaeth
2010-01-18 15:48 ` Marten Veldthuis
2010-02-24 18:19 ` Carl Worth
2010-02-24 18:49   ` Jameson Rollins
2010-02-25  9:50     ` Sebastian Spaeth
2010-02-25  9:40   ` Sebastian Spaeth [this message]
2010-03-01  8:57   ` Michal Sojka
2010-03-01 16:27     ` Ben Gamari
2010-03-01 17:18       ` Michal Sojka
2010-03-01 18:43         ` Ben Gamari
2010-03-01 20:20           ` Michal Sojka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4u1bql2.fsf@SSpaeth.de \
    --to=sebastian@sspaeth.de \
    --cc=cworth@cworth.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).