mmh
5 years agoMerge branch 'pick' into master
Philipp Takacs [Sun, 30 Dec 2018 01:37:25 +0000 (02:37 +0100)]
Merge branch 'pick' into master

scan and pick is merged and pick matching is streamlined

5 years agomerge pick and scan manpage pick
Philipp Takacs [Sun, 30 Dec 2018 00:51:06 +0000 (01:51 +0100)]
merge pick and scan manpage

Now only one manpage for scan and pick is dokumentating
the usage of pick/scan.

5 years agoadd raw option to mhl
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.

5 years agowhatnow2 handle mhuse
Philipp Takacs [Wed, 21 Nov 2018 01:34:56 +0000 (02:34 +0100)]
whatnow2 handle mhuse

If mhuse is set don't write new envirement to the metafile. mhuse
is set, when comp -use is used.

5 years agostrict use "" in whatnow2
Philipp Takacs [Wed, 21 Nov 2018 01:26:49 +0000 (02:26 +0100)]
strict use "" in whatnow2

5 years agomhl implement simple globbing
Philipp Takacs [Mon, 10 Jul 2017 14:34:45 +0000 (16:34 +0200)]
mhl implement simple globbing

ignores now supports simple globbing

6 years agofix indention in uip/mhl.c
Philipp Takacs [Fri, 23 Nov 2018 00:41:06 +0000 (01:41 +0100)]
fix indention in uip/mhl.c

6 years agoTrailing withspace handling in mhl
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.

The implementation was done by David Levine <levinedl@acm.org> for nmh
commit ea0a6d8112a918809bd03d8126411040d22f2bb8
commit 1aa8f3e11e6d83ee4806abaa132ab9466f02ca5f

6 years agoread the defaultfolder from the profile
Philipp Takacs [Fri, 26 Oct 2018 19:53:36 +0000 (21:53 +0200)]
read the defaultfolder from the profile

context_read now creates the inbox specified in the profile,
instand of create the compiletime default.

6 years agopick implement rfc2047
Philipp Takacs [Wed, 21 Nov 2018 22:25:54 +0000 (23:25 +0100)]
pick implement rfc2047

6 years agofix logic bug in pick GREPaction
Philipp Takacs [Wed, 21 Nov 2018 22:23:10 +0000 (23:23 +0100)]
fix logic bug in pick GREPaction

GREPaction now check the header field correct

6 years agoremove free of static memory
Philipp Takacs [Wed, 21 Nov 2018 21:06:22 +0000 (22:06 +0100)]
remove free of static memory

6 years agoFix blind list alias expansion
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].

6 years agoFix test/tests/show/test-longlines
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.

6 years agoFix test/tests/send/test-mimeify
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.

6 years agoAdd test for empty sequence patch by c_14
markus schnalke [Wed, 31 Oct 2018 10:32:39 +0000 (11:32 +0100)]
Add test for empty sequence patch by c_14

i.e. for commit 850190587ff71010fc63e44ca01a93a44c96f58e

6 years agoIgnore folders with an empty sequence in new
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.

6 years agoUse the same mh_hostname() function from test/common.h in mhsign(1)
Vasilii Kolobkov [Thu, 19 Jul 2018 16:55:57 +0000 (18:55 +0200)]
Use the same mh_hostname() function from test/common.h in mhsign(1)

6 years agoFix tests to run on OpenBSD
Vasilii Kolobkov [Thu, 19 Jul 2018 16:54:07 +0000 (18:54 +0200)]
Fix tests to run on OpenBSD

  Use a hardcoded sequence for there's no seq(1) in OpenBSD.

  awk(1) doesn't support interval regular expression syntax ({n,m})
  on some BSDs.

  hostname(1) has no -f flag on OpenBSD and. Try it first and
  fallback to `uname -n`.

  Omit explicit template in mktemp(1) call.

6 years agoRemove tests/inc/test-eom-align
Vasilii Kolobkov [Thu, 19 Jul 2018 09:56:11 +0000 (11:56 +0200)]
Remove tests/inc/test-eom-align

Reimplemented m_getfld2() makes it obsolete.

6 years agoExtend test for long lines with CRLF
markus schnalke [Sun, 15 Jul 2018 11:41:17 +0000 (13:41 +0200)]
Extend test for long lines with CRLF

6 years agospost accept body lines with 998 characters
Philipp Takacs [Sat, 14 Jul 2018 11:41:09 +0000 (13:41 +0200)]
spost accept body lines with 998 characters

6 years agocheck for crlf in m_getfld2
Philipp Takacs [Sat, 14 Jul 2018 09:24:36 +0000 (11:24 +0200)]
check for crlf in m_getfld2

now header fields witch lines 998 chars and crlf
are accepted.

6 years agoAdd test to check for correct handling of long lines
markus schnalke [Sun, 15 Jul 2018 11:28:13 +0000 (13:28 +0200)]
Add test to check for correct handling of long lines

6 years agoAccept header lines of exactly 998 characters
Vasilii Kolobkov [Wed, 11 Jul 2018 11:21:16 +0000 (13:21 +0200)]
Accept header lines of exactly 998 characters

6 years agoFix parallel `make install'
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.

6 years agoBetter wording in README concerning compatibility
markus schnalke [Sun, 18 Feb 2018 09:33:02 +0000 (10:33 +0100)]
Better wording in README concerning compatibility

7 years agofix install of scan
Philipp Takacs [Sat, 22 Jul 2017 19:35:44 +0000 (21:35 +0200)]
fix install of scan

now scan is removed bevore it is linked

found by Jan <jan@subpath.de>

7 years agoAdd example to pick.1 for handling empty result set in the shell
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.

7 years agofix undefined behavior in fmt_trim()
Philipp Takacs [Fri, 16 Jun 2017 12:12:24 +0000 (14:12 +0200)]
fix undefined behavior in fmt_trim()

It now writes the output in the input char *. This is only a temporaly
fix.

7 years agocpstripped: Add braces to make code more legible.
c_14 [Tue, 16 May 2017 16:13:52 +0000 (18:13 +0200)]
cpstripped: Add braces to make code more legible.

7 years agoadd a test to test-scan-multibyte
c_14 [Mon, 22 May 2017 21:56:12 +0000 (23:56 +0200)]
add a test to test-scan-multibyte

Tests for splitting within a multibyte character.

7 years agofmt_scan: support multibyte characters in putstr decoding
c_14 [Tue, 16 May 2017 16:13:27 +0000 (18:13 +0200)]
fmt_scan: support multibyte characters in putstr decoding

Fixes an issue where the string output by scan with a putstr format is
truncated within a multibyte character causing terminal corruption

7 years agoreplace scan with pick
Philipp Takacs [Sun, 28 May 2017 12:58:38 +0000 (14:58 +0200)]
replace scan with pick

7 years agoport -file switch to pick
Philipp Takacs [Sun, 28 May 2017 12:49:52 +0000 (14:49 +0200)]
port -file switch to pick

now scan can full replaced by pick

7 years agopick option -thread
Philipp Takacs [Sun, 26 Feb 2017 19:28:06 +0000 (20:28 +0100)]
pick option -thread

The -thread option allows to pick mails of a specific thread. The
thread is choosen by a mail in the option argument.

7 years agocomplete rewrite of pick
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.

7 years agomh_xstrdup arguments now const
Philipp Takacs [Sun, 2 Apr 2017 21:13:42 +0000 (23:13 +0200)]
mh_xstrdup arguments now const

this is better to avoid errors and required
by my pick rewrite

7 years agoadd -format to pick
Philipp Takacs [Fri, 9 Sep 2016 21:06:37 +0000 (23:06 +0200)]
add -format to pick

this leads to remove scan

7 years agodecode rfc2047 header in mhparse
Philipp Takacs [Mon, 19 Sep 2016 16:23:39 +0000 (18:23 +0200)]
decode rfc2047 header in mhparse

attachment filenames are mostly rfc2047 encoded. Now all
mime header are decoded to avoid problems.

7 years agomhpgp: use trusted header field copies to replace original header fields
markus schnalke [Mon, 17 Apr 2017 21:52:26 +0000 (23:52 +0200)]
mhpgp: use trusted header field copies to replace original header fields

Enigmail provides so called ``protected-headers'', which are copies
of some main mail header fields to protect them from forgery.

Mhpgp(1) works in a rough way and simply adds this MIME part
to the main header, and this resulted in a doubling of those header
fields.

Now those original headers are removed if trusted copies are
provided within the encrpyted MIME part.

7 years agoFix `anno -delete': preserve newline in folded header fields
markus schnalke [Mon, 17 Apr 2017 21:41:55 +0000 (23:41 +0200)]
Fix `anno -delete': preserve newline in folded header fields

7 years agoFix mhsign for gpg2: Expiry date format
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.

Thanks to Jan Unterbrink for reporting the bug.

7 years agofix oldstyle whom
Philipp Takacs [Wed, 8 Mar 2017 14:31:37 +0000 (15:31 +0100)]
fix oldstyle whom

Check if msg struct have selected messages before
accessing a message.

7 years agoFix uip/whom.c for C89 compatibility
markus schnalke [Wed, 8 Mar 2017 12:44:12 +0000 (13:44 +0100)]
Fix uip/whom.c for C89 compatibility

7 years agoFix sbr/parse_msgs.c for C89 compatibility
markus schnalke [Wed, 8 Mar 2017 12:31:31 +0000 (13:31 +0100)]
Fix sbr/parse_msgs.c for C89 compatibility

7 years agoadd() first parameter (s2) is now const
Philipp Takacs [Sun, 5 Mar 2017 16:55:31 +0000 (17:55 +0100)]
add() first parameter (s2) is now const

7 years agoallow msgs as parameters for whom
Philipp Takacs [Sun, 5 Mar 2017 16:55:00 +0000 (17:55 +0100)]
allow msgs as parameters for whom

now you can write ``whom c'' instand of ``whom `mhpath c`''

7 years agoquote path variables in whatnow2.sh
Philipp Takacs [Fri, 17 Feb 2017 15:05:57 +0000 (16:05 +0100)]
quote path variables in whatnow2.sh

without qoutes this causes error with spaces or other
special charecter in the path or filename.

7 years agomake dateparsing case insensitive
Philipp Takacs [Sun, 1 Jan 2017 20:57:07 +0000 (21:57 +0100)]
make dateparsing case insensitive

Acourding to RFC 5322 and 5234 the date field
is case insenitive

7 years agomhparse add support for CRLF
Philipp Takacs [Fri, 25 Nov 2016 12:38:04 +0000 (13:38 +0100)]
mhparse add support for CRLF

multipart mime content wasn't able to parse, if the
mail use CRLF line endings.

7 years agoAccept binary encoding for messages/*
Philipp Takacs [Tue, 22 Nov 2016 16:15:58 +0000 (17:15 +0100)]
Accept binary encoding for messages/*

Acording to RFC 2046 binary encoding is allowed for messages/*.
Also ignore other encodings.

7 years agomhsign manpage: mention hostname bug
mor0ious@gmail.com [Thu, 5 Jan 2017 15:35:22 +0000 (08:35 -0700)]
mhsign manpage: mention hostname bug

7 years agowhatnow2: remove get_attachmentheader()
Dmitry Bogatov [Fri, 16 Sep 2016 12:22:28 +0000 (15:22 +0300)]
whatnow2: remove get_attachmentheader()

7 years agoRemove unused code
Dmitry Bogatov [Thu, 8 Sep 2016 10:03:52 +0000 (13:03 +0300)]
Remove unused code

The unsude code is: struct zone, macro strbase64, macro isatom,
function unset_unseen(), function pref_encoding(), function cpydgst(),
macro base64len

7 years agoGrammer and layout fixes anno.man1
Larry Hynes [Tue, 13 Dec 2016 20:14:12 +0000 (20:14 +0000)]
Grammer and layout fixes anno.man1

7 years agoGrammer and layout fixes in ali.man1
Larry Hynes [Tue, 13 Dec 2016 20:14:12 +0000 (20:14 +0000)]
Grammer and layout fixes in ali.man1

8 years agofix bug in whatnow2 attach
Philipp Takacs [Sun, 25 Sep 2016 20:40:46 +0000 (22:40 +0200)]
fix bug in whatnow2 attach

8 years agoredesign version string
Philipp Takacs [Sun, 4 Sep 2016 12:12:00 +0000 (14:12 +0200)]
redesign version string

Now we have two version nummbers one for the tool
and one for the lib. Also the version number is changed
everytime the object is rebuild.

8 years agoFix segfault in mhstore
markus schnalke [Mon, 12 Sep 2016 12:54:17 +0000 (14:54 +0200)]
Fix segfault in mhstore

The bug was introduced by 6306992cd580d47c217edb1ae98d58b24d5be8c9
It didn't handle MIME parts without Content-Disposition headers.

8 years agoFix repllistcomps: use the correct header
markus schnalke [Thu, 8 Sep 2016 06:54:52 +0000 (08:54 +0200)]
Fix repllistcomps: use the correct header

8 years agoNo need to define the month and day names a second time
markus schnalke [Wed, 7 Sep 2016 20:59:21 +0000 (22:59 +0200)]
No need to define the month and day names a second time

... just use the definition that already is available.

8 years agoAdd support for simplified ISO 8601/RFC 3339 dates
markus schnalke [Wed, 7 Sep 2016 20:41:06 +0000 (22:41 +0200)]
Add support for simplified ISO 8601/RFC 3339 dates

It is now possible to use:
pick -after 2016-02-15 -and -before 2016-08-31T16:30:00+02:00

At the same time drop support for the highly ambiguous date format
XX-XX-YY.

8 years agoReplace lookup tables for obscure hashes with more readable code
markus schnalke [Wed, 7 Sep 2016 14:31:58 +0000 (16:31 +0200)]
Replace lookup tables for obscure hashes with more readable code

Time-performance doesn't matter here. If you think differently,
demonstrate it convincingly!

8 years agoRemove not used code (JLR define)
markus schnalke [Wed, 7 Sep 2016 05:52:38 +0000 (07:52 +0200)]
Remove not used code (JLR define)

I don't yet understand what the code does but we've never used
it and didn't miss it, thus it appears to be a good decision to
just remove it.

8 years agofix build in a diffrent folder
Philipp Takacs [Tue, 6 Sep 2016 23:14:42 +0000 (01:14 +0200)]
fix build in a diffrent folder

Build in diffrent folder is a feature required by
the test suite.

This is a fixup for commit 94ac6bb

8 years agoFactor trim format function out
markus schnalke [Tue, 6 Sep 2016 18:10:28 +0000 (20:10 +0200)]
Factor trim format function out

Also clarify that it trims both, leading and trailing whitespace.

(Note that it is a special trim function. We cannot simply replace
it with sbr/trim.c. Nonetheless, its readability is somehow bad.)

8 years agoAdd %(unmailto) format function for List-Post headers
markus schnalke [Tue, 6 Sep 2016 17:53:20 +0000 (19:53 +0200)]
Add %(unmailto) format function for List-Post headers

With the unmailto format function it is possible to extract
the address from a List-Post header, which e.g. is:
List-Post: <mailto:mmh@marmaro.de>
Applying  %(unmailto{list-post})  extracts: ``mmh@marmaro.de'',
which then can be used as recipient address for list replies.
A format file (to be used with ``repl -form repllistcomps'')
is included.

8 years agoGenerate the command list in mmh-intro(7)
markus schnalke [Tue, 6 Sep 2016 05:58:17 +0000 (07:58 +0200)]
Generate the command list in mmh-intro(7)

This implementation does handle the aliases of folder(1) and
flist(1), but not the ones of show(1) and new(1). Hence the
commands next(1), prev(1), fnext(1), fprev(1) and unseen(1)
don't appear on the list.

Adjusted some of the short descriptions based on the version
in the manual command list.

8 years agoMake mhstore(1) use "filename" attr of Content-Disposition
markus schnalke [Mon, 5 Sep 2016 09:51:00 +0000 (11:51 +0200)]
Make mhstore(1) use "filename" attr of Content-Disposition

Before, only the "name" attr of Content-Type was used as the filename
to store attachments. The "filename" attr of Content-Disposition
(which is the much more appropriate value) was ignored, thus often
resulting in the attachment being stored with a default name like
20.2.pdf, for instance.

8 years agoremove msg-hook config option
Philipp Takacs [Wed, 31 Aug 2016 15:21:15 +0000 (17:21 +0200)]
remove msg-hook config option

This is removed, because I don't see this is necesarry and it's
not a good idea to pass a user provided string direct in a
format string.

8 years agoFix unreproducible build
Dmitry Bogatov [Mon, 29 Aug 2016 23:35:43 +0000 (02:35 +0300)]
Fix unreproducible build

Hostname and date of compilation are no longer embeded in version
string. See https://reproducible-builds.org

8 years agoFix spelling errors, including binaries ones
Dmitry Bogatov [Sat, 27 Aug 2016 08:06:00 +0000 (11:06 +0300)]
Fix spelling errors, including binaries ones

Signed-off-by: Dmitry Bogatov <KAction@gnu.org>

8 years agoFix missing va_end call in uip/mhmisc.c
Dmitry Bogatov [Sat, 27 Aug 2016 08:40:15 +0000 (11:40 +0300)]
Fix missing va_end call in uip/mhmisc.c

8 years agoFix misspelled variable in uip/whatnow2.sh
Philipp Takacs [Sat, 27 Aug 2016 21:17:35 +0000 (23:17 +0200)]
Fix misspelled variable in uip/whatnow2.sh

This make the error message better

8 years agoFix out-of-bounds error when incorporating email from stdin
Dmitry Bogatov [Fri, 26 Aug 2016 23:03:28 +0000 (02:03 +0300)]
Fix out-of-bounds error when incorporating email from stdin

Before this patch, if +inbox is empty, following error happened:

$ inc -file - < /dev/null

Incorporating new mail into inbox...

inc: no messages incorporated, continuing...
inc: Bug: message out of bounds

This happened due improper call to `seq_setunseen', which implicitly
assumed that there is at least one message (it does not handle case
where both mp->hghmsg and mh->lowmsg are 0).

Bug does not happens with command `inc -file empty', since file
is checked for being empty before any read attempts.

Signed-off-by: Dmitry Bogatov <KAction@gnu.org>

8 years agoFix FILE resource leaks in uip/distsbr.c
Dmitry Bogatov [Sat, 27 Aug 2016 08:37:28 +0000 (11:37 +0300)]
Fix FILE resource leaks in uip/distsbr.c

8 years agoadd Sendmail option to spost manpage
Philipp Takacs [Wed, 24 Aug 2016 12:46:26 +0000 (14:46 +0200)]
add Sendmail option to spost manpage

Thanks Dmitry Bogatov

8 years agoadd uip/whatnow2 to .gitignore
Philipp Takacs [Tue, 23 Aug 2016 15:04:12 +0000 (17:04 +0200)]
add uip/whatnow2 to .gitignore

8 years agoBump version number
Philipp Takacs [Sun, 14 Aug 2016 22:35:23 +0000 (00:35 +0200)]
Bump version number

8 years agoThis is mmh-0.3 mmh-0.3
Philipp Takacs [Sun, 14 Aug 2016 22:21:12 +0000 (00:21 +0200)]
This is mmh-0.3

8 years agofix whatnow2 send
Philipp Takacs [Sun, 14 Aug 2016 22:11:39 +0000 (00:11 +0200)]
fix whatnow2 send

in the last commit whatnow2 send was changed
to keep the metafile. This don't work with the
``exec send''. Now the send() is renamed to
sendfunktion and the ``exec'' is removed.

8 years agodel metafile in whatnow2 only if send don't fail
Philipp Takacs [Sun, 14 Aug 2016 20:36:55 +0000 (22:36 +0200)]
del metafile in whatnow2 only if send don't fail

If send fails, you want to keep the metafile. Without this dist wold
only work, if send works on the first time. Also some metainfo don't
get lost.

8 years agotouch the DISTINCLUDE in mmhdist target
Philipp Takacs [Sun, 14 Aug 2016 15:31:50 +0000 (17:31 +0200)]
touch the DISTINCLUDE in mmhdist target

This avoids rebuilding this files. So autoconf and flex
is not need for a normal user.

8 years agoAdd "delete" to "delete" pattern in whatnow2's case construct
m@mmmmarascio.xyz [Fri, 12 Aug 2016 16:00:05 +0000 (09:00 -0700)]
Add "delete" to "delete" pattern in whatnow2's case construct

The attached patch modifies whatnow2 so that calling `whatnow2 delete`
works as may be expected.  Without this change, the "delete" function
in whatnow2 was called only when whatnow2 was executed as one of the
following.

* whatnow2 del
* whatnow2 dele
* whatnow2 delet

8 years agobetter error handling in whatnow2
Philipp Takacs [Fri, 12 Aug 2016 16:11:11 +0000 (18:11 +0200)]
better error handling in whatnow2

if the command is unknown then usage is printed and if usage is
called with an argument other then 0 exit 1 is forced.

8 years agofix bug in decode_rfc2047()
Philipp Takacs [Fri, 12 Aug 2016 15:43:05 +0000 (17:43 +0200)]
fix bug in decode_rfc2047()

If iconv() returns an error and the source encoding
is utf-8, the character jump has an of by one: the
source string is incresed by one possition more the
the length is decreased.

8 years agoUpdate comment in script concerning the VCS
markus schnalke [Fri, 12 Aug 2016 08:07:07 +0000 (10:07 +0200)]
Update comment in script concerning the VCS

We're not using CVS anymore, but a VCS -- doesn't matter which one.

8 years agofix dist
Philipp Takacs [Thu, 11 Aug 2016 15:22:49 +0000 (17:22 +0200)]
fix dist

Because of always mimeify the dist hasn't work anymore.
This is fixed by skipping attach() and signandenc(), if
it's handled as a redistribution message.

8 years agoAdd more tests to tests/test-send-mimeify
markus schnalke [Wed, 10 Aug 2016 17:25:53 +0000 (19:25 +0200)]
Add more tests to tests/test-send-mimeify

8 years agoFix typo in whatnow2 function "display"
m@mmmmarascio.xyz [Mon, 8 Aug 2016 23:14:50 +0000 (16:14 -0700)]
Fix typo in whatnow2 function "display"

The attached patch fixes a typo in the whatnow2's "display" function.
[ -z instand of [ -n for a check if a variable is empty.

8 years agoadd a test for repl on a ASCII only system
Philipp Takacs [Sun, 7 Aug 2016 19:57:30 +0000 (21:57 +0200)]
add a test for repl on a ASCII only system

This should create the same output as with utf-8.
But the Umlaut should be displayed as '?'. This isn't
the case at the moment.

8 years agoFix typo in whatnow2.sh
m@mmmmarascio.xyz [Sat, 6 Aug 2016 21:13:18 +0000 (14:13 -0700)]
Fix typo in whatnow2.sh

command call is done with `command` not "command"

8 years agoTest if MIME creation works
Philipp Takacs [Sat, 6 Aug 2016 16:08:58 +0000 (18:08 +0200)]
Test if MIME creation works

Test if send uses mhbuild only, if it is usefull. A message
already in MIME-Formate should not cause a fail.

8 years agounset MM_CHARSET in tests/scan/test-scan-multibyte
Philipp Takacs [Sat, 6 Aug 2016 15:07:11 +0000 (17:07 +0200)]
unset MM_CHARSET in tests/scan/test-scan-multibyte

If MM_CHARSET is set to anything other then ascii this
test probaly fail, but the test is mean to run on a ascii
only envirement.

8 years agoAdjust tests/bad-input/test-header for m_gefld2()
Philipp Takacs [Sat, 6 Aug 2016 15:05:57 +0000 (17:05 +0200)]
Adjust tests/bad-input/test-header for m_gefld2()

With the m_gefld2 change mmh ignores more errors. This causes
a diffrent behaviour in some cases.

8 years agoFix tests/mhparam/test-mhparam
m@mmmmarascio.xyz [Fri, 5 Aug 2016 02:15:42 +0000 (19:15 -0700)]
Fix tests/mhparam/test-mhparam

The behaviour of readconfig() has changed. This causes
another behaviour for mhparam.

8 years agosend: Always MIMEify and pass already MIMIfied drafts through
markus schnalke [Fri, 5 Aug 2016 19:46:55 +0000 (21:46 +0200)]
send: Always MIMEify and pass already MIMIfied drafts through

Even if technically not necessary, MIMEify the draft. This simplifies
the code at hardly any cost.

To still be able to create arbitrary complex MIME structures, make
send(1) pass already MIMEified drafts through, without automatically
invoking mhbuild(1) on them a second time (which would fail). This
way, you can manually invoke mhbuild(1) and afterward call send(1)
... and everything will work just as expected.

Also documented this in the man page, and additionally added a
paragraph about the signing and encrypting feature of send(1), which
wasn't documented yet.

8 years agomhsign should work now
Philipp Takacs [Mon, 1 Aug 2016 11:14:47 +0000 (13:14 +0200)]
mhsign should work now

8 years agoAllow send(1) to send from folder other than +drafts
markus schnalke [Fri, 29 Jul 2016 09:18:36 +0000 (11:18 +0200)]
Allow send(1) to send from folder other than +drafts

This allows having multiple draft folders or queueing drafts
for automatic sending.