Re: Change the reply.
- To: mutt-users@xxxxxxxx
- Subject: Re: Change the reply.
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Mon, 27 Apr 2009 16:57:05 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; s=default; bh=kJenXVDsND MdDgtPRmisg0rfYBs=; b=DKfpqny1EOqm+rGY2Hu2scouf86Jflm/tj8y0KWJvF c4GmvVNfoARxQboxuBZf5WuM6UI5DtCWAbzYIsWSpwYL2SjRKQ2V42QSHgTOd6PI XrIzXDFGZ3O+k73fLXXpizOqiW3p8Sddt+S4Y2L03XM2PurODRSQFtv7gxrwiF/L s=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=YaOmsDtxnCuKfuEs0IEJo5lBAHlqvU1LZB5KbhHjDclfym/7UfbnkrFluPJVjOWF0+o6TgbVBZjuRzc+8tcKu8P0vTzAsWkiL1ABPWiKESVqAvj4tn7hKmsOJ/jeWNFjhxdycVz7N8A8CFms6vJSJYoOnsq30Z1FdB9USq6ATWg=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090427204817.GB16738@xxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090427132514.GC13925@xxxxxxxx> <cdfade20904270855n71a57f8fxc550318ce4fd5e42@xxxxxxxxxxxxxx> <20090427204817.GB16738@xxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-04-17)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, April 27 at 10:48 PM, quoth Albert Shih:
>Another question :
>
>
> Some people send me mail directly to me (instead helpdesk), when I
> answer it, I put «helpdesk@mycompagny» in CC:
>
> Is they are any solution to put automatically in this situation the
> reply-to at helpdesk@mycompagny too ?
>
>I've try send2-hook but it's not working.
When you use my_hdr, that only sets up the headers for new messages,
so it only works on the "current" message if you trigger it just
before the message is created (i.e. via send-hook).
What you would need to do instead is use the <edit-reply-to> function.
The only problem with this is that there's no way of preventing the
send2 hook from creating an infinite loop. Once you change the message
via <edit-reply-to>, all the send2-hooks will get re-evaluated and
potentially re-triggered, which could cause trouble.
For example, this would cause an infinite loop:
send2-hook '~C helpdesk@mycompany' \
'<edit-reply-to><kill-line>helpdesk@mycompany<enter>'
Now, you CAN do this if you create a kind of shortcut, like so:
send2-hook '~C fixhelpdesk' \
'<edit-cc><kill-line>helpdesk@mycompany<enter><edit-reply-to><kill-line>helpdesk@mycompany<enter>'
Thus, set your CC to fixhelpdesk, and mutt will alter the CC and the
reply-to. The reason that works is because after you change the
message, the hook won't trigger again.
~Kyle
- --
UNIX was not designed to stop you from doing stupid things, because
that would also stop you from doing clever things.
-- Doug Gwyn
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkn2KjEACgkQBkIOoMqOI17WoACfUry3e3k0UanEb3MHEsOleg0d
en8AoO0gIHa09KsFvOlOURuE957FV2dx
=N/LC
-----END PGP SIGNATURE-----