Commit Graph

11 Commits

Author SHA1 Message Date
Leah Neukirchen
c4008e43d9 mexport: use UTC timestamp in the postmark line 2021-05-09 22:00:32 +02:00
Leah Neukirchen
ce900601cb mexport: default timestamp to unix second 0, not -1
This is better recognizable as "no data".
2021-05-09 22:00:32 +02:00
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.
2021-05-09 22:00:32 +02:00
Tim Kuijsten
4763032430 pledge(2) all programs
All programs except mshow have a very tight set of promises. mshow
has a broad set of promises and might be a good future candidate
to further restrict using unveil(2).

This patch is based on commit 0300a112 by Alex Holst (dated
2017-12-07), which was proposed in GH PR #79.

* pledged mpick, mflow and mdate so that now all programs are pledged
* removed some unneeded promises and added some missing promises
* move err.h include and OpenBSD ifdef into a new xpledge.h
* cleaned up code aligning and whitespace

Closes: #179 [via git-merge-pr]
2020-09-06 16:34:56 +02:00
Leah Neukirchen
66d0eff12f style 2017-08-31 17:30:17 +02:00
Leah Neukirchen
c15ed7a168 mexport: handle return-path without <> 2017-06-24 15:46:00 +02:00
Leah Neukirchen
cbe0a0f955 mexport: < and > are not part of the addr-spec used in From lines 2017-06-19 13:33:44 +02:00
Leah Neukirchen
86793fb262 mexport: support reading from pipes, better error reporting 2017-06-12 15:49:08 +02:00
Leah Neukirchen
2b4e3aa66d clean up whitespace 2017-01-26 20:27:26 +01:00
Christian Neukirchen
472a74b75b use getdelim instead of getline
Avoids weird macros to build on FreeBSD.
2016-09-05 14:20:55 +02:00
Christian Neukirchen
d71a1fbe44 add mexport 2016-08-19 17:53:40 +02:00