From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79855 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: proper hook for message body transform? Date: Fri, 09 Sep 2011 21:07:10 +0800 Message-ID: <87d3f96f0h.fsf@ericabrahamsen.net> References: <87lity54pj.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315573673 15389 80.91.229.12 (9 Sep 2011 13:07:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2011 13:07:53 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28149@lists.math.uh.edu Fri Sep 09 15:07:47 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R20o6-0005ha-J4 for ding-account@gmane.org; Fri, 09 Sep 2011 15:07:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1R20o0-0007dc-Qc; Fri, 09 Sep 2011 08:07:40 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R20nz-0007dR-A1 for ding@lists.math.uh.edu; Fri, 09 Sep 2011 08:07:39 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R20no-0001rk-UN for ding@lists.math.uh.edu; Fri, 09 Sep 2011 08:07:39 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R20nn-0005Gk-IT for ding@gnus.org; Fri, 09 Sep 2011 15:07:27 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R20nl-0005VL-Jq for ding@gnus.org; Fri, 09 Sep 2011 15:07:25 +0200 Original-Received: from 221.220.55.240 ([221.220.55.240]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Sep 2011 15:07:25 +0200 Original-Received: from eric by 221.220.55.240 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Sep 2011 15:07:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 221.220.55.240 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:E6SylHX+OoHq+l2d/+YydHbGSV4= X-Spam-Score: -4.2 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79855 Archived-At: On Fri, Sep 09 2011, Leo wrote: > On 2011-09-09 19:35 +0800, Eric Abrahamsen wrote: >> I hope someone can give me a little advice on a project I'm working on. >> I'm trying to put tags into a message body that will "do things" > > Put a new header name (e.g. X-Org-Tags) in message-default-headers. Add > a message-send-hook that does whatever you want to do. Yes! I had the same idea, but it seemed conceptually wrong -- this information is never leaving my local machine, and no mail servers or mail recipients would ever know what to do with such a header. In that case a removable tag in the message body seemed like the better choice. I'll settle on message-send-hook as the one to use, but I guess I'll have to experiment with both the tag and header routes before making a decision. Thanks!