Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

would this be useful? jump to gmail (web browser) from gnus #105

Open
dmgerman opened this issue Jun 27, 2017 · 1 comment
Open

would this be useful? jump to gmail (web browser) from gnus #105

dmgerman opened this issue Jun 27, 2017 · 1 comment

Comments

@dmgerman
Copy link

I wrote this function to be able to jump to gmail from a given email in gnus. if you are interested, i can create a pull request

(defun dmg-gmail-goto-message-id ()
  (interactive)
  (save-excursion
    (setq save-buffer-name (buffer-name))
    (switch-to-buffer-other-window gnus-article-buffer)
    (gnus-summary-toggle-header 1)
    (goto-char (point-min))
    (if (re-search-forward "^Message-ID: *\\(.*\\)$")
        (browse-url
         (format "https://mail.google.com/mail/u/0/#search/rfc822msgid%%3A%s" (org-link-escape (match-string 1))
                 )
         )
      (message "Message id not found")
      )
    (gnus-summary-toggle-header -1)
    (switch-to-buffer-other-window save-buffer-name)
    )
  )
@redguardtoo
Copy link
Owner

redguardtoo commented Jun 27, 2017

Interesting. Could you change browse-url to browse-url-generic? Please also format code a little bit before send me the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants