about summary refs log tree commit homepage
path: root/lib/PublicInbox/Linkify.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-26 23:26:18 +0000
committerEric Wong <e@yhbt.net>2020-06-27 18:34:47 +0000
commit0d62ec0906ebdb4e9358ccb1c0d41a30f20711cf (patch)
treeec1ca4b20fc6c653789b32bc34f92ce1d1d5f522 /lib/PublicInbox/Linkify.pm
parent89efc8f4e8d603e4fad3c4c754e23561d82de2c1 (diff)
downloadpublic-inbox-0d62ec0906ebdb4e9358ccb1c0d41a30f20711cf.tar.gz
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 the news:// form in rendered HTML.  snews:// may appear
in old mail archives, too, so we'll attempt to support it in
case clients do.
Diffstat (limited to 'lib/PublicInbox/Linkify.pm')
-rw-r--r--lib/PublicInbox/Linkify.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm
index b85bedfe..a02eafc4 100644
--- a/lib/PublicInbox/Linkify.pm
+++ b/lib/PublicInbox/Linkify.pm
@@ -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)://
                  [\@:\w\.-]+(?:/
                  (?:[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]*)
                  (?:\?[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]+)?