mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
Merge tag 0.28.4
No functionality changes merged, since the bug in question was already fixed on master.
This commit is contained in:
commit
6682b4e686
5 changed files with 54 additions and 2 deletions
9
NEWS
9
NEWS
|
@ -13,6 +13,15 @@ Emacs
|
||||||
Support for GNU Emacs older than 25.1 is deprecated with this release,
|
Support for GNU Emacs older than 25.1 is deprecated with this release,
|
||||||
and may be removed in a future 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)
|
Notmuch 0.28.3 (2019-03-05)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# this file should be kept in sync with ../../../version
|
# this file should be kept in sync with ../../../version
|
||||||
__VERSION__ = '0.28.3'
|
__VERSION__ = '0.28.4'
|
||||||
SOVERSION = '5'
|
SOVERSION = '5'
|
||||||
|
|
9
debian/changelog
vendored
9
debian/changelog
vendored
|
@ -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
|
notmuch (0.28.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
* New upstream bugfix release.
|
* New upstream bugfix release.
|
||||||
|
|
|
@ -30,4 +30,38 @@ Date: GENERATED_DATE
|
||||||
|
|
||||||
This is just a test message (#2)"
|
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
|
test_done
|
||||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
||||||
0.28.3
|
0.28.4
|
||||||
|
|
Loading…
Reference in a new issue