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 BC605431FBF for ; Sat, 21 Nov 2009 14:37:26 -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 sL7mR8lUbS8n for ; Sat, 21 Nov 2009 14:37:26 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 0AB08431FAE for ; Sat, 21 Nov 2009 14:37:25 -0800 (PST) Received: by bwz24 with SMTP id 24so3155111bwz.30 for ; Sat, 21 Nov 2009 14:37:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.25.198 with SMTP id a6mr3033326bkc.31.1258843045290; Sat, 21 Nov 2009 14:37:25 -0800 (PST) Date: Sat, 21 Nov 2009 23:37:24 +0100 Message-ID: From: Jan Janak To: Not Much Mail Content-Type: text/plain; charset=UTF-8 Subject: [notmuch] RFC: Multiple filenames for email messages 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: Sat, 21 Nov 2009 22:37:26 -0000 The comment of _notmuch_message_set_filename says: XXX: We should still figure out if we think it's important to store multiple filenames for email messages with identical message IDs. I have lots of such messages in my email collection, both in my local copy of my Gmail account and also in the local copy of my company's IMAP account. My dream mail indexing tool should be able to apply tags automatically based on, among other things, the name of the directory the message is stored in. If there are multiple copies of the same message scattered across multiple directories, I would like to apply more tags. I assume that most tags will be applied (either manually or automatically) after 'notmuch-new', I currently do some of it with a simple shell script. The script does not apply tags based on directory names yet, but it would make notmuch really flexible if we could do that *and* if we could get access to all filenames of a particular message. I'd like to propose that we store all filenames for email messages in the database, not just one per message. I'd be happy to work on it and submit a patch if others think that this would be good to have. -- Jan