[Top][All Lists]

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

[Orgmode] Small fix for Gnus integration

From: Andreas Rottmann
Subject: [Orgmode] Small fix for Gnus integration
Date: Fri, 03 Jul 2009 23:00:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (gnu/linux)

Without the following patch, storing links to Gnus Article buffers fails
on CVS Emacs, as they (at least in my setup -- IMAP) always contain a
"From " line, which can't be parsed as an RFC822 header.

From: Andreas Rottmann <address@hidden>
Subject: [PATCH] Fixes for the Gnus integration

- `org-gnus-store-link': When the article buffer starts with "From ",
    ignore the first line. This is necessary at least on Gnus v5.13,
    as shipped with emacs23 (CVS 2009-06-18).

 lisp/org-gnus.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index 41b1be7..4cc5adb 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -128,6 +128,8 @@ If `org-store-link' was called with a prefix arg the 
meaning of
           (header (with-current-buffer gnus-article-buffer
                     (gnus-summary-toggle-header 1)
                     (goto-char (point-min))
+                     (when (looking-at "From ")
+                       (next-line))
           (from (mail-header 'from header))
           (message-id (org-remove-angle-brackets
tg: (0795e42..) t/gnus-fixes (depends on: master)
Regards, Rotty

reply via email to

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