]> git.eshelyaron.com Git - emacs.git/commitdiff
(message-idna-to-ascii-rhs-1): Protect against local users' addresses that
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 3 Dec 2008 03:00:41 +0000 (03:00 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 3 Dec 2008 03:00:41 +0000 (03:00 +0000)
 don't have domain parts.

lisp/gnus/ChangeLog
lisp/gnus/message.el

index 0366a2fad9da53cd1cb3945a40e92f50802ddd77..7e8ca0c44f8e6305559caf32cba2d983a187c850 100644 (file)
@@ -1,8 +1,10 @@
 2008-12-03  Katsumi Yamaoka  <yamaoka@jpl.org>
 
-       * message.el (message-idna-to-ascii-rhs): Use
-       message-narrow-to-headers-or-head rather than message-narrow-to-head
-       since there will be the message header separator.
+       * message.el (message-idna-to-ascii-rhs-1): Protect against local
+       users' addresses that don't have domain parts.
+       (message-idna-to-ascii-rhs): Use message-narrow-to-headers-or-head
+       rather than message-narrow-to-head since there will be the message
+       header separator.
 
 2008-12-02  Stefan Monnier  <monnier@iro.umontreal.ca>
 
index a57e290f26fb1bdddff95e9dcfd6283cd8478526..d25603f039cd65ebcb4b9c86b175b92e118c220a 100644 (file)
@@ -5635,7 +5635,10 @@ subscribed address (and not the additional To and Cc header contents)."
       (dolist (rhs
               (mm-delete-duplicates
                (mapcar (lambda (rhs) (or (cadr (split-string rhs "@")) ""))
-                       (mapcar 'downcase
+                       (mapcar (lambda (domain)
+                                 (if domain
+                                     (downcase domain)
+                                   ""))
                                (mapcar
                                 'cadr
                                 (mail-extract-address-components field t))))))