From 84c701b54c0bbb99e0f6da82cb7e679e9b18f239 Mon Sep 17 00:00:00 2001 From: "r.m.krug" Date: Fri, 1 Mar 2013 16:00:48 +0100 Subject: [PATCH] nametrans rules --- 42/336281a41be620b029a4a335ebdfae13d5fabb | 102 ++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 42/336281a41be620b029a4a335ebdfae13d5fabb diff --git a/42/336281a41be620b029a4a335ebdfae13d5fabb b/42/336281a41be620b029a4a335ebdfae13d5fabb new file mode 100644 index 000000000..467d4882f --- /dev/null +++ b/42/336281a41be620b029a4a335ebdfae13d5fabb @@ -0,0 +1,102 @@ +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 5ECFB431FAF + for ; Fri, 1 Mar 2013 07:00:57 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, 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 zkubMla9778L for ; + Fri, 1 Mar 2013 07:00:56 -0800 (PST) +Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com + [74.125.82.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + B10F4431FAE for ; Fri, 1 Mar 2013 07:00:56 -0800 + (PST) +Received: by mail-wg0-f46.google.com with SMTP id fg15so2438938wgb.25 + for ; Fri, 01 Mar 2013 07:00:55 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=x-received:from:to:subject:date:message-id:mime-version + :content-type; bh=dVxRa8EauzxVZQhMUNlETVzXtS0X2pdM9lDkPJF0uD4=; + b=mj564xMCtwM+7apZYiHI36lswfQ1Lk5uQVLyEtYdB1BBEoiTtkP7D5dIns+PAFOOmg + AEngc/C6fwnwIpxcRp7Tew0YjdyabgESkb/VdEWvqoEGwWd9ChHwXxjMcNwJ2Et9f42y + wIiCq3IRzAdz5fI+9dnvUfuLWdQbnDw2Cp5Cy1mCw3zJ7JttlauJkd/XtI2AglXAXEQ0 + 83lh4kOWwJ7UiEVXyGq0CXG7VO83AgQYV5fl9fVopQ6bkcRdKoH40NgJy+y9zOxwn3pU + SGWFwkbrBAKaxG/+hRw7XUyRGGNMpbNVI0KVhuykVrAFHwSzHA+40i+tsPi+5a3kbhTc + dgzA== +X-Received: by 10.194.10.202 with SMTP id k10mr17994515wjb.53.1362150054068; + Fri, 01 Mar 2013 07:00:54 -0800 (PST) +Received: from ecolmod.local ([2a01:e35:8baa:b070:c9b8:8e94:3e7d:8bba]) + by mx.google.com with ESMTPS id j4sm39962627wiz.10.2013.03.01.07.00.52 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Fri, 01 Mar 2013 07:00:53 -0800 (PST) +From: r.m.krug@gmail.com +To: notmuch@notmuchmail.org +Subject: nametrans rules +Date: Fri, 01 Mar 2013 16:00:48 +0100 +Message-ID: <87a9qn88rj.fsf@krugs.de> +MIME-Version: 1.0 +Content-Type: text/plain +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: Fri, 01 Mar 2013 15:00:57 -0000 + +Hi +I just want to make sure - are these nametrans rules correct, as on +gmail side has / as a path separator and the local . ? + +See selected output from --info: + +gmail account: + Remote repository 'RemoteRMKrugGMAIL': type 'Gmail' + + folderfilter= lambda folder: folder.startswith('GMAILArchive') + nametrans= lambda foldername: 'RMKrugGMAIL.' + foldername + + GMAILArchive -> RMKrugGMAIL.GMAILArchive + GMAILArchive/1970 -> RMKrugGMAIL.GMAILArchive/1970 + +local imap accound (dovecot) + Local repository 'LocalRMKrugGMAIL': type 'MappedIMAP' + + RMKrugGMAIL.GMAILArchive -> GMAILArchive + RMKrugGMAIL.GMAILArchive.1970 -> GMAILArchive.1970 + +Thanks, + +Rainer + + +-- +Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) + +Centre of Excellence for Invasion Biology +Stellenbosch University +South Africa + +Tel : +33 - (0)9 53 10 27 44 +Cell: +33 - (0)6 85 62 59 98 +Fax : +33 - (0)9 58 10 27 44 + +Fax (D): +49 - (0)3 21 21 25 22 44 + +email: Rainer@krugs.de + +Skype: RMkrug -- 2.26.2