From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2887 Path: news.gmane.org!not-for-mail From: "Joe Casadonte" Newsgroups: gmane.emacs.gnus.user Subject: gnus-alias v1.4 Date: Sat, 16 Aug 2003 19:51:42 -0400 Organization: Llama Fresh Farms, Neare Paraguay Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669156 16703 80.91.229.2 (31 Jan 2006 00:59:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:59:16 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:22 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!newsfeed.gamma.ru!Gamma.RU!image.surnet.ru!newshosting.com!news-xfer2.atl.newshosting.com!posted1.newshosting.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.1 (windows-nt) Cancel-Lock: sha1:gOHb0NTAuNPJpyrx57O6gv7beu8= Original-NNTP-Posting-Host: 232df71b.news.newshosting.com Original-X-Trace: DXC=5IUU2k:?GTd:BW6@TGb`6fXMDXCI2J8LcXkcEe:=NIikE7UE]1f`Z2`CjS;5=c];`hc3d\6jTkdcb:7b7h I've just posted the latest version of gnus-alias (v1.4) with the following changes: o Tested under gnus 5.10.2 o gnus-alias-override-user-mail-address (new function) Better identity switching, though it may not work with all backends. Will correctly set mail header's Return-Path if allowed. o gnus-alias-message-x-completion (new function) Drop in function for use in a message-x hook to set your identity based on the To: field in a NEW message. Requires you to tab off of the To: header, though. o Minor documentation cleanup o Minor changes for byte-compiler warnings Header info follows.... ;;; @(#) gnus-alias.el -- an alternative to gnus-posting-styles ;;; @(#) $Id: gnus-alias.el,v 1.4 2003/08/16 23:05:10 jcasa Exp $ ;; This file is not part of Emacs ;; Copyright (C) 2001-3 by Joseph L. Casadonte Jr. ;; Author: Joe Casadonte (emacs@northbound-train.com) ;; Maintainer: Joe Casadonte (emacs@northbound-train.com) ;; Created: September 08, 2001 ;; Keywords: personality, identity, news, mail, gnus ;; Latest Version: http://www.northbound-train.com/emacs.html ;; COPYRIGHT NOTICE ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. ;;; Commentary: ;; ;; gnus-alias provides a simple mechanism to switch Identities when ;; using message-mode. An Identity is one or more of the following ;; elements: ;; ;; o From - sets the From header (i.e. the sender) ;; o Organization - sets the Organization header (a common, optional header) ;; o Extra headers - a list of arbitrary header to set (e.g. X-Archive: no) ;; o Body - adds text to the body of the message (just above the signature) ;; o Signature - adds a signature to the message ;; ;; All of this is also provided by the standard `gnus-posting-styles' ;; (which see). Whereas Posting Styles let you set these up ;; initially, though, gnus-alias lets you change them on the fly ;; easily, too (in this regard gnus-alias is much like gnus-pers, ;; upon which it is based; see 'Credits' below). With a simple ;; command (`gnus-alias-select-identity') you can select & replace ;; one Identity with another. ;; ;; There are other significant differences between gnus-alias and ;; Posting Styles, too. gnus-alias has a much simpler interface/API ;; for selecting an initial Identity automatically. Posting Styles is ;; much more flexible (especially in that you can build up an ;; "Identity" piece by piece), but with that flexibility can come ;; some complexity. ;; ;; Other advantages to using gnus-alias: ;; ;; o the ability to switch Identities in a message buffer ;; o can access original message to help determine Identity of the ;; followup/reply message ;; o can act on a forwarded message as if it were a message being ;; replied to ;; o can start a new message with a given Identity pre-selected ;; ;; It is possible to use both Posting Styles and gnus-alias, with ;; `gnus-posting-styles' setup occuring before gnus-alias selects an ;; Identity. That much co-ordination is beyond my attention span, ;; though; I just use this package. ;; ;; There may also be some overlap between this package and ;; `message-alternative-emails' (which see), though I'm not exactly ;; sure what that really does. -- Regards, joe Joe Casadonte jcasadonte@northbound-train.com ------------------------------------------------------------------------------ Llama Fresh Farms => http://www.northbound-train.com Gay Media Resource List => http://www.northbound-train.com/gaymedia.html Perl for Win32 => http://www.northbound-train.com/perlwin32.html Emacs Stuff => http://www.northbound-train.com/emacs.html Music CD Trading => http://www.northbound-train.com/cdr.html ------------------------------------------------------------------------------ Live Free, that's the message! ------------------------------------------------------------------------------