From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.151.111.12 with SMTP id o12cs200623ybm; Wed, 19 Oct 2011 07:31:43 -0700 (PDT) Received: by 10.52.73.7 with SMTP id h7mr6824173vdv.105.1319034702816; Wed, 19 Oct 2011 07:31:42 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org. [205.234.109.19]) by mx.google.com with ESMTP id dg10si87857vcb.111.2011.10.19.07.31.42; Wed, 19 Oct 2011 07:31:42 -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 28530121827C; Wed, 19 Oct 2011 10:31:42 -0400 (EDT) Received: from mail-yx0-f178.google.com (mail-yx0-f178.google.com [209.85.213.178]) by rubyforge.org (Postfix) with ESMTP id EBB08185837E; Wed, 19 Oct 2011 10:31:36 -0400 (EDT) Received: by yxi11 with SMTP id 11so1830635yxi.23 for ; Wed, 19 Oct 2011 07:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:content-type:cc:subject:from:to:in-reply-to:references:date :message-id:user-agent:content-transfer-encoding; bh=QHHTUzCDD6Y2s+nnZdXUU3ng77QCUnHPSFwVqypRAhg=; b=MgQUxTAbbCIk24O6QDAKa4fKPRtswVHyUDhKasTA2/kPmm4Kn54x9R2XRuG/nWjDcK ANVC+20CkffesOZTsN6+Ecx3T86+JwBZDWcn628OT8IrQVC8hoRuu/bez7OXKb69CmV1 q7SSxmYTB4xmivzpgEGwpT99/FOqbnp+zTG1Y= Received: by 10.42.154.201 with SMTP id r9mr12714508icw.14.1319034696479; Wed, 19 Oct 2011 07:31:36 -0700 (PDT) Received: from localhost (c-76-19-84-179.hsd1.vt.comcast.net. [76.19.84.179]) by mx.google.com with ESMTPS id eh34sm15125127ibb.5.2011.10.19.07.31.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Oct 2011 07:31:33 -0700 (PDT) From: Mark Alexander To: Hamish D In-reply-to: References: Date: Wed, 19 Oct 2011 10:31:29 -0400 Message-Id: <1319034152-sup-5416@bloovis.org> User-Agent: Sup/git 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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 see that Sascha Silbe said something about this seven months ago: > This one would possibly break my workflow. My From address is chosen in > the before-edit hook based on the set of recipients. Since you only > call before-edit once with headers_full as headers, whatever From > address gets chosen for the initial reply mode will "stick". Here's the sanitized before-edit.rb hook, in case that helps: unless header["In-reply-to"] if header["To"] =~ /widgets/ to = header["To"] info "Sending as widgets, to = #{to}" header["From"] = "Mark Alexander " else to = header["To"] info "Sending as pobox, to = #{to}" header["From"] = "Mark Alexander " end end _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel