Subject: [sup-talk] multiple accounts and reply

From: [email-masked] (Ian Taylor)
Date: Sat, 11 Aug 2007 20:23:47 -0400

I have sup setup to use multiple accounts. When replying to mail
received by the non-default account, the email address is set to the
default account's address. Is this supposed to be working? If so, I
didn't see it mentioned in the documentation.

Oh, and about the documentation... When you run rake clean, it removes
the 'docs' directory.

-- 
Ian Taylor, Technical Assistant
Computer Science Computer Engineering
http://www.csce.uark.edu itaylor at uark.edu
University of Arkansas

---

From: [email-masked] (William Morgan)
Date: Tue, 14 Aug 2007 12:00:20 -0700

> didn't see it mentioned in the documentation.

This should work. If an account email address is matched in the headers
of the original message, it uses that email address on the From: line.
If an account alternate email address is matched, it uses the regular
account email on the From: line. Failing all that, it uses the default
account.

In inspecting the code I did find a bug in certain cases. Can you svn
update and try again?

If it's still failing, I'd like to see the accounts section of your
config.yaml and the headers of the email.

> Oh, and about the documentation... When you run rake clean, it removes

Yeah, this is a Hoe "feature". I guess I'm not supposed to put my own
stuff in there because everything should be generated by rdoc, or
something.

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Ian Taylor)
Date: Tue, 14 Aug 2007 18:47:58 -0400

> In inspecting the code I did find a bug in certain cases. Can you svn

Still having problems.

> config.yaml and the headers of the email.

Thanks for taking the time to look at this.

x Return-Path: <XXXXXXX at gmail.com>
x Delivered-To: lorf-ian at lorf.org
x Received: (qmail 12196 invoked from network); 14 Aug 2007 22:32:00 -0000
x Received: from nz-out-0506.google.com (64.233.162.227)
x   by lorf.org with SMTP; 14 Aug 2007 22:32:00 -0000
x Received: by nz-out-0506.google.com with SMTP id m22so754113nzf
x         for <ian at lorf.org>; Tue, 14 Aug 2007 15:31:32 -0700 (PDT)
x DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
x         d=gmail.com; s=beta;
x         h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;
x         b=CdzFHegHMqYXR0tcBjKCHuor3vJ9wLhvoolg9lt+F5CeVEF0TejR861j+I0jwvVDaLSzDsS10UDijnxdtoi06E5w+MfoI4lS9N4OImHM1
x DomainKey-Signature: a=rsa-sha1; c=nofws;
x         d=gmail.com; s=beta;
x         h=received:message-id:date:from:to:subject:mime-version:content-type;
x         b=ewPvSfa+OFV2zHgtMGmV1HXtA37fykfPYssZ+e4EAsI1ktJBJn6j749x7Y3RGJ7cILcEr6h7L6MsQj6jEmGOc1g5A5uWzfXR+A4cthbXJ
x Received: by 10.142.157.15 with SMTP id f15mr766432wfe.1187130690410;
x         Tue, 14 Aug 2007 15:31:30 -0700 (PDT)
x Received: by 10.142.110.20 with HTTP; Tue, 14 Aug 2007 15:31:30 -0700 (PDT)
x Message-ID: <81488d6d0708141531j205f2c80y270c06f1ef3a2887 at mail.gmail.com>
x Date: Tue, 14 Aug 2007 18:31:30 -0400
x From: "Ian Taylor" <XXXXXXX at gmail.com>
x To: ian at lorf.org
x Subject: test
x MIME-Version: 1.0
x Content-Type: multipart/alternative;
x     boundary="----=_Part_67191_10909169.1187130690392"
x 
x 

config.yaml:
--- 
:editor: /usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail'
:accounts: 
  :default: 
    :alternates:
    - ian at lorf.org

    :signature: /home/ian/.signature-uark
    :name: Ian Taylor
    :email: itaylor at uark.edu
    :sendmail: /usr/bin/nbsmtp -c /home/ian/.nbsmtp/itaylor at uark.edu
  :lorf:
    :name: Ian
    :signature: /home/ian/.signature-lorf
    :email: ian at lorf.org
    :sendmail: /usr/bin/nbsmtp -c /home/ian/.nbsmtp/ian at lorf.org

---

From: [email-masked] (William Morgan)
Date: Tue, 14 Aug 2007 22:16:07 -0700

> :editor: /usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set

I think the problem is this line. You're saying that ian at lorf.org is a
valid alternate address for the default account. So when you receive
mail Sup then uses the default account's primary email address as the
"From" address.

If you remove that line replies should work as you expect: emails to
ian at lorf.org will use .singature-lorf, etc.