[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

org-mode 9.3 links gnus

From: Joseph Vidal-Rosset
Subject: org-mode 9.3 links gnus
Date: Wed, 29 Jul 2020 12:01:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)


With org-mode  9.3 I have  not solved the  problem of links  for getting
emails in the Archives messages ("Tous les messages");

The following  function in my setup  provide a link that  fails. I quote

;; Merci à  Bob Newell , avec ce code, le lien de l'email est modifié 
correctement dès l'usage de la fonction refile C-c C-w
  (defun jr/fix-the-link (&rest args)
   (find-file "~/Dropbox/Orgzly/todo.org")
   (goto-char (point-min))
   (while (search-forward "gnus:INBOX#" nil t)
     (replace-match "gnus:\\[Gmail\\]/Tous les messages#"))
(advice-add 'org-capture-finalize :after #'jr/fix-the-link)

;; si cela échoue, cette fonction peut prendre le relai:

(defun hs/replace ()
   (goto-char 1)
   (let ((search-invisible t)) (replace-string "gnus:INBOX#" 
"gnus:\\[Gmail\\]/Tous les messages#")))
(define-key global-map (kbd "C-c r") 'hs/replace)

I get this error message:

gnus-select-newsgroup: Couldn’t activate group \[Gmail\]/Tous les messages: NO 
(NONEXISTENT) Unknown Mailbox: \[Gmail\]/Tous les messages (Failure) [2 times]

I had not this problem with org-mode 9.1,  and I do not know if there is
a solution, in spite of this message:


Your help is welcome !

Best wishes,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]