From: Rainer M Krug Date: Wed, 28 Nov 2012 10:57:31 +0000 (+0100) Subject: Subfolders as local subfolders in maildir after sync from gmail? X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4df59de3d716cef228b833e136468225e108bf2b;p=notmuch-archives.git Subfolders as local subfolders in maildir after sync from gmail? --- diff --git a/9c/9d83e510fee528c623286d1573c74216f1adc1 b/9c/9d83e510fee528c623286d1573c74216f1adc1 new file mode 100644 index 000000000..7c610ceef --- /dev/null +++ b/9c/9d83e510fee528c623286d1573c74216f1adc1 @@ -0,0 +1,106 @@ +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 4AB92431FAF + for ; Wed, 28 Nov 2012 02:57:59 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.202 +X-Spam-Level: * +X-Spam-Status: No, score=1.202 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2] 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 yPh+H9PW6jgV for ; + Wed, 28 Nov 2012 02:57:58 -0800 (PST) +Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 4C855431FAE + for ; Wed, 28 Nov 2012 02:57:58 -0800 (PST) +Received: from list by plane.gmane.org with local (Exim 4.69) + (envelope-from ) id 1TdfL3-0002Vi-0g + for notmuch@notmuchmail.org; Wed, 28 Nov 2012 11:57:57 +0100 +Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) + by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Wed, 28 Nov 2012 11:57:57 +0100 +Received: from R.M.Krug by arn78-1-88-186-171-7.fbx.proxad.net with local + (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 + for ; Wed, 28 Nov 2012 11:57:57 +0100 +X-Injected-Via-Gmane: http://gmane.org/ +To: notmuch@notmuchmail.org +From: Rainer M Krug +Subject: Subfolders as local subfolders in maildir after sync from gmail? +Date: Wed, 28 Nov 2012 11:57:31 +0100 +Lines: 45 +Message-ID: +Mime-Version: 1.0 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: 7bit +X-Complaints-To: usenet@ger.gmane.org +X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net +User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 +X-Enigmail-Version: 1.5a1pre +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: Wed, 28 Nov 2012 10:57:59 -0000 + +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +Hi + +I have subfolders in gmail, and they are represented locally as flat folders, separated by "_". Is +it possible to maintain the subfolder structure locally? + +Below my .offlineimaprc + +Thanks, + +Rainer + +[general] +accounts = Gmail +maxsyncaccounts = 1 + +[Account Gmail] +localrepository = LocalRMKruggmailcom +remoterepository = RMKruggmailcom +postsynchook = notmuch new +status_backend = sqlite + +[Repository LocalRMKruggmailcom] +type = Maildir +localfolders = ~/Maildir/R_M_Krug__gmail_com + +[Repository RMKruggmailcom] +type = Gmail +sslcacertfile = /etc/ssl/certs/ca-certificates.crt +remoteuser = USERNAME +remotepass = PASSWORD +maxconnections = 3 +folderfilter = lambda foldername: foldername not in ['[Gmail]/Trash','[Gmail]/Bin','[Gmail]/Spam'] +readonly = true +createfolders = false +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) +Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ + +iEYEARECAAYFAlC17hYACgkQoYgNqgF2egrqBwCeKswJzQZITHkOwybQhw+vaWN6 +IG8An2EfN10B6Q+UJyr0+8Cs1k1jkYsR +=8fFF +-----END PGP SIGNATURE----- +