From f7c138b8cb85124808284d67af0c91d0fc76ac22 Mon Sep 17 00:00:00 2001
From: otlin100 <ottolin@outlook.de>
Date: Sat, 27 Apr 2019 03:05:31 +0200
Subject: read multiline URLs and URLs without 'http://' from mutt

---
 config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.h b/config.h
index 06c0264..c767671 100644
--- a/config.h
+++ b/config.h
@@ -206,7 +206,7 @@ MouseKey mkeys[] = {
 };
 
 static char *openurlcmd[] = { "/bin/sh", "-c",
-    "grep -aEo '(http|https)://[a-zA-Z0-9./?=_-]*'  | uniq | dmenu -l 10 | xargs -r xdg-open",
+    "sed 's/.*│//g' | tr -d '\n' | grep -aEo '((http|https)://|www\\.)[a-zA-Z0-9./?=_-]*' | uniq | sed 's/^www./http:\\/\\/www\\./g' | dmenu -l 10 | xargs -r xdg-open",
     "externalpipe", NULL };
 
 static Shortcut shortcuts[] = {
-- 
cgit v1.2.3