diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-04-21 11:55:05 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-04-21 11:55:05 +0200 |
commit | 5cef3ce66158875d25f5d7606a260ff449fb866a (patch) | |
tree | 5bf6b90f4c8bfa3c4d1247fd9f1933039978e6bf | |
parent | e703325484246468e4fd04707d759a8a9f35f948 (diff) |
sfeed_mbox: show enclosure url when it is non-empty
-rw-r--r-- | sfeed_mbox.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c index 3e66aec..4578ec0 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -112,7 +112,10 @@ printfeed(FILE *fp, const char *feedname) printf("Content-Transfer-Encoding: binary\n"); printf("X-Feedname: %s\n\n", feedname); - printf("%s\n\n", fields[FieldLink]); + printf("%s\n", fields[FieldLink]); + if (fields[FieldEnclosure][0]) + printf("\nEnclosure:\n%s\n", fields[FieldEnclosure]); + fputs("\n", stdout); } } |