From: Bob Newell <bobnewell@bobnewell.net>
To: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: org-links for Gnus in imap with Gmail (for a convenient todo.org list)
Date: Fri, 26 Jul 2019 07:30:38 -1000 [thread overview]
Message-ID: <87k1c4zosh.fsf@bobnewell.net> (raw)
In-Reply-To: <5d3aaeaf.1c69fb81.409b9.f45e@mx.google.com> (Joseph Vidal-Rosset's message of "Fri, 26 Jul 2019 09:41:35 +0200")
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.
--
Bob Newell
Honolulu, Hawai`i
* Via Gnus/BBDB/Org/Emacs/Linux *
next prev parent reply other threads:[~2019-07-26 17:30 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 [this message]
2019-07-27 9:36 ` Joseph Vidal-Rosset
[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=87k1c4zosh.fsf@bobnewell.net \
--to=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).