diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-08 22:55:00 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-08 22:55:00 -0700 |
commit | bb53501a62681286067bed1919213bb2af5ace5e (patch) | |
tree | 282deefcaaef62cf7154a77e71637a4c10d478df | |
parent | 7b3d79afdaca217183b9715cfb40979a16cafd89 (diff) | |
download | mailscripts-bb53501a62681286067bed1919213bb2af5ace5e.tar.gz |
gmi2email: support commenting out subscriptions
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-x | gmi2email | 1 | ||||
-rw-r--r-- | gmi2email.1.pod | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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> |