Add case of newsgroup.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 08 Jul 2012 22:13:39 +0300
changeset 891 e895f2685f1e
parent 890 7558a3f8a3d9
child 892 cdf8003f3abb
Add case of newsgroup.
.emacs-my
--- a/.emacs-my	Sun Jul 08 21:39:10 2012 +0300
+++ b/.emacs-my	Sun Jul 08 22:13:39 2012 +0300
@@ -1279,7 +1279,7 @@
   (make-directory gnus-article-save-directory t)
   (let ( (buf (current-buffer))
          (field-to (message-fetch-field "To"))
-         (field-subject (message-fetch-field "Subject"))
+         (field-subject (or (message-fetch-field "Newsgroups") (message-fetch-field "Subject")))
          file )
     (setq file (concat gnus-article-save-directory "/" (format-time-string "%F_%T") "_" field-to "_" field-subject))
     (with-temp-file file