]> git.notmuchmail.org Git - notmuch/commitdiff
Merge tag 0.28.4
authorDavid Bremner <david@tethera.net>
Sun, 5 May 2019 19:38:51 +0000 (16:38 -0300)
committerDavid Bremner <david@tethera.net>
Sun, 5 May 2019 19:38:51 +0000 (16:38 -0300)
No functionality changes merged, since the bug in question was already
fixed on master.

NEWS
bindings/python/notmuch/version.py
debian/changelog
test/T210-raw.sh
version

diff --git a/NEWS b/NEWS
index 0a4ab4bbe12e952eebfec6eb35840a8466301f11..26b8160c8ee253821604c0063f0eb8ed6539f1dd 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,15 @@ Emacs
 Support for GNU Emacs older than 25.1 is deprecated with this release,
 and may be removed in a future release.
 
+Notmuch 0.28.4 (2019-05-05)
+===========================
+
+Command line interface
+----------------------
+
+Fix a spurious error when using `notmuch show --raw` on messages whose
+size is a multiple of the internal buffer size.
+
 Notmuch 0.28.3 (2019-03-05)
 ===========================
 
index 8217eabf13e32b31734f0a0a745a31e7d68894cd..236751eb406febd931877031c30b57776825a258 100644 (file)
@@ -1,3 +1,3 @@
 # this file should be kept in sync with ../../../version
-__VERSION__ = '0.28.3'
+__VERSION__ = '0.28.4'
 SOVERSION = '5'
index 8afd985b06f4bb75ef4e9897f72046053b9f5061..d0143a0f48022a8f58d0ec792952af2ae527cc0c 100644 (file)
@@ -1,3 +1,12 @@
+notmuch (0.28.4-1) unstable; urgency=medium
+
+  * New upstream bugfix release
+  * Fix for bug in 'notmuch show --raw' that causes spurious errors to be
+    reported when the mail file is a multiple of the libc buffer size
+    (e.g. 4096 bytes).
+
+ -- David Bremner <bremner@debian.org>  Sun, 05 May 2019 08:08:56 -0300
+
 notmuch (0.28.3-1) unstable; urgency=medium
 
   * New upstream bugfix release.
index 99fdef72e634fad35e91801e2f292a749c615c76..85e707d4741c8eb441535ac6a9a1fd7b9496764a 100755 (executable)
@@ -30,4 +30,38 @@ Date: GENERATED_DATE
 
 This is just a test message (#2)"
 
+test_python <<EOF
+from email.message import EmailMessage
+for pow in range(10,21):
+    size = 2 ** pow
+    msg = EmailMessage()
+    msg['Subject'] = 'message with {:07d} bytes'.format(size)
+    msg['From'] = 'Notmuch Test Suite <test_suite@notmuchmail.org>'
+    msg['To'] = msg['From']
+    msg['Message-Id'] = 'size-{:07d}@notmuch-test-suite'.format(size)
+    content = ""
+    msg.set_content("")
+    padding = size - len(bytes(msg))
+    lines = []
+    while padding > 0:
+        line = '.' * min(padding, 72)
+        lines.append(line)
+        padding = padding - len(line) - 1
+    content ='\n'.join(lines)
+    msg.set_content(content)
+    with open('mail/size-{:07d}'.format(size), 'wb') as f:
+        f.write(bytes(msg))
+EOF
+
+notmuch new --quiet
+
+for pow in {10..20}; do
+    printf -v size "%07d" $((2**$pow))
+    test_begin_subtest "content, message of size $size"
+    notmuch show --format=raw subject:$size > OUTPUT
+    test_expect_equal_file mail/size-$size OUTPUT
+    test_begin_subtest "return value, message of size $size"
+    test_expect_success  "notmuch show --format=raw subject:$size > /dev/null"
+done
+
 test_done
diff --git a/version b/version
index b79f04f44d612fb6ec325b602bc5800ec73459bf..097bc93627fd7d6874490653804232302de4afa8 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-0.28.3
+0.28.4