From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6222 Path: main.gmane.org!not-for-mail From: Sten Drescher Newsgroups: gmane.emacs.gnus.general Subject: Re: multiple .signatures possible Date: 16 May 1996 19:32:40 -0500 Sender: stend@dogbert.tivoli.com Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035146709 2941 80.91.224.250 (20 Oct 2002 20:45:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:45:09 +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 SAA27715 for ; Thu, 16 May 1996 18:28:33 -0700 Original-Received: from maud.ifi.uio.no (0@maud.ifi.uio.no [129.240.74.2]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Fri, 17 May 1996 02:35:11 +0200 Original-Received: from tivoli.com (tivoli.tivoli.com [146.84.1.5]) by maud.ifi.uio.no ; Fri, 17 May 1996 02:35:10 +0200 Original-Received: from dogbert.tivoli.com (dogbert.tivoli.com [146.84.5.8]) by tivoli.com (8.6.10/8.6.10-local-mods-ESMTP) with ESMTP id TAA18772 for ; Thu, 16 May 1996 19:33:22 -0500 Original-Received: by dogbert.tivoli.com (SMI-8.6/SMI-SVR4) id TAA23810; Thu, 16 May 1996 19:32:41 -0500 Original-To: Gnus Development In-Reply-To: Kai Grossjohann's message of (unknown date) Original-Lines: 40 X-Mailer: September Gnus v0.83/Emacs 19.30 Xref: main.gmane.org gmane.emacs.gnus.general:6222 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6222 >>>>> Kai Grossjohann writes: >>>>> 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... KG> (defun my-signature () (cond ((string-match "ding" KG> gnus-newsgroup-name) "Signature for Ding") ((string-match "^nnml:" KG> gnus-newsgroup-name) "Signature for mail groups") (t "Default KG> signature"))) (setq message-signature 'my-signature) KG> You get the idea... Yup, but this doesn't use multiple .signature files. ); I've tried (setq message-signature '(cond ((message-news-p) (insert-file-contents (expand-file-name "~/.signature"))) (t (insert-file-contents (expand-file-name "~/.signature"))))) (Yes, I know, they are the same. I'm testing) But that puts the .signature in the header. I've tried (setq message-signature '(cond ((message-news-p) "~/.signature") (t "~/.signature"))) But that makes it put in the string (appropriately). I've tried using the same thing for message-signature-file, but that blows up. Is there any way of returning the contents of a file as a string? I'd rather not duplicate the whole message-signature functionality in my .gnus. -- ~/.signature