From bb53501a62681286067bed1919213bb2af5ace5e Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 8 Apr 2021 22:55:00 -0700 Subject: gmi2email: support commenting out subscriptions Signed-off-by: Sean Whitton --- gmi2email | 1 + gmi2email.1.pod | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gmi2email b/gmi2email index cbbded4..31bc347 100755 --- a/gmi2email +++ b/gmi2email @@ -103,6 +103,7 @@ $dbh->do("CREATE TABLE IF NOT EXISTS seen (uri TEXT PRIMARY KEY)") foreach my $sub (<$subs_fh>) { chomp $sub; + next if $sub =~ /^#/; my ($gemlog, $type, $data, $next); #<<< try { diff --git a/gmi2email.1.pod b/gmi2email.1.pod index b7e9108..d5623f9 100644 --- a/gmi2email.1.pod +++ b/gmi2email.1.pod @@ -72,7 +72,8 @@ B looks for a file with a list of gemini:// URIs to check for new posts, one per line, in I, or if that is not set, in B<$XDG_CONFIG_HOME/mailscripts/gmi2email.subscriptions>, or if XDG_CONFIG_HOME is not set, it falls back to trying to read -B<~/.config/mailscripts/gmi2email.subscriptions>. +B<~/.config/mailscripts/gmi2email.subscriptions>. Lines beginning with '#' +are treated as comments and ignored. =item B<--inline-images> -- cgit v1.2.3