--- /dev/null
+Return-Path: <notmuchmail_org@campese.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 5B9216DE0350\r
+ for <notmuch@notmuchmail.org>; Sat, 9 Jan 2016 07:44:35 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.505\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.505 tagged_above=-999 required=5 tests=[AWL=-0.495,\r
+ RCVD_IN_DNSWL_LOW=-0.7, URIBL_DBL_SPAM=1.7] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id tlVFnUcwtU93 for <notmuch@notmuchmail.org>;\r
+ Sat, 9 Jan 2016 07:44:33 -0800 (PST)\r
+X-Greylist: delayed 490 seconds by postgrey-1.35 at arlo;\r
+ Sat, 09 Jan 2016 07:44:32 PST\r
+Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id EF1036DE02DA\r
+ for <notmuch@notmuchmail.org>; Sat, 9 Jan 2016 07:44:32 -0800 (PST)\r
+Received: from mailer.rman (unknown [2.239.24.102])\r
+ (Authenticated sender: mailer@campese.de)\r
+ by mail.worldserver.net (Postfix) with ESMTPSA id 925B9300468\r
+ for <notmuch@notmuchmail.org>; Sat, 9 Jan 2016 16:36:11 +0100 (CET)\r
+From: Simon Campese <notmuchmail_org@campese.de>\r
+To: notmuch@notmuchmail.org\r
+Subject: feature request: regular expressions inside "other_email"-field\r
+User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1\r
+ (amd64-portbld-freebsd10.1)\r
+Date: Sat, 09 Jan 2016 15:36:10 +0000\r
+Message-ID: <867fjipxxx.fsf@emacs.campese.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 09 Jan 2016 15:44:35 -0000\r
+\r
+Hello,\r
+\r
+background story (you can skip to the next paragraph for the actual\r
+feature request):\r
+I have a special "spam domain" with a catchall-email (all mails sent to\r
+my domain are forwarded to this email, unless there exists an actual\r
+account), so that I can give out customized email-adresses on the fly\r
+("company_a@mydomain.org' to company A, "website_org@mydomain.org" when\r
+registering on website.org etc.) when I need to fill in an email address\r
+somewhere. This way, I can not only easily filter all unimportant mail\r
+to a secondary mailbox, but also see exactly where spammers got my email\r
+from. The problem now comes when I need to reply to such an email:\r
+As I of course don't edit my notmuch-config to adjust the other_email\r
+field everytime I invent such an email-address, notmuch doesn't know\r
+that the mail was written to me and thus puts in my standard email\r
+inside the from-header. I thus have to remember to manually change the\r
+from-header and put in the customized email. It would be much more\r
+convenient if I could teach notmuch that all adresses of some special\r
+form (for example written to some domain) are all mine and thus should be\r
+copied from the to-header to the from-header when replying.\r
+\r
+As far as I can see, there are at least two possible solutions:\r
+\r
+1. (quick and dirty):\r
+Write a function which copies the to-header to the from-header if it\r
+matches some regular expression and call it from message-setup-hook.\r
+\r
+2. (more general):\r
+Make the other_email field inside notmuch-config regular-expression\r
+aware (or maybe just support to indicate domain parts). This way, one could write\r
+something like\r
+\r
+other_email=@mydomain.org\r
+\r
+and notmuch would always copy the to-header to the from-header when\r
+replying to mails sent to something@mydomain.org\r
+\r
+I would be very thankful for any solution to this problem as it would save\r
+me a LOT of time every day. I tried to write a function for the\r
+message-setup-hook but due to my very limited knowledge of elisp and\r
+notmuch I didn't get it to work properly.\r
+\r
+\r
+Best,\r
+\r
+Simon\r