From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19903 Path: main.gmane.org!not-for-mail From: Stefan Waldherr Newsgroups: gmane.emacs.gnus.general Subject: standard replies made easy Date: 16 Dec 1998 18:23:56 +0100 Organization: -=-=-=-=- Sender: owner-ding@hpc.uh.edu Message-ID: Reply-To: Stefan Waldherr NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: multipart/mixed; boundary="Multipart_Wed_Dec_16_18:23:56_1998-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035158168 13973 80.91.224.250 (20 Oct 2002 23:56:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:56:08 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA24662 for ; Wed, 16 Dec 1998 12:30:10 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB29101; Wed, 16 Dec 1998 11:29:51 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 16 Dec 1998 11:29:56 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id LAA05379 for ; Wed, 16 Dec 1998 11:29:41 -0600 (CST) Original-Received: from falbala.informatik.uni-kiel.de (S0jUKZq+W7hZlMVmk49J1tVAkR2FWj+e@falbala.informatik.uni-kiel.de [134.245.252.14]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA24641 for ; Wed, 16 Dec 1998 12:29:31 -0500 (EST) Original-Received: from moritz.dial.techfak.uni-kiel.de (moritz.dial.techfak.uni-kiel.de [134.245.244.143]) by falbala.informatik.uni-kiel.de (8.9.1/8.9.1) with ESMTP id SAA15757 for ; Wed, 16 Dec 1998 18:29:47 +0100 (MET) Original-Received: from amadeus.waldherr.org (root@l60.dial.techfak.uni-kiel.de [134.245.247.60]) by moritz.dial.techfak.uni-kiel.de (8.8.5/8.8.5) with ESMTP id SAA13871 for ; Wed, 16 Dec 1998 18:29:45 +0100 (MET) Original-Received: (from swa@localhost) by amadeus.waldherr.org (8.8.7/8.8.7) id SAA07822; Wed, 16 Dec 1998 18:23:56 +0100 Original-To: ding@gnus.org X-Newsreader: Gnus v5.6.38/XEmacs 20.4 - "Emerald" X-Url: http://www.waldherr.org/ X-Face: "-=6){9J':KXui`/fiH#,g(pr\2Rv'7{dSci>!;1r2zpWB*qcI6gH^LoLQjSSNSg@ee_n~dV]|;5T7=d6_FNPEvqKDk`OWLB[CKOkG.M6{J.??WB*1Wk`y?de2[56)Iv"y#tg@p]~%_3>&;;PQ-{A)UcZ_?nj@b(FN]!Sq6QS9YuGJZ3qkdPq(h-olTvcq0,TS%?i]ddP2E'&^ud Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 104 Xref: main.gmane.org gmane.emacs.gnus.general:19903 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19903 --Multipart_Wed_Dec_16_18:23:56_1998-1 Content-Type: text/plain; charset=US-ASCII Hi, I wrote a quick and dirty thing that helps people insert a predefined text into a reply. It is intended for people who are sick of giving the same answer to a number of people. The file should be self-explanatory. cu Stefan. --Multipart_Wed_Dec_16_18:23:56_1998-1 Content-Type: application/octet-stream; type=emacs-lisp Content-Disposition: attachment; filename="gnus-autoreply.el" Content-Transfer-Encoding: 7bit ;; -------------------------------------------------------------------------------- ;; ;; $Id: gnus-autoreply.el,v 1.2 1998/12/15 11:17:06 swa Exp $ ;; ;; Stefan Waldherr ;; ;; -------------------------------------------------------------------------------- ;; ;; Based on stuff from dsg@mitre.org (David S. Goldberg) and ;; SL Baur ;; ;; -------------------------------------------------------------------------------- ;; ;; Installation: ;; ------------- ;; Put this file somewhere and load it from your .gnus file with, e.g. ;; (load-file (expand-file-name "~/bin/emacs/gnus-autoreply.el")) ;; ;; Create a bunch of standard replies and put them (with suggestive names) ;; into, say, ~/Mail/.autoreply. Change gnus-autoreply-dir accordingly. ;; ;; Usage: ;; ------ ;; ;; Reply to a mail. In the *Article* buffer, hit `C-c r'. Choose the file ;; which you want to insert. Then change it and/or hit `C-c C-c' to send ;; the mail. Voila. ;; ;; -------------------------------------------------------------------------------- ;; ;; $Log: gnus-autoreply.el,v $ ;; Revision 1.2 1998/12/15 11:17:06 swa ;; Used steve's stuff. ;; ;; Revision 1.1 1998/12/15 11:05:16 swa ;; First version. ;; ;; -------------------------------------------------------------------------------- ;; where the replies can be found (setq gnus-autoreply-dir "/home/swa/Mail/.autoreply") ;; prefix it with `reply-' or something. If you want. (setq gnus-autoreply-file-prefix "") ;; the function that takes care of choosing the file and inserting it (defun gnus-summary-autoreply () "Automatic reply." (interactive) ;(message-remove-header "from") ;(message-add-header "From: Patch Acknowledgement " ;"X-Emacs-Patch-Ack: yes") (message-goto-body) (let ((gnus-autoreply-file (completing-read "Reply File: " (mapcar 'list (directory-files gnus-autoreply-dir nil (regexp-quote gnus-autoreply-file-prefix))) nil t gnus-autoreply-file-prefix)) (gnus-autoreplyed-user (save-excursion (set-buffer gnus-article-buffer) (or (message-fetch-field "Reply-To") (message-fetch-field "From"))))) (if (= (length gnus-autoreply-file) 0) (setq gnus-autoreply-file auto-default-reply-file)) (if (not gnus-autoreplyed-user) (error "Error in message structure: no Reply-To or From lines.")) (insert-file-contents (concat gnus-autoreply-dir "/" gnus-autoreply-file)) )) ;; define the key (add-hook 'message-load-hook (define-key message-mode-map [(control ?c) ?r] 'gnus-summary-autoreply)) --Multipart_Wed_Dec_16_18:23:56_1998-1 Content-Type: text/plain; charset=US-ASCII -- Stefan Waldherr fax +49 431 8058 136 e-Mail stefan@waldherr.org www http://www.waldherr.org/ --Multipart_Wed_Dec_16_18:23:56_1998-1--