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 92449429E26 for ; Mon, 12 Dec 2011 12:59:17 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 O6l5trinCBo2 for ; Mon, 12 Dec 2011 12:59:17 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0AE28429E25 for ; Mon, 12 Dec 2011 12:59:16 -0800 (PST) Received: by bkat8 with SMTP id t8so6375940bka.26 for ; Mon, 12 Dec 2011 12:59:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=DdQm8fYYXgF46rjs3wzqEbLd54Fzx0IEKxVjuQtpN54=; b=ia0B7LGAoS20bg+4MATn+T9SfIibDWO4EitWuiv6rtbMS2dZKUM5eKq6cPwiWIoW+S Tn2ekeXknoXquTBOX1I+saG1LtWiQ6mRKHhZ+JVXGM9+IPTjgEUTRx5ZHEA5HINO5tbR 2WcQBwXowNa4odQk9P4AUNJ5bpLLvgjdK3D/g= Received: by 10.204.14.208 with SMTP id h16mr10677480bka.2.1323723555756; Mon, 12 Dec 2011 12:59:15 -0800 (PST) Received: from glandbleu.localnet ([86.70.159.131]) by mx.google.com with ESMTPS id cc2sm35076945bkb.8.2011.12.12.12.59.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 12:59:14 -0800 (PST) From: emmanuel.leblond@gmail.com To: notmuch@notmuchmail.org Subject: Question : Tag mail according to it directory path ? Date: Mon, 12 Dec 2011 21:59:09 +0100 User-Agent: KMail/1.13.7 (Linux/3.0.6-gentoo; KDE/4.6.5; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201112122159.09937.nitrotechno@laposte.net> X-Mailman-Approved-At: Tue, 20 Dec 2011 14:06:06 -0800 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Mon, 12 Dec 2011 20:59:17 -0000 Hi there ! I'm looking for using notmuch as my regular MUA, but I have a trouble so far. I have a 4000+ mail collection already sorted in folders. The point is I would like to tag those mails through the notmuch database according to those folders. (i.g. the mails in the friend/foo directory will be tagged as friend and foo) Is there any way to do this easily or should I make a quick'n dirty script to do the job ? (i.e. cat each mail of a folder, sed to get subject/receivers ect and do a notmuch search and tag with those arguments) Regards -- G.bleu