Commit Graph

719 Commits

Author SHA1 Message Date
Leah Neukirchen
54435b30b6 mmime: gen_qp: encode trailing space and tab as =20/=09
See RFC2045 6.7.(3):
> It follows that an octet with decimal value 9 or 32 appearing at the
> end of an encoded line must be represented according to Rule #1.

Prefer this over generating a soft-line break and then a real line break.
2017-09-19 16:43:58 +02:00
Leah Neukirchen
7e9a73397b mflow: only accept flowed line with final space when reflowing 2017-09-19 14:58:20 +02:00
Leah Neukirchen
6557dec05b GNUmakefile: fix OpenBSD build
By sunil@nimmagadda.net.
2017-09-19 14:50:13 +02:00
Leah Neukirchen
3ebe373309 GNUmakefile: tweaks to make it easier for OpenBSD ports 2017-09-16 16:48:55 +02:00
Leah Neukirchen
a674be611c mflow: fix argument parsing 2017-09-06 18:47:26 +02:00
Leah Neukirchen
35181baf32 mflow: only space stuff when really reflowing 2017-09-06 18:41:31 +02:00
Leah Neukirchen
ebeaf43a27 mflow: add wrapping of long lines, add argument parsing, add quoting 2017-09-06 18:39:31 +02:00
Leah Neukirchen
285671f0e2 mshow: show: treat non-mime mails as single-part text/plain mails 2017-09-06 18:38:42 +02:00
Leah Neukirchen
34066eec64 contrib: add mrecode 2017-09-06 17:54:30 +02:00
Leah Neukirchen
98924a7fa1 mhdr: add -p to extract MIME parameters 2017-09-06 17:46:20 +02:00
Leah Neukirchen
3a67663a5d mflow: assume no reflow by default, when content-type exists 2017-09-02 18:29:46 +02:00
Leah Neukirchen
7c1c2c3740 mflow: flowed: add case where the word is too long for a line 2017-09-02 18:23:17 +02:00
Leah Neukirchen
3bfd9319e9 mflag: fix behavior with no arguments and reading from not a tty 2017-09-01 17:34:36 +02:00
Leah Neukirchen
66d0eff12f style 2017-08-31 17:30:17 +02:00
Sören Tempel
dfe09a7c5e mquote: make sed expression to strip signature work with busybox sed
Closes: #74 [via git-merge-pr]
2017-08-22 18:21:28 +02:00
Leah Neukirchen
6f99ef55a8 mgenmid: printb36: fix off-by-one
Closes #73.
2017-08-21 19:40:00 +02:00
Leah Neukirchen
4e13b73245 mshow: render_mime: avoid indexing into empty buffer
Found using spam corpus at http://untroubled.org/spam/2017-08.7z
2017-08-21 19:13:14 +02:00
Leah Neukirchen
6948b408a2 mflow: use blaze822_mime_parameter properly
Found using spam corpus at http://untroubled.org/spam/2017-08.7z.
2017-08-21 19:12:19 +02:00
Leah Neukirchen
d65041c386 squash more mandoc -Tlint warnings 2017-08-20 17:11:22 +02:00
Leah Neukirchen
4edca0ec3a mshow: use return value 62 for raw output of filters
E.g. for elinks -dump -dump-color-mode 3
2017-08-20 17:00:14 +02:00
Leah Neukirchen
6718576b9f mmime.1: reference makemime(1) and mhbuild(1) 2017-08-20 16:59:06 +02:00
Leah Neukirchen
cf4bc05010 mshow: use "less -RFXe" when $PAGER is plain "less" 2017-08-17 21:07:46 +02:00
Leah Neukirchen
13db67713f filter: use a non-blocking write pipe 2017-08-06 20:05:37 +02:00
Leah Neukirchen
6b5b42f583 filter: don't write more than PIPE_BUF at once
This could result in stalling during big writes when we can't read the
output of the child in the mean time.
2017-08-06 18:53:51 +02:00
Leah Neukirchen
8a9825596b mverify: use 0+x to force number
+x does not work in nawk/*BSD awk.
2017-08-05 20:13:16 +02:00
Larry Hynes
470d7f85a0 mverify: Cant - > cannot
- This works around the quoting problem inherent in using Can't
  and avoids using the incorrect Cant

Closes: #71 [via git-merge-pr]
2017-08-05 18:09:50 +02:00
Leah Neukirchen
05e4d5b5fa mshow: fallback to text/plain when no content-type exists 2017-08-05 17:46:25 +02:00
Leah Neukirchen
3b51c5938a rfc2047: blaze822_decode_b64: ensure nul-termination of result
Fixes #70.
2017-07-30 16:44:16 +02:00
Larry Hynes
7fd982d172 mcom: dreaft -> draft
Closes: #69 [via git-merge-pr]
2017-07-27 14:10:40 +02:00
Leah Neukirchen
3b282a4934 filter.example: use mflow 2017-07-26 17:32:22 +02:00
Leah Neukirchen
9387d1fe07 add mflow 2017-07-26 17:23:01 +02:00
Leah Neukirchen
1382543ae8 VERSION: 0.2 2017-07-17 16:29:49 +02:00
Leah Neukirchen
c6c8fb8d7c add NEWS.md 2017-07-17 16:26:47 +02:00
Leah Neukirchen
4c592759a2 mseq: use first message of range for -c and -C. 2017-07-17 14:18:25 +02:00
Leah Neukirchen
31d1cb7bc6 minc: use squeeze_slash
Closes #68.
2017-07-12 22:31:52 +02:00
Leah Neukirchen
157542c3e7 mlist: extract squeeze_slash 2017-07-12 22:31:01 +02:00
Leah Neukirchen
73d80d80f9 mrep: avoid initial space for References:
This triggered qp-encoding, which is not allowed for this header.
2017-07-12 21:11:53 +02:00
Larry Hynes
4d38a9c950 Changes to mthread.1
- Sprinkle some commas
- passed -> specified
- 'the' standard input
- 'one per line'
- 'in case' -> 'if'
- Flesh out -S outbox example

Closes: #67 [via git-merge-pr]
2017-07-12 13:34:40 +02:00
Larry Hynes
f4e1b99b51 Changes to msort.1
- Clarify that its the message names, not the messages,
  that get printed
- passed -> specified
- Merge 3rd sentence in DESCRIPTION with 1st
- 'the' standard input

Closes: #66 [via git-merge-pr]
2017-07-11 22:19:26 +02:00
Leah Neukirchen
aee4d6e8e5 mlist: squeeze squeezing code
Thanks to quinq, who put all their heart in it.
2017-07-11 15:39:37 +02:00
Leah Neukirchen
011a13463f mlist: squeeze slashes from directory names
Closes #65.
2017-07-11 15:04:39 +02:00
Larry Hynes
e6dcea66dd Changes to msed.1
- Change 'scripts' to 'script', to match SYNOPSIS
- Delete 'the' in 'the mail headers'

Closes: #63 [via git-merge-pr]
2017-07-11 14:33:51 +02:00
Larry Hynes
90414ecb9d Changes to mshow.1
- (passed|given) -> specified
- Sprinkle some commas
- Adjust wording for '-A' option

Closes: #64 [via git-merge-pr]
2017-07-11 14:33:20 +02:00
Leah Neukirchen
f7c2cd9526 mymemmem: update with patch from musl mailing list
Fix by Alexander Monakov.
2017-07-11 13:36:40 +02:00
Leah Neukirchen
4a685de739 mmime: ensure 7bit or 8bit Content-Transfer-Encoding for message/rfc822 parts
RFC 2046, Section 5.2.1:
> No encoding other than "7bit", "8bit", or "binary" is permitted for
> the body of a "message/rfc822" entity.

(We'll generate 8bit when we have to and put the blame on the MTA.)
2017-07-09 21:25:55 +02:00
Leah Neukirchen
958ad4e9f6 mmime: disregard line length restriction for message/rfc822 attachments
Many webmail client's don't like qp-encoded message/rfc822 attachments.
2017-07-09 18:46:00 +02:00
Wolfgang Jenkner
b0d61b8275 mcom: fix non-POSIX sed usage 2017-07-08 20:48:20 +02:00
Larry Hynes
0023602f7b Changes to mscan.1
- passed -> specified
- 'the' standard input
- when -> if
- Clarify pager usage and refer to ENVIRONMENT for details
- Add note about default format in mblaze-profile
- Put in a '>' for %c
- else -> otherwise
- greater or equal 'to'
- Add ':' to 'From' and 'To'

Closes: #62 [via git-merge-pr]
2017-07-05 12:58:14 +02:00
Larry Hynes
0c983b99cd Changes to mpick.1
- Else -> Otherwise
- 'the' standard input
- Tidy up msglist intro
- Couple of corrections

Closes: #61 [via git-merge-pr]
2017-07-04 13:04:56 +02:00
Larry Hynes
79e1c8d055 Changes to mmsg.7
- Remove listing of tools from DESCRIPTION
- pass -> specify
- Unhyphenate grandparents
- If we don't enumerate the shortcuts, it's easier to maintain
- Add SEE ALSO mblaze.7

Closes: #60 [via git-merge-pr]
2017-07-04 13:03:45 +02:00