emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Seb <spluque@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: unable to resolve link to Gnus email
Date: Sat, 24 Apr 2021 00:35:36 -0400	[thread overview]
Message-ID: <87eef0guzr.fsf@kyleam.com> (raw)
In-Reply-To: <87tunwkfrr.fsf@phoca.sebkatja.org>

Seb writes:

> Hello,
> Attempting to export with any exporter fails if document or a subtree
> thereof contains an email link, e.g. captured from a Gnus buffer:
> [[gnus:GroupName#EMAIL_ID][Email from John Doe]]
> I get the error:
> user-error: Unable to resolve link: "gnus:Melanie#ef90b1cff5264135a82bff491006b8d6@CAWNSMBME105.ME.MBGOV.CA"

Do you have ol-gnus loaded? [*]  It doesn't define an :export function,
but it's still important so that the link is recognized as a gnus link.
Otherwise org-export-resolve-fuzzy-link will handle it, signaling

Using your example

  [[gnus:Melanie#ef90b1cff5264135a82bff491006b8d6@CAWNSMBME105.ME.MBGOV.CA][Email from John Doe]]

here's what I see on my end (e641d3736) with no custom configuration.

Without ol-gnus loaded:

 * (org-element-property :type (org-element-context))  ; "fuzzy"
 * export fails with "Unable to resolve link"

With ol-gnus loaded:

 * (org-element-property :type (org-element-context))  ; "gnus"
 * export succeeds

[*] If you're not tweaking org-modules, it should be loaded by default.

      reply	other threads:[~2021-04-24  4:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 18:38 Seb
2021-04-24  4:35 ` Kyle Meyer [this message]

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:

  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=87eef0guzr.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=spluque@gmail.com \
    --subject='Re: unable to resolve link to Gnus email' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).