From d360b0857b215c1420239b01633736f6c018e6e7 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sat, 29 Sep 2012 10:57:20 +0200 Subject: [PATCH] Searching from a folder --- 6b/8de966705df9c6129be36e2224bb28b3a86b52 | 121 ++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 6b/8de966705df9c6129be36e2224bb28b3a86b52 diff --git a/6b/8de966705df9c6129be36e2224bb28b3a86b52 b/6b/8de966705df9c6129be36e2224bb28b3a86b52 new file mode 100644 index 000000000..3c8c7c963 --- /dev/null +++ b/6b/8de966705df9c6129be36e2224bb28b3a86b52 @@ -0,0 +1,121 @@ +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 207B4431FB6 + for ; Sat, 29 Sep 2012 01:57:45 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.7 +X-Spam-Level: * +X-Spam-Status: No, score=1.7 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, FREEMAIL_REPLY=2.499, 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 oC22tGkoObjc for ; + Sat, 29 Sep 2012 01:57:43 -0700 (PDT) +Received: from mail-bk0-f53.google.com (mail-bk0-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 67A17431FAE + for ; Sat, 29 Sep 2012 01:57:43 -0700 (PDT) +Received: by bkcjg15 with SMTP id jg15so4124643bkc.26 + for ; Sat, 29 Sep 2012 01:57:40 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:from:date:message-id:subject:to:content-type; + bh=EiDZmWMGgAiL2CYPOUzBIOy4tugdIjcuUfNRwI3x09k=; + b=YaYNLL9VKTRMzcobpKjyeaMgQDmJ47/S9Hv6zm3aYGbp9ExM1x9kYiLlB6fufMvNmf + O3eOogMV+N7TeyrwiyuS1XwW+hgyvUUaR08QDbyYZnvT8EDlh3D7O2geXNryS+ZlNUdv + bg7+cGDdjwFbgGFQQiPaX/Pm71l4CH2/XrMHS53GcTXzFsD0+p3C4I27DDuRLqR4UxeI + jn4z6JMu7Yi585DY+VzbYhpKnED4mnLr/HKuxtGdK8euRnmf9EexAcAYck2ZSUuQkfgZ + OLy0uEz5lfo8fwbQXufbp/VR6TZu81NcCMx6p7ltxBb9s3bW/KCyX9p4cHWfvMnfCYu/ + fsRg== +Received: by 10.204.147.139 with SMTP id l11mr4624819bkv.100.1348909060449; + Sat, 29 Sep 2012 01:57:40 -0700 (PDT) +MIME-Version: 1.0 +Received: by 10.204.40.78 with HTTP; Sat, 29 Sep 2012 01:57:20 -0700 (PDT) +From: Damien Cassou +Date: Sat, 29 Sep 2012 10:57:20 +0200 +Message-ID: + +Subject: Searching from a folder +To: notmuch@notmuchmail.org +Content-Type: text/plain; charset=ISO-8859-1 +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: Sat, 29 Sep 2012 08:57:45 -0000 + +Hi, + +I can't make notmuch search return the list of mails in [Gmail] +folders for a particular mailbox: + +~ $ notmuch search folder:"[Gmail].All Mail" +~ $ notmuch search folder:[Gmail].Important + +but these folders actually contain emails. This works well for another +gmail mailbox I have. You can reproduce by using the following +configuration files (yes, the password is here, that's just a test +account, don't worry): + +=================== +~/.offlineimaprc +=================== + +[Account GmailTest] +localrepository = LocalGmailTest +remoterepository = RemoteGmailTest + +[Repository LocalGmailTest] +type = Maildir +localfolders = /home/XXXXXXXXXXXXXX/Mail/GmailTest + +[Repository RemoteGmailTest] +type = IMAP +remotehost = imap.gmail.com +remoteuser = damien.test.cassou@gmail.com +remotepass = babebibob +ssl = yes +cert_fingerprint = f3043dd689a2e7dddfbef82703a6c65ea9b634c1 +maxconnections = 1 +realdelete = no + +=================== +~/.notmuch-config +=================== +[database] +path=/home/XXXXXXXXXXXXXXXXXXXX/Mail/GmailTest + +[user] +name=Damien Cassou +primary_email=damien.test.cassou@gmail.com +other_email=#xxxxxx + +[new] +tags= + +[search] +exclude_tags=deleted;spam; + +[maildir] +synchronize_flags=true + + +-- +Damien Cassou +http://damiencassou.seasidehosting.st + +"Lambdas are relegated to relative obscurity until Java makes them +popular by not having them." James Iry -- 2.26.2