From 58443e7cbeef7e7db2533c90f50e6c95140b6d52 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 5 Oct 2018 00:22:28 +0200 Subject: Add mutt-gpg-time-check Signed-off-by: Florian Pritz --- mutt-gpg-time-check | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 mutt-gpg-time-check (limited to 'mutt-gpg-time-check') diff --git a/mutt-gpg-time-check b/mutt-gpg-time-check new file mode 100755 index 0000000..4203ef2 --- /dev/null +++ b/mutt-gpg-time-check @@ -0,0 +1,52 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Date::Parse; + +my $gpg_verification_line_distance = 0; + +while () { + my $in_header = 1 .. /^$/; + my $in_body = /^$/ .. eof; + + if ($in_header) { + print $_; + } else { + print; + $gpg_verification_line_distance++; + if (m/PGP output follows \(current time: (?