about summary refs log tree commit diff
path: root/mdeliver.c
Commit message (Collapse)AuthorAgeFilesLines
* include strings.h for str(n)casecmpMichael Forney2020-09-251-0/+1
| | | | | | These POSIX functions are declared in strings.h, so include this header explicitly instead of relying on the libc's default feature-test macros to include it through string.h.
* pledge(2) all programsTim Kuijsten2020-09-061-0/+3
| | | | | | | | | | | | | | | | 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]
* mdeliver: better usage when multiple arguments are givenLeah Neukirchen2019-07-081-4/+3
|
* mdeliver: add fallback to utimes for systems that don't have utimensatLeah Neukirchen2019-03-281-0/+8
| | | | Namely, macOS before 10.13.
* mdeliver: work around macOS, which doesn't implement POSIX.1-2008 stat fieldsLeah Neukirchen2019-02-111-0/+4
|
* mdeliver: clean up logicLeah Neukirchen2019-02-101-7/+5
|
* mrefile: don't open the file when renaming is enoughLeah Neukirchen2019-02-101-22/+49
|
* mrefile: try using rename first, when possibleLeah Neukirchen2019-02-101-5/+17
|
* mdeliver: preserve mtime in mrefileLeah Neukirchen2019-02-101-0/+10
|
* mdeliver: free msg opened for getting timestampLeah Neukirchen2019-02-101-0/+1
|
* mdeliver: force mode 0600 for pipes (BSD gives 0000 here by default)Leah Neukirchen2019-02-031-0/+2
|
* mdeliver: keep permissions of message for freshly created filesLeah Neukirchen2018-12-191-1/+6
|
* mrefile: better error message on ENOENTLeah Neukirchen2018-10-301-2/+6
|
* mdeliver: fix stray whitespaceLeah Neukirchen2018-07-081-2/+2
|
* mdeliver: improve message when not delivering to a maildirLeah Neukirchen2018-06-091-0/+2
|
* mdeliver: more careful Status: parsingLeah Neukirchen2018-06-081-8/+9
|
* mdeliver: recognize CRLF empty line after headerLeah Neukirchen2018-06-081-1/+2
|
* mrefile: don't default to current messageLeah Neukirchen2018-04-231-1/+1
|
* mdeliver: add refiling capabilityLeah Neukirchen2018-04-171-0/+61
|
* mdeliver: styleLeah Neukirchen2018-04-171-2/+1
|
* styleLeah Neukirchen2017-08-311-7/+7
|
* mdeliver: don't increment line buffer of getdelimLeah Neukirchen2017-06-191-2/+3
|
* mdeliver: cast printing of time_tLeah Neukirchen2017-05-271-1/+2
|
* mdeliver: fix error stringDuncaen2017-05-261-1/+1
|
* use getdelim instead of getlineChristian Neukirchen2016-09-051-2/+2
| | | | Avoids weird macros to build on FreeBSD.
* mdeliver: parse both Status: and X-Status:, then drop themChristian Neukirchen2016-08-191-12/+27
|
* mdeliver: deliver to new/ by default, use -c for cur/ nowChristian Neukirchen2016-08-191-7/+6
|
* mdeliver: typoChristian Neukirchen2016-08-011-1/+1
|
* mdeliver: add usageChristian Neukirchen2016-07-261-1/+4
|
* add mdeliverChristian Neukirchen2016-07-261-0/+200