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 *

Reply via email to