2002-02-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 19 Feb 2002 12:33:43 +0000 (12:33 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 19 Feb 2002 12:33:43 +0000 (12:33 +0000)
* gnus-fun.el (gnus-respond-to-confirmation): New command.

2002-02-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>

* nnultimate.el (nnultimate-retrieve-headers): Clean up.

lisp/ChangeLog
lisp/gnus-fun.el
lisp/nnultimate.el

index af0233c..ce0c1bd 100644 (file)
@@ -1,3 +1,11 @@
+2002-02-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-fun.el (gnus-respond-to-confirmation): New command.
+
+2002-02-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * nnultimate.el (nnultimate-retrieve-headers): Clean up.
+
 2002-02-18  Paul Jarc  <prj@po.cwru.edu>
 
        * gnus-util.el (gnus-parent-id): Ignore trailing whitespace in the
index 4105a81..766ef1e 100644 (file)
@@ -239,6 +239,22 @@ colors of the displayed X-Faces."
     (gnus-convert-image-to-gray-x-face (concat file ".gif") 3)
     (delete-file (concat file ".gif"))))
 
+(defun gnus-respond-to-confirmation ()
+  "Respond to a Gmane confirmation message."
+  (interactive)
+  (gnus-summary-show-article 'raw)
+  (set-buffer gnus-article-buffer)
+  (let ((buffer-read-only nil))
+    (goto-char (point-min))
+    (gnus-article-goto-header "Original-To")
+    (replace-match "To:"))
+  (message-wide-reply)
+  (goto-char (point-min))
+  (gnus-article-goto-header "Cc")
+  (replace-match "From:")
+  (message-goto-body)
+  (delete-region (point) (point-max)))
+
 (provide 'gnus-fun)
 
 ;;; gnus-fun.el ends here
index a71425d..bab703b 100644 (file)
                    datel nil))
            (pop datel))
          (when date
-           (setq date (delete "" (split-string
-                                  date "[-, \n\t\r    ]")))
-           (if (or (member "AM" date)
-                   (member "PM" date))
-               (setq date (format
-                           "%s %s %s %s"
-                           (nth 1 date)
-                           (if (and (>= (length (nth 0 date)) 3)
-                                    (assoc (downcase
-                                            (substring (nth 0 date) 0 3))
-                                           parse-time-months))
-                               (substring (nth 0 date) 0 3)
-                             (car (rassq (string-to-number (nth 0 date))
-                                         parse-time-months)))
-                           (nth 2 date) (nth 3 date)))
-             (setq date (format "%s %s %s %s"
-                                (car (rassq (string-to-number (nth 1 date))
-                                            parse-time-months))
-                                (nth 0 date) (nth 2 date) (nth 3 date)))))
+           (setq date (delete "" (split-string date "[-, \n\t\r    ]")))
+           (setq date
+                 (if (or (member "AM" date)
+                         (member "PM" date))
+                     (format
+                      "%s %s %s %s"
+                      (nth 1 date)
+                      (if (and (>= (length (nth 0 date)) 3)
+                               (assoc (downcase
+                                       (substring (nth 0 date) 0 3))
+                                      parse-time-months))
+                          (substring (nth 0 date) 0 3)
+                        (car (rassq (string-to-number (nth 0 date))
+                                    parse-time-months)))
+                      (nth 2 date) (nth 3 date))
+                   (format "%s %s %s %s"
+                           (car (rassq (string-to-number (nth 1 date))
+                                       parse-time-months))
+                           (nth 0 date) (nth 2 date) (nth 3 date)))))
          (push
           (cons
            article