From 3715f10e52908e9a76aab4558ffa3a3bc1c379e2 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 23 Sep 2018 08:13:34 -0700 Subject: mailscripts.el: add missing Package-Requires Signed-off-by: Sean Whitton --- debian/changelog | 6 ++++++ mailscripts.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 84214da..96fd001 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mailscripts (0.3-1) UNRELEASED; urgency=medium + + * Add "Package-Requires: (notmuch)" (Closes: #909376). + + -- Sean Whitton Sun, 23 Sep 2018 08:12:36 -0700 + mailscripts (0.2-2) unstable; urgency=medium * Upload to unstable. diff --git a/mailscripts.el b/mailscripts.el index 9d80eac..68a59ad 100644 --- a/mailscripts.el +++ b/mailscripts.el @@ -1,7 +1,8 @@ ;;; mailscripts.el --- functions to access tools in the mailscripts package ;; Author: Sean Whitton -;; Version: 0.2 +;; Version: 0.3 +;; Package-Requires: (notmuch) ;; Copyright (C) 2018 Sean Whitton -- cgit v1.2.3 From 20b5fe40ce67c6bea5a5d23898d224a8bc0cc0f3 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 23 Sep 2018 08:14:23 -0700 Subject: release 0.3 (0.3-1 to Debian unstable) Signed-off-by: Sean Whitton --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 96fd001..94a6218 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,8 @@ -mailscripts (0.3-1) UNRELEASED; urgency=medium +mailscripts (0.3-1) unstable; urgency=medium * Add "Package-Requires: (notmuch)" (Closes: #909376). - -- Sean Whitton Sun, 23 Sep 2018 08:12:36 -0700 + -- Sean Whitton Sun, 23 Sep 2018 08:14:08 -0700 mailscripts (0.2-2) unstable; urgency=medium -- cgit v1.2.3 From 3b12d553352ded4a3eab96764e799ce6a383a046 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 27 Oct 2018 10:54:54 -0700 Subject: notmuch-slurp-debbug: skip messages without a Message-Id Signed-off-by: Sean Whitton --- debian/changelog | 7 +++++++ mailscripts.el | 2 +- notmuch-slurp-debbug | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 94a6218..6e301fe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mailscripts (0.4-1) UNRELEASED; urgency=medium + + * Do not import messages without a Message-Id header (Closes: #909835). + Thanks to David Bremner for the report. + + -- Sean Whitton Sat, 27 Oct 2018 10:52:46 -0700 + mailscripts (0.3-1) unstable; urgency=medium * Add "Package-Requires: (notmuch)" (Closes: #909376). diff --git a/mailscripts.el b/mailscripts.el index 68a59ad..249cb42 100644 --- a/mailscripts.el +++ b/mailscripts.el @@ -1,7 +1,7 @@ ;;; mailscripts.el --- functions to access tools in the mailscripts package ;; Author: Sean Whitton -;; Version: 0.3 +;; Version: 0.4 ;; Package-Requires: (notmuch) ;; Copyright (C) 2018 Sean Whitton diff --git a/notmuch-slurp-debbug b/notmuch-slurp-debbug index 226a095..d289e31 100755 --- a/notmuch-slurp-debbug +++ b/notmuch-slurp-debbug @@ -89,6 +89,9 @@ system("mbox2maildir $mbox $dir") == 0 foreach my $message (glob "$dir/*/*") { my $message_head = MIME::Head->from_file($message); my $mid = $message_head->get('Message-ID'); + # if this message does not have a message-id, do not import it; + # that is asking for trouble + next unless defined $mid; $mid =~ s/(<|>)//g; my $match = `notmuch search id:$mid`; my $match_lines = $match =~ tr/\n//; -- cgit v1.2.3 From cff0e39b9dbf35970ce154efb0621f5abbfd2387 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 27 Oct 2018 10:56:19 -0700 Subject: release 0.4 (0.4-1 to Debian unstable) Signed-off-by: Sean Whitton --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6e301fe..4d66144 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,9 @@ -mailscripts (0.4-1) UNRELEASED; urgency=medium +mailscripts (0.4-1) unstable; urgency=medium * Do not import messages without a Message-Id header (Closes: #909835). Thanks to David Bremner for the report. - -- Sean Whitton Sat, 27 Oct 2018 10:52:46 -0700 + -- Sean Whitton Sat, 27 Oct 2018 10:56:10 -0700 mailscripts (0.3-1) unstable; urgency=medium -- cgit v1.2.3