Sebastian Rose <[EMAIL PROTECTED]> writes: > Hi Bill, > > > to add links to autgoing mails automatically, adding a link to such a > mail once should be enough, to add the right funciton to your > 'mail-send-hook' (?? don't no which hook really...) since it's just a > question of the link format. >
It seems like this could get complicated as it depends on how/where you store your sent messages. Also, it looks like org-mode links rely on the gnus group, and article id to link back to an article, so somehow you would need a hook which runs after the sent article has been saved into a group and given an ID. If this has been done before with planner, then it should be fairly straightforward to examine the previous implementation and adapt it to org-mode. Or I could be horribly wrong. > > If no one has done this until now, please share it here. I use gnus, > but I still BCC myself to 'store' my outgoing mail :-) > As for me, I'd prefer a way to keep my outgoing mails directly in > gnus. > I'm straying slightly off topic here, but take a look at `gcc-self' under gnus:Group Parameters. It automatically saves a copy of outgoing mail into the group from which the mail was sent. I use the following to turn it on for all of my mail groups. (setq gnus-parameters '(("mail\\..*" (gcc-self . t)))) Cheers -- Eric > > > > Something like this should work: > > > (setq org-remember-templates > '(("sent-mails" ?m "* Mail sent %u\n %a\n" "organizer.org" "Sent"))) > > (defun my-store-link() > "Docs for my-store-link" > (org-remember ?m)) ;; the `m' is the short cut for the template. > > (add-hook 'your-hook-here 'my-store-link) > > > I don't know how to suppress the interactive part of it (C-c C-c to > store it away), but sometimes you might add a short note anyway. > > > > Regards, > > Sebastian > > Sebastian Rose wrote: >> Hi Bill, >> >> >> links are one of the great features of Org-mode. Basically, links are >> added in two ways: >> >> a) Remember templates (automatic): >> You're reading an email in Gnus or another emacs mail reader, and >> want to add a note somewhere. To do this, you set up (once) a >> so called 'remember template'. See >> http://orgmode.org/manual/Remember.html#Remember how to do this. >> Org automatically adds a link to the mail/file/whatever, which >> brings you back to that mail/file/whatever, as you click on it. >> >> b) Semi-automatic: >> You want to add a link to an email/file/whatever to existing notes. >> To do this, visit the email/file/whatever and press 'C-c l' >> (org-store-link) to store a link to that location for later use. >> Back in your Org-file, you press 'C-c C-l' (org-insert-link), >> which provides you with a list of all stored links during your >> emacs session. You select the last one by pressing 'UP' once, and >> you're done. >> See http://orgmode.org/manual/Handling-links.html#Handling-links >> >> c) By hand: >> Also, you may add links to locations by hand. The syntax for links >> is described here: >> http://orgmode.org/manual/Hyperlinks.html#Hyperlinks >> >> >> >> Best regards, >> >> Sebastian >> >> >> >> >> >> Bill White wrote: >>> Hi all - >>> >>> I'm looking into porting my planner/muse/gnus infrastructure to org. >>> One indispensible bit of code in my current system writes a gnus message >>> link in the current day's planner file every time I send a message from >>> gnus. It uses Sacha Chua's sacha/planner-gnus-track-sent method here: >>> >>> http://sachachua.com/notebook/wiki/2006.08.10.php#anchor-3 >>> http://article.gmane.org/gmane.emacs.wiki.general/6017 >>> >>> Has someone already written something like this for org? Perhaps a >>> remember-like mechanism that writes a link to, say, Email.org? Perhaps >>> messages could be filed under date headlines: >>> >>> * Sunday, October 26, 2008 >>> ** message 1 recipient:subject >>> [link] (or contents?) >>> ** message 2 recipient:subject >>> [link] (or contents?) >>> >>> or somesuch. >>> >>> Thanks for any thoughts about this - >>> >>> bw >> >> >> >> _______________________________________________ >> 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 _______________________________________________ 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