From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.151.79.21 with SMTP id g21cs19380ybl; Thu, 20 Oct 2011 06:18:19 -0700 (PDT) Received: by 10.229.188.12 with SMTP id cy12mr2330018qcb.26.1319116699103; Thu, 20 Oct 2011 06:18:19 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org. [205.234.109.19]) by mx.google.com with ESMTP id j8si2405578qcv.195.2011.10.20.06.18.18; Thu, 20 Oct 2011 06:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id CF7ED15B8030 for ; Thu, 20 Oct 2011 09:18:18 -0400 (EDT) Received: from mail-qy0-f171.google.com (mail-qy0-f171.google.com [209.85.216.171]) by rubyforge.org (Postfix) with ESMTP id 2A90015B802B; Thu, 20 Oct 2011 09:18:05 -0400 (EDT) Received: by qyk33 with SMTP id 33so4787714qyk.2 for ; Thu, 20 Oct 2011 06:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:cc:subject:from:to:in-reply-to:references:date:message-id :user-agent:content-transfer-encoding:mime-version:content-type; bh=+hVufG29VLiQunwJOamqdgCtGrSchHbPOmOrD5s71nI=; b=Av3GUgl5Bbv7iDfUU5QgrOrBpOPdIOYfA8ij4vCOfug7sdf/xCt7XjKwpURicYGhon ANuZWxsv+nSVjWNuh+JaptQg9nhXvmkr9PaDiBZeUSJ6eRBcqU546AOrCTgmu++d1bcA c9vag9PqpyVwadrtuRjrjIbF6KSLbys/H8aTo= Received: by 10.229.64.81 with SMTP id d17mr2385416qci.114.1319116685382; Thu, 20 Oct 2011 06:18:05 -0700 (PDT) Received: from localhost (c-24-128-128-138.hsd1.vt.comcast.net. [24.128.128.138]) by mx.google.com with ESMTPS id bh18sm10872453qab.8.2011.10.20.06.18.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Oct 2011 06:18:03 -0700 (PDT) From: Mark Alexander To: Mark Alexander In-reply-to: <1319034152-sup-5416@bloovis.org> References: <1319034152-sup-5416@bloovis.org> Date: Thu, 20 Oct 2011 09:18:01 -0400 Message-Id: <1319116525-sup-839@bloovis.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-1319116681-917433-5348-6535-1-=" Cc: sup-talk , Sup developer discussion Subject: Re: [sup-devel] [sup-talk] Preparing for sup 0.13 X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --=-1319116681-917433-5348-6535-1-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Excerpts from Mark Alexander's message of Wed Oct 19 10:31:29 -0400 2011: > Excerpts from Hamish D's message of Sun Oct 16 08:09:41 -0400 2011: > > * added an account selector when composing email for those who have > > multiple possible from addresses > > I'm having a problem with this feature, too. > > I have two main email accounts, one for personal email and one for > work email. My before-edit.rb hook figures out which account to use > as the sender (the "From" header) by looking at the recipients (the > "To" header). This worked with sup 0.12, but with 0.13 the sender is > changed back to the default as soon as I exit the editor. I'm trying out the attached fix, and so far it seems to work. it simply moves the calling of the before-edit hook before the creation of the account selector. --=-1319116681-917433-5348-6535-1-= Content-Disposition: attachment; filename="before-edit.patch" Content-Type: application/octet-stream; name="before-edit.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpYi9zdXAvbW9kZXMvZWRpdC1tZXN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gOmNyeXB0b19zZWxlY3RvciA9PiBAY3J5 cHRvX3NlbGVjdG9yCiAgICAgZW5kCg== --=-1319116681-917433-5348-6535-1-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --=-1319116681-917433-5348-6535-1-=--