Question : Tag mail according to it directory path ?
[notmuch-archives.git] / 2e / a8f260a8aceb3a0131c266be7c290515082757
1 Return-Path: <emmanuel.leblond@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 92449429E26\r
6         for <notmuch@notmuchmail.org>; Mon, 12 Dec 2011 12:59:17 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id O6l5trinCBo2 for <notmuch@notmuchmail.org>;\r
17         Mon, 12 Dec 2011 12:59:17 -0800 (PST)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 0AE28429E25\r
22         for <notmuch@notmuchmail.org>; Mon, 12 Dec 2011 12:59:16 -0800 (PST)\r
23 Received: by bkat8 with SMTP id t8so6375940bka.26\r
24         for <notmuch@notmuchmail.org>; Mon, 12 Dec 2011 12:59:15 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:date:user-agent:mime-version:content-type\r
27         :content-transfer-encoding:message-id;\r
28         bh=DdQm8fYYXgF46rjs3wzqEbLd54Fzx0IEKxVjuQtpN54=;\r
29         b=ia0B7LGAoS20bg+4MATn+T9SfIibDWO4EitWuiv6rtbMS2dZKUM5eKq6cPwiWIoW+S\r
30         Tn2ekeXknoXquTBOX1I+saG1LtWiQ6mRKHhZ+JVXGM9+IPTjgEUTRx5ZHEA5HINO5tbR\r
31         2WcQBwXowNa4odQk9P4AUNJ5bpLLvgjdK3D/g=\r
32 Received: by 10.204.14.208 with SMTP id h16mr10677480bka.2.1323723555756;\r
33         Mon, 12 Dec 2011 12:59:15 -0800 (PST)\r
34 Received: from glandbleu.localnet ([86.70.159.131])\r
35         by mx.google.com with ESMTPS id cc2sm35076945bkb.8.2011.12.12.12.59.14\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Mon, 12 Dec 2011 12:59:14 -0800 (PST)\r
38 From: emmanuel.leblond@gmail.com\r
39 To: notmuch@notmuchmail.org\r
40 Subject: Question : Tag mail according to it directory path ?\r
41 Date: Mon, 12 Dec 2011 21:59:09 +0100\r
42 User-Agent: KMail/1.13.7 (Linux/3.0.6-gentoo; KDE/4.6.5; x86_64; ; )\r
43 MIME-Version: 1.0\r
44 Content-Type: Text/Plain;\r
45   charset="us-ascii"\r
46 Content-Transfer-Encoding: 7bit\r
47 Message-Id: <201112122159.09937.nitrotechno@laposte.net>\r
48 X-Mailman-Approved-At: Tue, 20 Dec 2011 14:06:06 -0800\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Mon, 12 Dec 2011 20:59:17 -0000\r
62 \r
63 Hi there !\r
64 I'm looking for using notmuch as my regular MUA, but I have a trouble so far.\r
65 \r
66 I have a 4000+ mail collection already sorted in folders. The point is I would \r
67 like to tag those mails through the notmuch database according to those \r
68 folders. (i.g. the mails in the friend/foo directory will be tagged as friend \r
69 and foo)\r
70 \r
71 Is there any way to do this easily or should I make a quick'n dirty script to \r
72 do the job ? (i.e. cat each mail of a folder, sed to get subject/receivers ect \r
73 and do a notmuch search and tag with those arguments)\r
74 \r
75 Regards\r
76 \r
77 -- \r
78 \r
79 G.bleu\r