Leah Neukirchen
68272afcba
mcom: use file --mime instead of file -i
...
This also works on macOS.
Closes #162 .
5 years ago
Leah Neukirchen
a60e705e51
mthread: make malloc failure fatal
5 years ago
Leah Neukirchen
5fa9a7a706
mmime: gen_file: remove check for trailing newline for 7bit transfer
...
RFC2046 5.1.1 specifies that parts without trailing newlines are coded
without problems:
> NOTE: The CRLF preceding the boundary delimiter line is conceptually
> attached to the boundary so that it is possible to have a part that
> does not end with a CRLF (line break).
This if-statement now also codes empty files correctly.
6 years ago
Leah Neukirchen
5b0755ca68
slurp: don't special-case empty files, instead behave like strdup("")
...
This allows the caller to call free(3) in any case.
6 years ago
Leah Neukirchen
fd675ef159
seq: blaze822_loop: fix leak
6 years ago
Leah Neukirchen
8a095775d0
maddr: addr: fix leak
6 years ago
Leah Neukirchen
53151f4f89
mdeliver: add fallback to utimes for systems that don't have utimensat
...
Namely, macOS before 10.13.
6 years ago
Leah Neukirchen
0d73424edf
mscan: u8putstr: assume wcwidth of -1 means actually 2 (probably emojis)
6 years ago
Leah Neukirchen
b052723eac
NEWS.md: update for 0.5.1
6 years ago
Leah Neukirchen
023c26f943
rfc2047: blaze822_decode_rfc2047: account for space for trailing nul
6 years ago
Leah Neukirchen
081a9404cd
blaze822: blaze822_addr: fix parsing of () at end of string
...
Found by lhynes.
6 years ago
Leah Neukirchen
bb80642b70
msed: improve zero initialization
6 years ago
Leah Neukirchen
58365527e4
t: update links
6 years ago
Duncaen
c8ce6d220c
magrep: fix use of uninitialized memory
...
found by -fsanitize=memory
6 years ago
Duncaen
74d8393fdf
msed: fix use of uninitialized memory
...
found by -fsanitize=memory
6 years ago
Leah Neukirchen
11ae5504fd
blaze822: blaze822_addr: don't read over the trailing nul byte when resolving \
6 years ago
Leah Neukirchen
9dfbf48be4
blaze822: blaze822_addr: take care of string end in comments inside <
6 years ago
Leah Neukirchen
3a97df9990
mmime: print_header: fix for empty lines
6 years ago
Leah Neukirchen
01b2f1abc6
blaze822: blaze822_addr: skip remaining characters when token is full, also with [
6 years ago
Leah Neukirchen
5a8bb16289
blaze822: blaze822_addr: skip remaining characters when token is full
6 years ago
Leah Neukirchen
5fc3115c3f
blaze822: blaze822_addr: don't drop last char when comment is not closed
...
Found by duncaen with afl.
6 years ago
Leah Neukirchen
3d3fffd7e8
blaze822: blaze822_addr: fix reading over the end of address if it ends with , or ;
...
Found by duncaen with afl.
6 years ago
Leah Neukirchen
3f2c714b42
blaze822: safe_append: fixes for various border cases
...
This fixes dstmax == dstlen and when src is completely full.
Found by duncaen with afl.
6 years ago
Leah Neukirchen
f8fa6a1e0e
mdirs: add -0 to separate folders by NUL characters
...
Idea by Mario Domgoergen <mdom@taz.de>.
Closes #159 .
6 years ago
Leah Neukirchen
085138d6a2
mdeliver: work around macOS, which doesn't implement POSIX.1-2008 stat fields
6 years ago
Leah Neukirchen
cb0ffbf6ad
rfc2231: fix memleak
...
Found by clang 7.0.1.
6 years ago
Leah Neukirchen
6ea32480f1
blaze822: blaze822_mmap: fix memleak
...
Found by clang 7.0.1.
6 years ago
Leah Neukirchen
4198cd42fa
blaze822: blaze822_mem: fix memleak
...
Found by clang 7.0.1.
6 years ago
Leah Neukirchen
4e9237f921
mdeliver: clean up logic
6 years ago
Leah Neukirchen
65ddebc87c
mrefile: don't open the file when renaming is enough
6 years ago
Leah Neukirchen
bccacce816
mrefile: try using rename first, when possible
6 years ago
Leah Neukirchen
8d09a5339e
mdeliver: preserve mtime in mrefile
6 years ago
Leah Neukirchen
b85c56f30c
mdeliver: free msg opened for getting timestamp
6 years ago
Leah Neukirchen
2c14e800cd
NEWS.md: add release date
6 years ago
Duncaen
cfba3e1c3b
mpick: fix off-by-one in parse_string (expression parsing)
6 years ago
Leah Neukirchen
820c07b7e4
NEWS.md: update
6 years ago
codesoap
33a6c48fb6
mcom: Quote one more variable
6 years ago
codesoap
d164496e09
mcom: Quote two more variables
...
Before quoting these two variables I experienced problems when
trying to use the "encrypt" option while using mcom.
6 years ago
Leah Neukirchen
1aa4977f71
mcom: decode address for Reply-To: and To: header
...
mmime will recode again if required.
6 years ago
Leah Neukirchen
9d280aa8a3
mcom: do_mime: fix for loop quoting
6 years ago
codesoap
5bd1ef9cff
contrib/mencrypt: Quote variables whenever possible
6 years ago
codesoap
1dd3415085
mless: Quote variables whenever possible
6 years ago
codesoap
d68287aae5
mcom: Quote variables and subshells whenever possible
6 years ago
Leah Neukirchen
237ad8a2f3
mmime: print_header: use signed variable for linelen
6 years ago
Leah Neukirchen
adb5850983
blaze822: safe_append: avoid different signedness in comparison
6 years ago
Leah Neukirchen
6645e80324
mdeliver: force mode 0600 for pipes (BSD gives 0000 here by default)
6 years ago
Leah Neukirchen
5a2c6747b6
mcom: check if mail is formatted sensibly
6 years ago
Leah Neukirchen
79434e45db
msed: allow final empty command
6 years ago
Leah Neukirchen
763be1967c
mflag.1: tweak description
6 years ago
Vincent Breitmoser
8e4ed10b6c
mshow: put message-id into env, if available
...
Closes : #135 [via git-merge-pr]
6 years ago