Re: [Orgmode] [PATCH] To-header support in org-gnus-store-link

2008-09-03 Thread Carsten Dominik

Appied, thanks.

- Carsten

On Aug 11, 2008, at 10:12 PM, Tommy Lindgren wrote:


Hi,

Patch below adds support for the To-header in org-gnus-store-link.  
This

makes %:toname-escapes in remember templates work when invoked from
Gnus. (I have a special template I use when realize I have to finish
a reply later.)

Haven't written many lines of elisp, not sure if I'm retrieving the
header the right way. The code works for me.


diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index e1d8232..db78afe 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -87,10 +87,12 @@ negates this setting for the duration of the
command."
  (from (mail-header-from header))
  (message-id (mail-header-id header))
  (date (mail-header-date header))
+  (extra (mail-header-extra header))
+  (to (cdr (assoc 'To extra)))
  (subject (gnus-summary-subject-string))
  desc link)
  (org-store-link-props :type "gnus" :from from :subject subject
-   :message-id message-id :group group)
+   :message-id message-id :group group :to  
to)

  (setq desc (org-email-link-description))
  (if (org-xor current-prefix-arg org-usenet-links-prefer-google)
 (setq link


BTW, org-mode is awesome.

Regards,
Tommy


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] To-header support in org-gnus-store-link

2008-08-11 Thread Tommy Lindgren
Hi,

Patch below adds support for the To-header in org-gnus-store-link. This
makes %:toname-escapes in remember templates work when invoked from
Gnus. (I have a special template I use when realize I have to finish
a reply later.)

Haven't written many lines of elisp, not sure if I'm retrieving the
header the right way. The code works for me.


diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index e1d8232..db78afe 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -87,10 +87,12 @@ negates this setting for the duration of the
command."
   (from (mail-header-from header))
   (message-id (mail-header-id header))
   (date (mail-header-date header))
+  (extra (mail-header-extra header))
+  (to (cdr (assoc 'To extra)))
   (subject (gnus-summary-subject-string))
   desc link)
   (org-store-link-props :type "gnus" :from from :subject subject
-   :message-id message-id :group group)
+   :message-id message-id :group group :to to)
   (setq desc (org-email-link-description))
   (if (org-xor current-prefix-arg org-usenet-links-prefer-google)
  (setq link


BTW, org-mode is awesome.

Regards,
Tommy


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode