From: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
To: Bob Newell <bobnewell@bobnewell.net>
Cc: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: org-links for Gnus in imap with Gmail (for a convenient todo.org list)
Date: Sat, 27 Jul 2019 11:36:50 +0200 [thread overview]
Message-ID: <5d3c1b32.1c69fb81.91715.a5f9@mx.google.com> (raw)
In-Reply-To: <87k1c4zosh.fsf@bobnewell.net> (Bob Newell's message of "Fri, 26 Jul 2019 07:30:38 -1000")
Le ven. 26 juil. 2019 à 07:30:38 , Bob Newell <bobnewell@bobnewell.net>
a envoyé ce message:
> Aloha,
>
> I too came across this long ago. I like a 'zero inbox' and so I archive
> (or delete!) my gmail after reading. And indeed, when you move from
> INBOX to "All Mail" an org-link to INBOX will no longer function.
>
> I use Gnus and do something rather simple and easy:
>
> (defun changegroupinemaillink (args)
> (setcar args
> (replace-regexp-in-string
> "gmail.com:INBOX"
> "gmail.com:[Gmail]/All Mail" (car args)))
> args
> )
> (advice-add 'org-gnus-article-link :filter-args #'changegroupinemaillink)
>
> After this, links point to All Mail and the mail will always be found.
Many thanks for your message Bob (I know your impressive website that is
helpful for org-mode, thanks also for that).
My problem is how can I change the following code:
(setq org-capture-templates
'(
("t" "todo" entry (file+headline "~/Dropbox/Orgzly/todo.org" "Tasks")
"* TODO [#A] %?\n [[~/Dropbox/Orgzly/links.org::%(org-insert-time-stamp (org-read-date nil t \"%:date\"))]] \n* %(org-insert-time-stamp (org-read-date nil t \"%:date\")) %a "
)
)
)
in order to get All Mail (or Tous les messages in my case) directly in
the produced link once "t" key is entered?
I have tried to do it with the function hs/replace that I have defined,
without success. I guess that it is of course possible, but it is not
easy for me.
Your help will be again very welcome.
Best wishes,
--
Jo.
next prev parent reply other threads:[~2019-07-27 9:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-25 16:24 org-links for Gnus in imap with Gmail (for a convenient todo.org list) Joseph Vidal-Rosset
2019-07-25 16:47 ` Fraga, Eric
2019-07-25 17:24 ` Joseph Vidal-Rosset
2019-07-25 17:33 ` Fraga, Eric
2019-07-25 17:41 ` Joseph Vidal-Rosset
2019-07-25 17:46 ` Eric Abrahamsen
2019-07-26 9:43 ` Joseph Vidal-Rosset
2019-07-25 19:15 ` Ken Mankoff
2019-07-26 7:14 ` Joseph Vidal-Rosset
2019-07-26 7:24 ` Ken Mankoff
2019-07-26 7:41 ` Joseph Vidal-Rosset
2019-07-26 17:30 ` Bob Newell
2019-07-27 9:36 ` Joseph Vidal-Rosset [this message]
[not found] ` <87zhkzduzy.fsf@bobnewell.net>
2019-07-28 7:22 ` Joseph Vidal-Rosset
2019-08-11 17:50 ` Joseph Vidal-Rosset
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5d3c1b32.1c69fb81.91715.a5f9@mx.google.com \
--to=joseph.vidal.rosset@gmail.com \
--cc=bobnewell@bobnewell.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).