From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2012F431FDF for ; Thu, 5 Feb 2015 02:34:00 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.639 X-Spam-Level: * X-Spam-Status: No, score=1.639 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DNS_FROM_AHBL_RHSBL=2.438, 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 YBxNCs5PRr1I for ; Thu, 5 Feb 2015 02:33:56 -0800 (PST) Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A6E0F431FBC for ; Thu, 5 Feb 2015 02:33:56 -0800 (PST) Received: by mail-we0-f179.google.com with SMTP id u56so1310562wes.10 for ; Thu, 05 Feb 2015 02:33:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type:content-transfer-encoding:attach; bh=rR0eFjirJVfi6bbjGEYYsNdOB/pAV6Sl4YZHz5xgEQc=; b=OVWN61kkaTDHBn6qYJeBgxTdY1EOK7KMdY/rT1mM7OkhSyVrJIZ3bb49rHlbAvPRP0 4XMZpU3Cc1NorAYXQQpyRN2ZPMjJUTRjPcoaxffogt5TqTxdzHSLOy75eTA5xXDI9wjq Jb++MSEa0PjT9T1DX36mhmoN1Qzy9YOwlSupB8VEm0ToI1VJxfhZRcOpxo5b2oY87Fvk LYb5juiWsIhhQO/US9hWBFoiYXWAgTrUWE/vsijmxEXPIMdwt5SmdjZ4/jNiyBNw7zrH AVre6iGSmCywTDy8bRbSk2dUn7o6N6Uf7OfyoQhO5GVNSWmiznocqydjxuzqeiFcAAFU npLA== X-Received: by 10.194.23.39 with SMTP id j7mr6165976wjf.9.1423132433163; Thu, 05 Feb 2015 02:33:53 -0800 (PST) Received: from localhost (p4FFB8C0A.dip0.t-ipconnect.de. [79.251.140.10]) by mx.google.com with ESMTPSA id w3sm6751163wjf.3.2015.02.05.02.33.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 02:33:52 -0800 (PST) Date: Thu, 05 Feb 2015 11:34:22 +0100 From: Franz Fellner To: Bartosz Telenczuk Message-ID: <54d3472e9a3f8_848fb3308bb@TP_L520.notmuch> In-Reply-To: <54d00b64c9a73_47c3ff0b58781fc17@bartels-MacBook-Pro.local.notmuch> References: <1412617904-27252-1-git-send-email-imain@stemwinder.org> <1412619036-29203-1-git-send-email-imain@stemwinder.org> <20141014154535.GJ23373@TP_L520.localdomain> <543d5e2927b41_5918e8fe90f4@ovo.mains.priv.notmuch> <54b4621983c45_7f93fe5bd4401f0ef@bts-MacBook-Pro.local.notmuch> <54bff88d4b5dd_5b9d145d30431@TP_L520.notmuch> <54d00b64c9a73_47c3ff0b58781fc17@bartels-MacBook-Pro.local.notmuch> Subject: Re: [PATCH] VIM: Make an option to save sent mail locally Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Attach: Cc: notmuch@notmuchmail.org, Bartosz Telenczuk 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: Thu, 05 Feb 2015 10:34:00 -0000 Bartosz Telenczuk wrote: > > > I would appreciate an option to configure the "sent" box per provider. I > > > implemented this feature in this patch: > > > > > > id:1420891384-992-4-git-send-email-telenczuk@unic.cnrs-gif.fr > > > > Generally it might work. But there are other features that may rely on per-account-settings (drafts, outbox, templates, ...). Setting them all that way might get ugly. The best solution might be to introduce a setting for account information. > > Definitely, in my implementation this is done via a setting in the notmuch config file, which maps between accounts and provider dir. If this is not configure, it default to not storing sent emails. For example: > > [vim] > sent_dirs=telenczb@hu-berlin.de=>HU/Sent;telenczuk@unic.cnrs-gif.fr=>CNRS/Sent That's what I called "ugly": Using a probably long and/or unreadable mail address as identifier is errorprone, if you have several accounts those things tend to get unreadable. Especially if you need to write them over and over again for different folders/features (sent, drafts, ...). I thought of one string to store the whole account manager config, just like [default] # or call it "local" - not bound to any real account sent=Sent drafts=Drafts [account1] mail=account1@mail.com sent=account1/sent drafts=account1/drafts [account2] mail=account2@gmail.com sent=Sent # gmail specific: using gmails smtp server stores sent mails automatically on the server drafts=account2/drafts // and so on (used an ini format, but might be done in any other way like ruby hashes or yaml or...) The default settings get default values by our vim plugin. They get used automatically if a user-defined account does not specifically set a folder - that way account2 could just have left out the "sent" setting. If the user overwrites the default-account and leaves out a folder, such as sent, he might want that feature to be deactivated. Though I still think it is dangerous: it applies well for sent, but deactivating drafts (probably as automatic temporary storage for mails that are currently written and should be restorable after a crash) can cause issues, e.g. lost mails. So I would vote for a different solution. E.g. a separate boolean setting. Or we could treat an empty string for non-default accounts as "deactivate": [account2] drafts="" I can start implementing this, but I currently have other important things to do, so it can take some time. Franz > > Cheers, > > Bartosz