1 Return-Path: <oschwand@chadok.info>
\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 arlo.cworth.org (Postfix) with ESMTP id B3D356DE012F
\r
6 for <notmuch@notmuchmail.org>; Tue, 19 Jul 2016 04:49:41 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]
\r
14 Received: from arlo.cworth.org ([127.0.0.1])
\r
15 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id Pzz7h-PNYiNE for <notmuch@notmuchmail.org>;
\r
17 Tue, 19 Jul 2016 04:49:32 -0700 (PDT)
\r
18 X-Greylist: delayed 512 seconds by postgrey-1.35 at arlo;
\r
19 Tue, 19 Jul 2016 04:49:32 PDT
\r
20 Received: from vitrine.ns305973.chezlefab.net (chezlefab.net [91.121.242.52])
\r
21 by arlo.cworth.org (Postfix) with ESMTP id 9E3ED6DE015B
\r
22 for <notmuch@notmuchmail.org>; Tue, 19 Jul 2016 04:49:32 -0700 (PDT)
\r
23 Received: by vitrine.ns305973.chezlefab.net (Postfix, from userid 1001)
\r
24 id 0BA401030E6; Tue, 19 Jul 2016 13:42:14 +0200 (CEST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=chadok.info; s=mail;
\r
26 t=1468928535; bh=eQ1AYPFYGICrt8Zxspwv7dwKo8voQJtHK1dPpOgZMHA=;
\r
27 h=Date:From:To:Subject:References:In-Reply-To:From;
\r
28 b=KDaDDke+zZy2tZ+KtExiNGZr/sKvFJNnq18r0dHY7PGZBTawweIguc34zwKjm3zKu
\r
29 jE/kPlN7b9uI+fitgzLvMT9NGsB+wwsRTZ/fbDtbie1f3E4jN/fBE4XflruV+QwGs0
\r
30 Y9ZqObjTW0cpkBECGrNF8ll3XGzW82gV41zi54CM=
\r
31 Date: Tue, 19 Jul 2016 13:42:14 +0200
\r
32 From: Olivier Schwander <olivier.schwander@chadok.info>
\r
33 To: notmuch@notmuchmail.org
\r
34 Subject: Re: Avoiding the "huge INBOX of death"
\r
35 Message-ID: <20160719114214.cp3l7crruy2y4l4h@vitrine>
\r
36 References: <20160719094205.qmf5sjnja6crt5t3@gotlib>
\r
38 Content-Type: text/plain; charset=iso-8859-1
\r
39 Content-Disposition: inline
\r
40 Content-Transfer-Encoding: 8bit
\r
41 In-Reply-To: <20160719094205.qmf5sjnja6crt5t3@gotlib>
\r
42 User-Agent: Mutt/1.6.0.1 (2016-04-01)
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.20
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Tue, 19 Jul 2016 11:49:41 -0000
\r
57 Le 19 Jul 2016 11:42, Raphaël Fournier-S'niehotta a écrit:
\r
58 > Hello fellow notmuchers,
\r
60 > I am a longtime "classic" mutt user, willing to switch to a notmuch-based
\r
61 > solution (probably neomutt). However, as far as I understand, I will have to
\r
62 > deal with a "huge INBOX of death", as put by Anarcat in a recent blog post [1],
\r
63 > that when all emails remain in a single maildir, which may the become very
\r
66 > I would like to avoid this, for quota reasons on my work imap server first, and
\r
67 > also because I sometimes have to use webmail access, with poor searching
\r
70 > Thus, I think I need to have my emails sorted into maildir folders according to
\r
71 > the notmuch tags. Namely, emails with the "inbox" tag should stay in the INBOX
\r
72 > maildir, those with "archive" should be moved to Archives (all synchronized with
\r
73 > the server). As a bonus, it would be great to have a few more features, like
\r
74 > "mails in Archives older than 6 months are moved to Archives/<year>" (kept
\r
75 > locally and not stored on the server).
\r
77 > As far as I understand, "afew" and its MailMover feature could be useful for my
\r
78 > case, but it does not seem currently maintained (plus, very few mentions of it
\r
79 > on the notmuch archives) and Michael Turquette said it's buggy [2], so I would
\r
80 > like more feedback to be sure before letting it mess with my maildir.
\r
82 > Another tool that could be useful is the "maildir-notmuch-sync" script written
\r
83 > by Ethan Schoonover and adapted by Michael Turquette [3]. However, it seems
\r
84 > dedicated to handling the synchronization of Gmail labels, not a generic imap
\r
87 > Perhaps there is another solution to deal with this in a notmuch-based setup, I
\r
88 > would very much like any of your feedback.
\r
90 > [1]: https://anarc.at/blog/2016-05-12-email-setup/
\r
91 > [2]: http://deferred.io/2016/01/17/state-of-the-dotfiles.html
\r
92 > [3]: http://deferred.io/2016/01/18/notmuch-tags-gmail-labels-bidirectional-sync.html
\r
94 You could use fdm [1] to store messages into a folder hierarchy based on
\r
95 the date in the messages. In the past, I used something like that to
\r
96 periodically move messages in my inbox to sub-folder with the year:
\r
98 account "archives" disabled maildirs {
\r
101 action "archive" maildir "${mailpath}%[maildir]/%[mail_year]"
\r
102 match account "archives" {
\r
103 match age > 6 months action "archive"
\r
104 match all action keep
\r
107 Nowadays, I use a custom script [2] to mirror some notmuch queries to
\r
108 maildirs (ran periodically in my crontab), such like:
\r
110 notmuch-imap.sh ~/Maildir/ NOT tag:archive AND NOT tag:killed AND NOT tag:spam AND tag:inbox
\r
111 notmuch-imap.sh ~/Maildir/.todo NOT tag:archive AND NOT tag:killed AND NOT tag:spam AND tag:todo
\r
113 Both solutions works server-side, since I control my own mail server but
\r
114 it may probably used in an offlineimap hook.
\r
120 [1]: https://github.com/nicm/fdm
\r
121 [2]: https://chadok.info/~oschwand/poubelle/e53f1d9ac30909fd17ca98f4160375bbc9a6aca5/notmuch-imap.sh.html
\r