From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6224 Path: main.gmane.org!not-for-mail From: Jack Vinson Newsgroups: gmane.emacs.gnus.general Subject: Re: multiple .signatures possible Date: 17 May 1996 08:35:09 -0400 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035146710 2959 80.91.224.250 (20 Oct 2002 20:45:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:45:10 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id GAA31817 for ; Fri, 17 May 1996 06:19:23 -0700 Original-Received: from cheux.ecs.umass.edu (cheux.ecs.umass.edu [128.119.82.11]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Fri, 17 May 1996 14:36:54 +0200 Original-Received: by cheux.ecs.umass.edu (5.65/DEC-Ultrix/4.3) id AA16748; Fri, 17 May 1996 08:35:11 -0400 Original-To: ding@ifi.uio.no In-Reply-To: Sten Drescher's message of 16 May 1996 19:32:40 -0500 Original-Lines: 32 X-Mailer: September Gnus v0.83/Emacs 19.30 Xref: main.gmane.org gmane.emacs.gnus.general:6224 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6224 >>>>> On 30 Apr 1996 10:23:31 +0200, Uwe Sigurd Valentin Kubosch >>>>> said: Uwe> I often write for different organizations and would like the Uwe> .signature to replect this. Sometimes I represent my University, Uwe> and sometimes just myself, or my firm, or... For multiple signature files, I advise the message-insert-signature function to set message-signature-file to a random file from my signature directory: (I have files that look like "sig1" "sig2" etc in that directory.) ;; random insertion of .signature file ;; Thanks to Glenn R Coombs: glenn@prl.philips.co.uk (defvar grc-signature-dir "~/.sig/") (defvar grc-signature-base "sig") (defadvice message-insert-signature (before random-mail-sig-ag act comp) "Change the value of message-signature-file each time `message-insert-signature' is called." (let ((files (file-name-all-completions grc-signature-base (expand-file-name grc-signature-dir)))) (if files (let ((file (nth (random (length files)) files))) (setq message-signature-file (concat grc-signature-dir file)) )))) -- Jack Vinson jvinson@cheux.ecs.umass.edu Sunderland, MA Q. "Is a cat's urinary tract health important?" A. "Yes, very." - Purina Cat Chow Special Formula Commercial