From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79057 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: using templates to write articles (email) Date: Fri, 10 Jun 2011 21:32:56 +0200 Organization: The Gnus Project Message-ID: References: <87fwnhd0mx.fsf@yun.yagibdah.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307734419 6662 80.91.229.12 (10 Jun 2011 19:33:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2011 19:33:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27356@lists.math.uh.edu Fri Jun 10 21:33:33 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 1QV7SW-0005Sw-AC for ding-account@gmane.org; Fri, 10 Jun 2011 21:33:32 +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 1QV7SB-0001QD-1U; Fri, 10 Jun 2011 14:33:11 -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 1QV7S9-0001Q0-8o for ding@lists.math.uh.edu; Fri, 10 Jun 2011 14:33:09 -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 1QV7S7-0006aQ-Hv for ding@lists.math.uh.edu; Fri, 10 Jun 2011 14:33:09 -0500 Original-Received: from smtp6-g21.free.fr ([212.27.42.6]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QV7S4-0000EV-2o for ding@gnus.org; Fri, 10 Jun 2011 21:33:04 +0200 Original-Received: from Scofield.local.free.fr (unknown [88.181.0.232]) by smtp6-g21.free.fr (Postfix) with ESMTP id 0C9E782314 for ; Fri, 10 Jun 2011 21:32:57 +0200 (CEST) In-Reply-To: <87fwnhd0mx.fsf@yun.yagibdah.de> (lee@yun.yagibdah.de's message of "Fri, 10 Jun 2011 20:03:50 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) XEmacs/21.5-b31 (darwin) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUnLR7u7uZtSSzStp/4 9/Xp8PMZCwl2eHQkPiC8AAACRElEQVQ4jW2Sy4rjMBBFa9ygrIvI9NZTAXuduEFr0eoPMMR74QFl m8gL/f7c8iOdZqbIA9fRvfWwiG1Ygr8jWGZPO9ihxW9g7wh/PwCevfXOEG+ScYkQrgHEmUS8ScYt vmCU0wr4FQzW5xT/AzSP9E/wha+/k0kprkDj6q2t/ddwTwqSeQK2nu3ukxI9QTiegz3eUXYB8VtR ij/eU2yT9vQCPufSZxNXnx+g3Bs9vvhA9AQ+t8ZQaqYmpUkL7eBI8JmqUsoy+IHqsR4seiIzwaQr c+8kpkMNxXVAXpZmIJj7vrS3OlAdRg7vRo3MJDiv5MOOFLgO7p6MNjR1PbKlL9YONCCP82gzSiUr aR/Wkg3vjTY/mVuZs5z63jXpwZb09S5jKegzNJmmc/Dk2ggXM7UURX0Ec7xZHoiaiD7jKVcmoYIT kZsOTFFdUiqztJMDydL8Ya5HgOXNiHMyO1S5SPuLeRzVH9tM1QnZ+YLS0j4gGNcJTJoOvcP+pBMx ZwgU4HwDdkLh+YLaESUGpuV8lUykWVcOwc1CsQF8Tpcql66IpN8riMu1S9342XQqaZYpuEa7OsmB r++w77KYtx3gHZsDLsMdDXWCBfoV4KKk25nZNQVE6PbBfgFYR6X5AoX2dOINaD4cc6fDYU/pzFuN NJ25R/6iFaS98Q6m2WVtdNnG2tNqRUKVYIAuoyXBS90CAB4KMDSc7BPgsayxOPkX0G0gC8Wnk4Ky Kygd7AvY8xlXfOZ/gEgTu55fQLf5izl8aGLcwF/mbPWsTaLqNQAAAABJRU5ErkJggg== X-Face: compface: (warning) : excess data ignored X-Attribution: dvl X-Web: http://www.gnus.org X-Url: http://www.gnus.org X-Home-Page: http://www.gnus.org Mail-Copies-To: never X-Spam-Score: -0.2 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79057 Archived-At: lee wrote: > is there some sort of support built into gnus for writing articles > (email) from templates? Such templates would contain either headers or > a body, or a combination of both. Personally, I do already a lot of templating based on a combination of topic/group parameters and posting styles (e.g. headers, addresses, signatures, even language for spell checking etc). So I guess you could go down this road. You can add any variable to a topic/group parameter, for example a skeleton text. Then, what you can do is write a message-setup-hook function that looks in there and fill your message with the appropriate contents. All of this provided that group-based templating is what you have in mind of course. -- Resistance is futile. You will be jazzimilated. Scientific site: http://www.lrde.epita.fr/~didier Music (Jazz) site: http://www.didierverna.com