user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] linkify: support imap, imaps, news, and snews URIs
@ 2020-06-26 23:26 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-06-26 23:26 UTC (permalink / raw)
  To: meta

Since we'll have an IMAP server released soon, maybe imaps://
and imap:// URLs can become popular.

news:// is defined with nntp:// in RFC 5538, and we can at least
support thew news:// form in rendered HTML.  snews:// may appear
in old mail archives, too, so we'll attempt to support it in
case clients do.
 lib/PublicInbox/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/PublicInbox/ b/lib/PublicInbox/
index b85bedfed9a..a02eafc4fc6 100644
--- a/lib/PublicInbox/
+++ b/lib/PublicInbox/
@@ -17,7 +17,7 @@ use PublicInbox::Hval qw(ascii_html mid_href);
 use PublicInbox::MID qw($MID_EXTRACT);
 my $SALT = rand;
-my $LINK_RE = qr{([\('!])?\b((?:ftps?|https?|nntps?|gopher)://
+my $LINK_RE = qr{([\('!])?\b((?:ftps?|https?|nntps?|imaps?|s?news|gopher)://

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-26 23:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-26 23:26 [PATCH] linkify: support imap, imaps, news, and snews URIs Eric Wong

Code repositories for project(s) associated with this public 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).