Re: Searching from a folder
authorJani Nikula <jani@nikula.org>
Sat, 29 Sep 2012 10:58:00 +0000 (13:58 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:38 +0000 (09:49 -0800)
6b/79b522261021b2edf456bf8d7d55a590bb9445 [new file with mode: 0644]

diff --git a/6b/79b522261021b2edf456bf8d7d55a590bb9445 b/6b/79b522261021b2edf456bf8d7d55a590bb9445
new file mode 100644 (file)
index 0000000..0f6b883
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 30A94431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 29 Sep 2012 03:58:08 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id D1sgDHs8uX3z for <notmuch@notmuchmail.org>;\r
+       Sat, 29 Sep 2012 03:58:07 -0700 (PDT)\r
+Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
+       [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 7C72D431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 29 Sep 2012 03:58:07 -0700 (PDT)\r
+Received: by lbbgg6 with SMTP id gg6so2804478lbb.26\r
+       for <notmuch@notmuchmail.org>; Sat, 29 Sep 2012 03:58:04 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type:x-gm-message-state;\r
+       bh=ua7bu/P3YqlwuvCyJSmpFo4StNjj1DucRMuDUFlZ7pg=;\r
+       b=khr1rxurGNadPrYDDFz/WNCSa0nbTy5s+xIWzRpUQ2VvMzgBBjCMddu52xXu3sVLPv\r
+       ocYqyQJfDAg9FSZdO2gxMzJ4JtnNe737jJl9z4QGWTuEDXJo+lWA38A7arqCYvs6+qFZ\r
+       kK3SDCFTitN9QdzWRhtMRyyorWNMOlKEOvMGigOopzqDg9kJrZXZ9hd55Sumq4I+P/cA\r
+       JWye1DBa8m96EmAVJZmk1IbgIp7Sd8XCopviAMOzoAxCMtFfuNz30EgN5riKSE7Ss7SU\r
+       u8hhdxPIRXPo+Lzje4jkl9aqJKf06RjGspdfQ6oy/S4gmqlT8nm4YlA9DWCkDRrWC31I\r
+       7v8w==\r
+Received: by 10.152.108.37 with SMTP id hh5mr5985973lab.52.1348916284372;\r
+       Sat, 29 Sep 2012 03:58:04 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
+       [80.223.81.27])\r
+       by mx.google.com with ESMTPS id r5sm3072965lbz.2.2012.09.29.03.58.02\r
+       (version=SSLv3 cipher=OTHER); Sat, 29 Sep 2012 03:58:03 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Damien Cassou <damien.cassou@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: Searching from a folder\r
+In-Reply-To:\r
+ <CA+y5ggh-PFtHsRgpdXje9z2gsrsonMNi0gqDTfpQ42jXNmJ3dg@mail.gmail.com>\r
+References:\r
+ <CA+y5ggh-PFtHsRgpdXje9z2gsrsonMNi0gqDTfpQ42jXNmJ3dg@mail.gmail.com>\r
+User-Agent: Notmuch/0.14+40~ga9afd88 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i686-pc-linux-gnu)\r
+Date: Sat, 29 Sep 2012 13:58:00 +0300\r
+Message-ID: <87vcexp03r.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQkUsT9W517mB9Obq/X0s0C3mHoMvKAFdUXz4O+qpbx7RvL8fdguNoZAL993fh3WdgQ/qzpz\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 29 Sep 2012 10:58:08 -0000\r
+\r
+On Sat, 29 Sep 2012, Damien Cassou <damien.cassou@gmail.com> wrote:\r
+> I can't make notmuch search return the list of mails in [Gmail]\r
+> folders for a particular mailbox:\r
+>\r
+> ~ $ notmuch search folder:"[Gmail].All Mail"\r
+> ~ $ notmuch search folder:[Gmail].Important\r
+\r
+So you have folders named like that in your maildir? It *should* of\r
+course work with proper escapes and/or quoting, but for the exact reason\r
+of avoiding such trouble, I use this in the section corresponding to\r
+your [Repository RemoteGmailTest] of the .offlineimaprc:\r
+\r
+nametrans = lambda foldername: re.sub('^\[Gmail\]/All Mail', 'gmail', foldername)\r
+\r
+I only sync all mail and inbox, so you may need to modify that to your\r
+needs.\r
+\r
+Also note that if you have maildir.synchronize_flags=true, the gmail\r
+"Starred" should sync to maildir flag F, which in turn syncs to notmuch\r
+tag:flagged.\r
+\r
+HTH,\r
+Jani.\r
+\r
+> but these folders actually contain emails. This works well for another\r
+> gmail mailbox I have. You can reproduce by using the following\r
+> configuration files (yes, the password is here, that's just a test\r
+> account, don't worry):\r
+\r
+PS. You should probably change the password anyway. You don't want\r
+Mallory to do stuff like send tons of spam using your account. There are\r
+no "test accounts" from gmail POV.\r