summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-08 22:55:00 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-08 22:55:00 -0700
commitbb53501a62681286067bed1919213bb2af5ace5e (patch)
tree282deefcaaef62cf7154a77e71637a4c10d478df
parent7b3d79afdaca217183b9715cfb40979a16cafd89 (diff)
downloadmailscripts-bb53501a62681286067bed1919213bb2af5ace5e.tar.gz
gmi2email: support commenting out subscriptions
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xgmi2email1
-rw-r--r--gmi2email.1.pod3
2 files changed, 3 insertions, 1 deletions
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<gmi2email> looks for a file with a list of gemini:// URIs to check for new
posts, one per line, in I<FILE>, 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>