From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 448561938432 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,f1736d7c46cc25e2 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.112.72.228 with SMTP id g4mr2178938lbv.4.1419420679301; Wed, 24 Dec 2014 03:31:19 -0800 (PST) X-BeenThere: supmua@googlegroups.com Received: by 10.152.234.203 with SMTP id ug11ls404861lac.67.gmail; Wed, 24 Dec 2014 03:31:18 -0800 (PST) X-Received: by 10.152.37.193 with SMTP id a1mr1649883lak.3.1419420678716; Wed, 24 Dec 2014 03:31:18 -0800 (PST) Return-Path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com. [74.125.82.50]) by gmr-mx.google.com with ESMTPS id f6si1088293wiv.0.2014.12.24.03.31.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Dec 2014 03:31:18 -0800 (PST) Received-SPF: none (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) client-ip=74.125.82.50; Authentication-Results: gmr-mx.google.com; spf=none (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) smtp.mail=eg@gaute.vetsj.com Received: by mail-wg0-f50.google.com with SMTP id a1so11083682wgh.23 for ; Wed, 24 Dec 2014 03:31:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :user-agent:message-id:mime-version:content-type :content-transfer-encoding; bh=Wk+3qjgvjPxCDOgJs9CNrWphgnX4zad44UJvu+gMdBw=; b=Kp9xuqcVIw4e7vsTKzuQ5BYTX/6yW+ZH/nAOCb+MvB9PDXRq+fua1PYUb5X1KD//VS Njr3OWNk3k3JXRfC0N9C9pVc0e8gP6ZmAuhP5snNd6wDu7SSTge9WhWkD5CDdepZVNkn Mn/vw5Fj1V8oXnKtxbGPfnKYzqYa2qH7XBc3MpFwv7gCBDcpcd0G0Zrbe3x8MX/TNTvJ 6mh1t0VrZHPv8ZqnP/OJk0qUhlMV+O4ztZ69u7sLnKOK2nlDZnZPLlsssLaq+oPX0gmF 7hNHs99UpgmlVTdjHws5AFLE70e7pLnCySYaALYkMuJ/GlQXWjMBFn7J+eTNUDArDBMM cXtw== X-Gm-Message-State: ALoCoQluMxJoTYAyu9HCcg1VlnhFedF+7/ET3BsDdL99xGW+OvzXMQutl81pzaf305UqZRf4C5l7 X-Received: by 10.180.210.236 with SMTP id mx12mr51116538wic.16.1419420678062; Wed, 24 Dec 2014 03:31:18 -0800 (PST) Return-Path: Received: from localhost (216.89-20-249.enivest.net. [89.20.249.216]) by mx.google.com with ESMTPSA id ry19sm31288240wjb.3.2014.12.24.03.31.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Dec 2014 03:31:16 -0800 (PST) Date: Wed, 24 Dec 2014 11:31:30 +0000 From: Gaute Hope Subject: Re: [sup] Best hacks for multiple sent_source folders To: Ruthard Baudach , supmua References: <1419246610-sup-3120@ruthard-lappi> In-Reply-To: <1419246610-sup-3120@ruthard-lappi> User-Agent: astroid/vv0.1-35-g2a8eb7e0 (https://github.com/gauteh/astroid) Message-Id: <1419420510-astroid-1-kyzzesh3ck-5557@strange> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Excerpts from Ruthard Baudach's message of December 22, 2014 12:23: >>=3D=3D Ausz=C3=BCge aus der Nachricht von Matthew Bloch vom 2014-12-21 0= 5:17: >> Hello sup users, >>=20 >> I've nearly got my sup setup ready to replace various other clients. Wha= t's=20 >> everyone's current best advice for filing outgoing email in folders by=20 >> account? i.e. personal email to be filed in ~/mail/Personal/Sent, work=20 >> email to be filed in ~/mail/Work/Sent ? (both synchronised by offlineima= p=20 >> for me) >>=20 >> I can see a few ways to make that happen but nothing too recent. Thanks! >>=20 >> --=20 >> Matthew >=20 > This is an old wish from me, and as far as I know it, it's not possible > at the moment. >=20 > The suppish way to do this would be to automatically add labels to the > outgoing mail rather than putting them in folders. I don't know > offlineimap, as far as I got it, it synchronizes labels and imap > folders, thus completing this task. >=20 > The place to do this would be in the sendmail hook (or to create an > extra, let's say before-send hook for this, so that the sendmail hook > needs not to implement mail sending.) >=20 > Alas, the message object passed to this hook does not contain labels and > is not passed back to update anything in sup. >=20 > I did not manage to change this in a reasonable time, perhaps it would > indeed be easier to add a before-send hook to do this. >=20 > The place to do this would be in lib/sup/modes/edit-message-mode.rb, as > far as I found out. >=20 > So you could either polish up your ruby and look into it and submit a > patch, or wait till someone else does it. Have a look at Matthieu's patch over at #320. You might try rebasing it on top of latest 'develop'. #320: https://github.com/sup-heliotrope/sup/pull/320 - gaute =