summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-01-28 16:03:15 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-01-28 16:20:52 -0700
commit30fda961a6662eff16e06fc2f1b6fd023ba3d8b4 (patch)
tree759d80e9134b1b175b08eab2b180e6ccf3a539b5
parent182d28e47858c183d3be2e172c400e3b0521167f (diff)
downloadmailscripts-30fda961a6662eff16e06fc2f1b6fd023ba3d8b4.tar.gz
gmi2email: accept more MIME types
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xgmi2email2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmi2email b/gmi2email
index fcf0f0e..27249fa 100755
--- a/gmi2email
+++ b/gmi2email
@@ -130,7 +130,7 @@ foreach my $sub (<$subs_fh>) {
$title, timelocal 0, 0, 12, $d, $m - 1, $y);
}
}
- } elsif ($type =~ m{^(?:text|application)/(?:atom\+)?xml}) {
+ } elsif ($type =~ m{^(?:text|application)/(?:(?:atom|rss)\+)?xml}) {
my $feed = XML::Feed->parse(\$data);
for ($feed->entries) {
my $date = $_->issued // $_->modified;