emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r103890: gnus-registry.el (gnus-regis


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103890: gnus-registry.el (gnus-registry-action): Remove properties and simplify subject in `gnus-registry-handle-action'.
Date: Mon, 11 Apr 2011 22:17:30 +0000
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 103890
author: Teodor Zlatanov <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Mon 2011-04-11 22:17:30 +0000
message:
  gnus-registry.el (gnus-registry-action): Remove properties and simplify 
subject in `gnus-registry-handle-action'.
   (gnus-registry-spool-action): Get subject and sender from message if they 
are not passed in.
   (gnus-registry-handle-action): Remove properties and simplify subject 
consistently.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/gnus-registry.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2011-04-11 01:18:19 +0000
+++ b/lisp/gnus/ChangeLog       2011-04-11 22:17:30 +0000
@@ -1,3 +1,12 @@
+2011-04-11  Teodor Zlatanov  <address@hidden>
+
+       * gnus-registry.el (gnus-registry-action): Remove properties and
+       simplify subject in `gnus-registry-handle-action'.
+       (gnus-registry-spool-action): Get subject and sender from message if
+       they are not passed in.
+       (gnus-registry-handle-action): Remove properties and simplify subject
+       consistently.
+
 2011-04-11  Stefan Monnier  <address@hidden>
 
        * registry.el: Require CL before using defmacro*.

=== modified file 'lisp/gnus/gnus-registry.el'
--- a/lisp/gnus/gnus-registry.el        2011-04-07 22:48:21 +0000
+++ b/lisp/gnus/gnus-registry.el        2011-04-11 22:17:30 +0000
@@ -294,11 +294,8 @@
 ;; article move/copy/spool/delete actions
 (defun gnus-registry-action (action data-header from &optional to method)
   (let* ((id (mail-header-id data-header))
-         (subject (gnus-string-remove-all-properties
-                   (gnus-registry-simplify-subject
-                    (mail-header-subject data-header))))
-         (sender (gnus-string-remove-all-properties
-                  (mail-header-from data-header)))
+         (subject (mail-header-subject data-header))
+         (sender (mail-header-from data-header))
          (from (gnus-group-guess-full-name-from-command-method from))
          (to (if to (gnus-group-guess-full-name-from-command-method to) nil))
          (to-name (if to to "the Bit Bucket")))
@@ -312,7 +309,9 @@
      to subject sender)))
 
 (defun gnus-registry-spool-action (id group &optional subject sender)
-  (let ((to (gnus-group-guess-full-name-from-command-method group)))
+  (let ((to (gnus-group-guess-full-name-from-command-method group))
+        (subject (or subject (message-fetch-field "subject")))
+        (sender (or sender (message-fetch-field "from"))))
     (when (and (stringp id) (string-match "\r$" id))
       (setq id (substring id 0 -1)))
     (gnus-message 7 "Gnus registry: article %s spooled to %s"
@@ -326,7 +325,10 @@
    "gnus-registry-handle-action %S" (list id from to subject sender))
   (let ((db gnus-registry-db)
         ;; safe if not found
-        (entry (gnus-registry-get-or-make-entry id)))
+        (entry (gnus-registry-get-or-make-entry id))
+        (subject (gnus-string-remove-all-properties
+                  (gnus-registry-simplify-subject subject)))
+        (sender (gnus-string-remove-all-properties sender)))
 
     ;; this could be done by calling `gnus-registry-set-id-key'
     ;; several times but it's better to bunch the transactions


reply via email to

[Prev in Thread] Current Thread [Next in Thread]