Re: [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization)

Subject: Re: [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization)

Date: Mon, 12 Apr 2010 10:18:05 +0200

To: Michal Sojka

Cc: notmuch@notmuchmail.org

From: martin f krafft


also sprach Michal Sojka <sojkam1@fel.cvut.cz> [2010.04.08.1713 +0200]:
>    I'm working on the solution - if the mailstore cannot open the
>    message with the name passed, it tries different names with
>    different maildir flags.

Wouldn't it be better to postpone synchronisation of the tags until
after emacs is done with the message?

I understand this might be hard to make work with mailstore
abstraction. Wouldn't it make more sense to have emacs call 'notmuch
cat', which returns the entire message, removes the unread tag,
changes the filename, and updates the database?

The message returned by cat would be stored in a temporary file for
use by the client (emacs). And if the message was needed again, you
could just search for it again.

I dislike the idea of heuristically probing a Maildir for files.

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"i don't think so," said rene descartes. just then, he vanished.
 
spamtraps: madduck.bogus@madduck.net
digital_signature_gpg.asc (application/pgp-signature)

Thread: