Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5495B431FC0 for ; Tue, 15 Dec 2009 16:54:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xCEnf9icxFDQ for ; Tue, 15 Dec 2009 16:54:29 -0800 (PST) Received: from ives.vdov.net (129.210.68.208.static.dnsptr.net [208.68.210.129]) by olra.theworths.org (Postfix) with ESMTP id 4AF9B431FBF for ; Tue, 15 Dec 2009 16:54:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by ives.vdov.net (Postfix) with ESMTP id DDF1635A526; Tue, 15 Dec 2009 18:54:31 -0600 (CST) Received: from ives.vdov.net ([127.0.0.1]) by localhost (ives.vdov.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b7-4j9uRTrys; Tue, 15 Dec 2009 18:54:26 -0600 (CST) Received: from localhost (pool-71-174-184-207.bstnma.east.verizon.net [71.174.184.207]) by ives.vdov.net (Postfix) with ESMTPSA id F309A24EECF; Tue, 15 Dec 2009 18:54:15 -0600 (CST) Date: Tue, 15 Dec 2009 19:54:11 -0500 From: Alec Berryman To: David Bremner Message-ID: <20091216005411.GA28199@thened.net> References: <87pr6gcuiu.fsf@pivot.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pr6gcuiu.fsf@pivot.cs.unb.ca> User-Agent: Mutt/1.5.20 (2009-06-14) X-Hashcash: 1:24:091216:david@tethera.net::KLGK6Pe9CzMnj7q8:00000000000000000000000000000000000000000000IdN2 X-Hashcash: 1:24:091216:notmuch@notmuchmail.org::ia5GTSPah7HU86jI:00000000000000000000000000000000000002BltX Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] notmuch and imap [musing, no code :)] X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2009 00:54:30 -0000 David Bremner on 2009-12-15 08:05:13 -0400: > Recent discussions on IRC (I forget with whom, sorry), brought me back > to thinking about syncing notmuch with imap. In addition to the flags > \Seen, \Answered, \Draft, \Deleted, and \Flagged, imap servers can > optionally support user defined keywords (i.e. tags). At least courier > and dovecot do. These keywords are imap "atoms", which, without tracing > though the BNF [1] completely look like they can can have (ascii) > alphanumeric, and punctuation other than brackets, quotes and "%", "*". I am also very interested in syncing tags between computers. I started implementing storage of tags in message headers. It's has been done before - several mutt extensions and systems use X-Label. This approach offers several advantages to notmuch dump/restore and IMAP flags: - compatability: most mail clients can search on headers, so even if you're not using notmuch full-time (squirrelmail? phone?), you can get some benefit from it - works with offlineimap without further effort: no new transport mechanism required - a migration path: text-based mail sorting tools like procmail can easily set headers - backups are easy: you can't miss backing up your tags because they're in the messages There are security concerns (need to strip incoming messages of tags so no one tags your mail for you), privacy concerns (if you forward the entire message as an attachment, may want to strip tags), and space concerns (how many flags?), but I think they can be worked around. I haven't gotten very far with my implementation due to time constraints. It reads tags fine, but I haven't implemented writing, which is the involved part. I hope to get to this between Christmas and New Years, but who knows.