]> code.delx.au - gnu-emacs/blobdiff - lisp/mail/uce.el
*** empty log message ***
[gnu-emacs] / lisp / mail / uce.el
index 14e613ac28082eb1f3464f8c58f33f42aa154711..4d48f467b5984646a0f2a1ca59781b0442dfff5c 100644 (file)
@@ -1,6 +1,7 @@
 ;;; uce.el --- facilitate reply to unsolicited commercial email
 
-;; Copyright (C) 1996, 1998, 2000 Free Software Foundation, Inc.
+;; Copyright (C) 1996, 1998, 2000, 2002, 2003, 2004,
+;;   2005, 2006 Free Software Foundation, Inc.
 
 ;; Author: stanislav shalunov <shalunov@mccme.ru>
 ;; Created: 10 Dec 1996
 
 ;;; Code:
 
+(defvar gnus-original-article-buffer)
+(defvar mail-reply-buffer)
+(defvar rmail-current-message)
+
 (require 'sendmail)
 ;; Those sections of code which are dependent upon
 ;; RMAIL are only evaluated if we have received a message with RMAIL...
@@ -283,7 +288,7 @@ address, and postmaster of the mail relay used."
             (re-search-forward "^Lines:")
             (beginning-of-line))
            ((eq uce-mail-reader 'rmail)
-            (beginning-of-buffer)
+            (goto-char (point-min))
             (search-forward "*** EOOH ***\n")
             (beginning-of-line)
             (forward-line -1)))
@@ -364,11 +369,7 @@ address, and postmaster of the mail relay used."
               (if (file-exists-p "~/.signature")
                   (progn
                     (insert "\n\n-- \n")
-                    (insert-file "~/.signature")
-                    ;; Function insert-file leaves point where it was,
-                    ;; while we want to place signature in the ``middle''
-                    ;; of the message.
-                    (exchange-point-and-mark))))
+                    (forward-char (cadr (insert-file-contents "~/.signature"))))))
              (uce-signature
               (insert "\n\n-- \n" uce-signature)))
        ;; And text of the original message.