From 3718d500175f634e5a718464b64b0c224fa62284 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 24 Oct 2021 21:00:58 +0200 Subject: sfeed_mbox: add link as base URL for HTML content This is useful for HTML viewers (like lynx -dump) in mail clients to use the base href as the base URL for relative links in the HTML content. --- sfeed_mbox.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sfeed_mbox.c b/sfeed_mbox.c index e6c756f..34b9b4a 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -123,6 +123,11 @@ printfeed(FILE *fp, const char *feedname) } if (usecontent) { fputs("\n", stdout); + if (ishtml && fields[FieldLink][0]) { + fputs("\n", stdout); + } printcontent(fields[FieldContent], stdout); } fputs("\n\n", stdout); -- cgit v1.2.3