Commit Graph

57 Commits (master)

Author SHA1 Message Date
Leah Neukirchen cf5493bb19 mmime: don't create empty lines when wrapping long words in headers.
Reported by Solène Rapenne.
2 months ago
Meudwy 75de7d47da minc: read directory names from stdin
This matches `mlist` where it can take directories as arguments or via
stdin.

Closes: #244 [via git-merge-pr]
9 months ago
Leah Neukirchen 1838158ef1 blaze822_priv.h: use proper lc/uc
Mail headers may contain characters where the simple definition breaks,
which results in wrong formatting on output.

Fixes #235.
1 year ago
Lucas e951b0ba27 mmime: allow to relax body line length limit
Message-Id: <10e22a318b5c70d89432d85ecd8cb8ce1796a51d.1643116719.git.lucas@sexy.is>
2 years ago
Leah Neukirchen 3496545358 mflow: fixed lines were not wrapped, add test suite
Reported by ninewise.
2 years ago
Leah Neukirchen b962fb6be0 rfc2047: skip whitespace everywhere during base64 decoding
> The encoded output stream must be represented in lines of no more
> than 76 characters each.  All line breaks or other characters not
> found in Table 1 must be ignored by decoding software.  In base64
> data, characters other than those in Table 1, line breaks, and other
> white space probably indicate a transmission error, about which a
> warning message or even a message rejection might be appropriate
> under some circumstances.
3 years ago
Leah Neukirchen 41bd429452 blaze822: blaze822/blaze822_mem: detect line ending before scanning end of header
A mail using CRLF which contained (for some reason) a LFLF pair would
be misparsed as the header was read until the LFLF.

Instead, scan for the first LF, check if it's preceded by CR,
and then search for the proper header terminator only.

Closes #212.
3 years ago
Leah Neukirchen 4ccf2f08c1 mmime: ensure no empty parts are generated after an include.
Reported by lhynes.
3 years ago
Leah Neukirchen 014f82ef0c t/1000-mmime.t: add tests for recent changes 3 years ago
Leah Neukirchen 23941c6c19 t/1500-maddr.t: deactivate invalid test case
An 'encoded-word' MUST NOT appear in any portion of an 'addr-spec'.
3 years ago
Leah Neukirchen 605509cc06 t/1900-mdeliver.t: fix plan 3 years ago
Leah Neukirchen 8ba44643e4 t/1900-mdeliver.t: add test for malformed mboxes 3 years ago
Leah Neukirchen 669af4ffca mdeliver: ignore last empty line of mbox entries
https://www.loc.gov/preservation/digital/formats/fdd/fdd000383.shtml
> Each message is immediately prefaced by a separation line and
> terminated by an empty line.

Bug discovered by skarnet.

Fixes #207.
3 years ago
Leah Neukirchen 7d04932813 mexport: ensure mbox entries are separated by an empty line
https://www.loc.gov/preservation/digital/formats/fdd/fdd000383.shtml
> Each message is immediately prefaced by a separation line and
> terminated by an empty line.

Bug discovered by skarnet.
3 years ago
Leah Neukirchen 5b52110399 mmime: do not duplicate Content* headers
Do not add additional Content-Type and Content-Transfer-Encoding headers
when using mmime on input already containing them.

Do not reencode the message if Content-Transfer-Encoding is set.

Based on a patch by Felix Van der Jeugt and duncaen.
3 years ago
Leah Neukirchen 741972a416 t/8000-mflag.t: fix when stdin is not a tty 3 years ago
Leah Neukirchen c2d497b139 t/6000-msort.t: fix when stdin is not a tty 3 years ago
Leah Neukirchen 2d6de31cd7 t/3000-magrep.t: fix when stdin is not a tty 3 years ago
Leah Neukirchen c525c0097e mmime: allow # in include lines, used to override the content-disposition 3 years ago
Leah Neukirchen 5167bbfe39 rfc2045: ensure mime boundaries end with a newline or - 4 years ago
Leah Neukirchen 4d566a6afe t/7000-mseq.t: use printf for robustness 4 years ago
Leah Neukirchen 1e9f6cd06b t/7000-mseq.t: add test for 74857db19 4 years ago
Leah Neukirchen 6649576fda t/5000-mscan.t: typo 4 years ago
Leah Neukirchen 32b5837bfd t/5000-mscan.t: add test for b41d2ef 4 years ago
Duncan Overbruck d9c3914924 mpick: breaking cmdline options
Two breaking changes which will make mpick fit more in with
all other mblaze tools by using mmsg(7) arguments:
- Use the -F flag to read script files.
- Remove msglist support
4 years ago
Leah Neukirchen 96c506085f t: use - instead of /dev/stdin 4 years ago
Leah Neukirchen e7442fcc72 seq: - now refers to the message on stdin, use .- for previous message 4 years ago
Julian Rother e5206792df t/2000-mpick.t: test environment variables in expressions 4 years ago
Leah Neukirchen d777d370dd t/lib.sh: work around a OpenBSD bug
Upstream report: https://marc.info/?i=871rnjhncc.fsf%20()%20vuxu%20!%20org
4 years ago
Duncan Overbruck b79e38b686 mpick: improve unknown binding error and add test case 4 years ago
Duncan Overbruck 0645634733 t/2000-mpick.t: check for double free with bindings 4 years ago
Duncaen aa2868822b t/2000-mpick.t: add tests for all the new features 4 years ago
Duncaen 8ae4801dd4 mpick: add header decodeop for better address matching 4 years ago
Leah Neukirchen e56f8ad294 blaze822: blaze822_addr: null-terminate ttok at the current position before appending 4 years ago
Leah Neukirchen 3370fd5f70 blaze822: blaze822_addr: don't force add space before quoted words 4 years ago
Leah Neukirchen 8c8a4bd422 blaze822: blaze822_addr: ignore leading obs-route 4 years ago
Leah Neukirchen 58365527e4 t: update links 5 years ago
Leah Neukirchen 6ec116f764 t/1501-maddr-regress.t: adapt to changes of bcd258a 6 years ago
Leah Neukirchen 718caa9b59 t/1500-maddr.t: adapt to changes of bcd258a 6 years ago
Leah Neukirchen d1a1245742 t/1501-maddr-regress.t: fix failing test, maddr never quotes the display name 6 years ago
Leah Neukirchen bbd8165f46 1501-maddr-regress.t: space in local part 6 years ago
Leah Neukirchen fe3e1629a6 t/1501-maddr-regress.t: add regression tests for address parsing 6 years ago
Leah Neukirchen 4dd363d51e t/1500-maddr.t: fix check, maddr now compresses whitespace. 6 years ago
Duncaen a604469303 t: add test case for latest magrep crash
This crash was reported in #76 and resolved with
commit 6239ef35357824308df079bd6df0dc4b202e898.
7 years ago
Duncaen 880f084177 mseq: remove the ,2: suffix from the file we search for and add testcase
This fixes #38

Closes: #39 [via git-merge-pr]
7 years ago
Duncaen 9bec745dde mpick: allow string expressions on any header 7 years ago
Duncaen b0f5662c5f t: add maddr and minc tests 7 years ago
Duncaen 537282d6af seq: fix selecting subthreads at the end of sequences and add test cases 7 years ago
Duncaen b960d5e3cc t: add check_test 7 years ago
Duncaen 2287e89631 t: add mseq and mflag tests 7 years ago