From address when responding to your own emails
Hi, I use multiple from addresses. When I respond to my own emails in a thread, I would like to use the same from address as in my original email. Instead my default address gets picked up. I thought this works by setting alternates. But that does not seem to work. I use the following regular expression in my alternates line: "([Ss]uvayu\\.[Aa]li|[Aa]li\\.[Ss]uvayu|sali)@.+" I expect this to match any of the following addresses: suvayu@anydomain.com suvayu@anydomain.com ali.suv...@anydomain.com ali.suv...@anydomain.com s...@anydomain.com Any thoughts as to what is going wrong? -- Suvayu Open source is the future. It sets us free.
Re: From address when responding to your own emails
On Thu, Apr 18, 2013 at 03:41:02PM +0200, Suvayu Ali wrote: > I use multiple from addresses. When I respond to my own emails in a > thread, I would like to use the same from address as in my original > email. Instead my default address gets picked up. I thought this > works by setting alternates. But that does not seem to work. Do you have $reverse_name set? I think your regex can be simplified - the literal dots only need to be escaped once, and I think $alternates is already case-insensitive. w
Re: From address when responding to your own emails
Thu 18.Apr'13 at 8:41:11 -0700, Will Yardley > On Thu, Apr 18, 2013 at 03:41:02PM +0200, Suvayu Ali wrote: > > > I use multiple from addresses. When I respond to my own emails in a > > thread, I would like to use the same from address as in my original > > email. Instead my default address gets picked up. I thought this > > works by setting alternates. But that does not seem to work. > > Do you have $reverse_name set? > > I think your regex can be simplified - the literal dots only need to be > escaped once, and I think $alternates is already case-insensitive. > > w Will is right, you only need to set $reverse_name. -- James Griffin: jmz at kontrol.kode5.net jmzgriffin at gmail.com A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Re: From address when responding to your own emails
Hi Will and James, On Fri, Apr 19, 2013 at 12:10:48AM +0100, James Griffin wrote: > Thu 18.Apr'13 at 8:41:11 -0700, Will Yardley > > On Thu, Apr 18, 2013 at 03:41:02PM +0200, Suvayu Ali wrote: > > > > > I use multiple from addresses. When I respond to my own emails in a > > > thread, I would like to use the same from address as in my original > > > email. Instead my default address gets picked up. I thought this > > > works by setting alternates. But that does not seem to work. > > > > Do you have $reverse_name set? > > > > I think your regex can be simplified - the literal dots only need to be > > escaped once, and I think $alternates is already case-insensitive. > > Will is right, you only need to set $reverse_name. Yes, I have $reverse_name set to yes too. While looking at my setup again, I found my problem; I had a unneeded default message-hook: message-hook . "my_hdr From: myaddr...@defaultdomain.com" Commenting it out solved my issue. Extremely sorry for the noise. PS: Thanks Will, I tried a simplified regex and it still works. :) -- Suvayu Open source is the future. It sets us free.