Philipp Takacs [Sun, 15 Dec 2019 13:44:57 +0000 (14:44 +0100)]
update unseen sequence after display
before this patch, if messages are displaied with a pager and during
that time a new message comes to the folder. The new message is added
to the unseen sequence. But after closing the pager the unseen sequence
gets overwritten and the new message is removed from the unseen
sequence.
Now the sequence file gets reread before remove the shown messages
from the unseen sequenece.
Philipp Takacs [Sun, 8 Dec 2019 16:54:29 +0000 (17:54 +0100)]
remove Previus-Sequence support
The Previus-Sequence was racy and introduce a lot of write accesses.
Also most use cases can solved better with shell history and command
line editing.
Philipp Takacs [Mon, 10 Jun 2019 01:17:36 +0000 (03:17 +0200)]
pick matching rework
the last rewrite of the matching implementation was a bit overcomplex.
Now the structures are better to read and without function pointers.
Also now the -not switch is working again.
The early return true in the last version causes this.
Now the leafs of the matching tree remeber, if the message has matched.
Dmitry Bogatov [Sun, 5 May 2019 19:41:06 +0000 (19:41 +0000)]
Ensure that message boundaries generated by mhsign are ascii-only
mhsign sometimes generates boundary separators in multipart messages
with non-ascii symbols in it. Use the C locale while generating the
separator fix this bug.
Philipp Takacs [Fri, 11 Jan 2019 01:28:29 +0000 (02:28 +0100)]
fix logic bug in getthreadid
getthreadid now early exit the m_getfld2 loop, if the message-id _and_
the references field is found. Without this the wrong thread-id may
found if the message-id field is before the references field.
Thanks c_14 for reporting
Philipp Takacs [Sat, 5 Jan 2019 13:30:57 +0000 (14:30 +0100)]
fail in pick if a massage of -thread has no thread-id
If pick -thread is used with a message without a message-id
or a references header field pick now fails. This prevents
falling back to all messages as default.
Philipp Takacs [Mon, 26 Nov 2018 00:02:53 +0000 (01:02 +0100)]
add raw option to mhl
raw allows to output a header as in the input, no changes are done
by mhl. This is written for whatnow2. whatnow2 shall safe some data
in the draft and use mhl with ignore to remove this data. Also other tools can
use mhl to filter some header fields out of a message without changing the
message itself.
Philipp Takacs [Mon, 19 Nov 2018 02:04:12 +0000 (03:04 +0100)]
Trailing withspace handling in mhl
If a component has trailing whitespace, e.g., body:component="> ", mhl
now trims that whitespace off when filtering blank text lines. Also add
a rtrim flag to mhl. This flag removes trailing whitespace in filtert text.
David Levine [Mon, 15 Oct 2012 00:27:17 +0000 (19:27 -0500)]
Fix blind list alias expansion
The first alias contained in a blind list is now expanded. The
mh-alias(5) man page was updated to show that blind lists must not be
terminated with, or contain, a trailing semicolon [Bug #15604].
markus schnalke [Sun, 4 Nov 2018 13:11:01 +0000 (14:11 +0100)]
Fix test/tests/show/test-longlines
Although it worked correct on the server, it did not in terminals
which have a number of columns set, like those connected to a screen.
The test now sets `-width 2000' for mhl(1) via the test config.
markus schnalke [Sun, 4 Nov 2018 13:07:43 +0000 (14:07 +0100)]
Fix test/tests/send/test-mimeify
The size differences came from generated values of the Content-ID
headers. They depend on the hostname and thus vary in length. leading
to different MIME part sizes. The solution is replacing all
Content-IDs with static values. The helper function replace_contentid()
is added to commons.sh.
c_14 [Mon, 1 Oct 2018 14:01:52 +0000 (16:01 +0200)]
Ignore folders with an empty sequence in new
This solves the issue where `new' lists folders that have an empty
sequence (e.g. the unseen sequence), this also prevents `fnext' and
`fprev' from navigating to such folders.
c_14 [Mon, 7 May 2018 16:48:33 +0000 (18:48 +0200)]
Fix parallel `make install'
Prior to this commit, running make install with -j > 1 caused an (easily
reproducible) race condition where make tried linking commands that
hadn't been installed yet.
markus schnalke [Sat, 8 Jul 2017 12:34:04 +0000 (14:34 +0200)]
Add example to pick.1 for handling empty result set in the shell
This commit bases on a patch provided by Vasily Kolobkov
<polezaivsani@openmailbox.org>. Actually, he also brought the
topic up on the mailing list. Thanks!
Also adjust the man page from nmh's special sequence name `all'
to mmh's name `a' for it.
Philipp Takacs [Sun, 2 Apr 2017 21:15:19 +0000 (23:15 +0200)]
complete rewrite of pick
this make the code cleaner and removes the
regex implementation. The mail itself is now read
by pick and the match functions only check if the
field match.
markus schnalke [Mon, 17 Apr 2017 17:35:21 +0000 (19:35 +0200)]
Fix mhsign for gpg2: Expiry date format
Gnupg2 uses --fixed-list-mode by default for --with-colons.
Gnupg1 needs this option explicitly to generate the same output
format (timestamps) for expiry dates.