summaryrefslogtreecommitdiff
path: root/usr.bin/mail
AgeCommit message (Collapse)Author
2015-01-24Fix getopt string; the -N flag doesn't take an argument.Todd C. Miller
From Matthew Clarke
2015-01-22Only allow the -r flag when sending a message; from Martin BrandenburgTodd C. Miller
2015-01-20tweak previous;Jason McIntyre
2015-01-20Add support for the "-r fromaddr" flag now that we don't supportTodd C. Miller
sendmail flags on the command line. Also allow "from" to be set in mailrc. Use sendmail's "-t" flag when executing sendmail instead of specifying the list of recipients in argv. The "-f" flag will be used to set the from address if specified.
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2015-01-07It is the copy command that is abbreviated as 'c', not chdir.Todd C. Miller
Also document that cd is an alias for chdir. From Kaspars Bankovskis.
2015-01-07Document the '=' command; from trondd at gmailTodd C. Miller
2014-12-16Don't pass options after the to address to sendmail. The onlyTodd C. Miller
legitiate use of this is to set the sender name which should be handled specifically by a different option.
2014-12-16Add new "expandaddr" flag (disabled by default) to enable recipientTodd C. Miller
address expansion and document it. Previously, this behavior was always enabled. Also document how address expansion is performed, which used to only be described in the (no longer installed) Mail Reference Manual. CVE-2014-7844
2014-12-16Use glob() to expand filenames instead of passing it to the shell'sTodd C. Miller
echo command for expansion which could result in arbitrary command execution. CVE-2004-2771
2014-11-24Change "will write" back to "writes" in -f description. From jmc@Todd C. Miller
2014-11-24The handling of the -f option is a hack. Instead of fooling aroundTodd C. Miller
with argv behind getopt()'s back we can just treat the remainder of argv[] after option processing as the file name for -f. It is not possible to use -f in sending mode so there is no ambiguity. OK tobias@
2014-11-24Remove undocumented and obsolete -T option. It was intended forTodd C. Miller
use with old netnews. OK sobrado@ tobias@
2014-10-26Prefer mkostemp(O_CLOEXEC) over mkstemp()+fcntl(F_SETFD)Philip Guenther
Prefer fopen("re") over fopen("r")+fcntl(F_SETFD) ok otto@ millert@
2014-08-15Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)Philip Guenther
on it, simplifying error checking, reducing system calls, and improving thread-safety for libraries. ok miod@
2014-07-22Repair two deep targets mistakenly called as afterinstall, ratherTheo de Raadt
than distribution. These would modify files in /etc, part of the base set, but still... that makes it harder to discern their sets placement.
2014-05-20Use errc/warnc to simplify code.Philip Guenther
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2014-03-27make this page less sendmail-centric; ok gillesJason McIntyre
2014-03-16lint is dead (long live the lint!), so stop using it as a cpp conditionalPhilip Guenther
(namespace pollution!) or talking about its opinion on code. ok krw@
2014-03-10pedantic word change;Jason McIntyre
2014-01-20Obvious .Xr fixes, found while testing mandocdb(8).Ingo Schwarze
2014-01-17ctype and other sign extension fixes.Okan Demirmen
with deraadt and millert, ok millert
2014-01-08flesh out STANDARDS somewhat; help/ok sobradoJason McIntyre
this was also ok millert some time ago
2013-07-18document the :c selectors; from Sunil NimmagaddaJason McIntyre
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2012-11-14use F_OK macro instead of 0 in access() when checking by file existence. ↵Gleydson Soares
make the code easier to read. no functional change. OK millert@
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
for chars.
2010-11-07more EXIT STATUS bits; from Daniel DickmanJason McIntyre
2010-01-10remove references to docs we no longer install;Jason McIntyre
2010-01-04Stop installing many of the incredibly dated and un-authoritative share/docTheo de Raadt
files. If any information found in these documents is worthwhile and you miss it, please make the time to work it into the manual pages (which people actually do read). ok guenther
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-09-05Fixed typo in comment.Tobias Stoeckmann
ok millert
2009-07-29- ~<, ~_ are undocumented aliases of ~r, ~:Martynas Venckus
- missing documentation for ~. - use compact list, and .Pp. so that aliases could be listed - reformat to fit aliases in tilde help with help & ok jmc@, sobrado@, millert@
2009-07-28remove core / tilde C. it's useless, doesn't work, never has beenMartynas Venckus
documented, ^\ should be used instead. ok millert@
2009-07-23elide a little bit later, the final list, after From has beenMartynas Venckus
appended. properly removes if there's a dup in from & to. ok millert@
2009-04-23document the "more" command in the help page; ok millertTheo de Raadt
2009-02-10mark these utilities as being largely posix compliant or, in the case ofJason McIntyre
nm, as not being posix compliant;
2008-11-03...and then sync tildehelp and mail9.nr;Jason McIntyre
2008-11-03update the tilde escapes for both these files,Jason McIntyre
and try and keep them in a similar format/order;
2008-11-03poor USD docs, we always forget you! ...document ~xJason McIntyre
2008-11-03add ~x; which is quite handy sometimes. per posixMartynas Venckus
man page tweak&ok jmc@. ok millert@
2008-10-09- add -d to usageJason McIntyre
- sync -f arg name with man page synopsis
2008-10-08document -d. ok millert@Martynas Venckus
2008-08-05fix description of the mail(1) "p" command; from Aaron W. Hsu.Igor Sobrado
ok martynas@
2008-08-03make U (abbreviation of unread) work as man page saysMartynas Venckus
ok millert@, jmc@. sure theo
2008-07-16'no subject' check is never triggered. check if it's actually emptyMartynas Venckus
ok millert@
2008-07-16add -E flag and 'skipempty' option to skip sending messages withMartynas Venckus
empty bodies. useful for sending mails from crontabs. from rivo nurges <rix at estpak dot ee>, with missing 'skipempty' documentation and usage update from me ok millert@
2008-07-16man page tweaks:Martynas Venckus
- for argument of -f flag, name -> file - document TMPDIR, better description from millert@ ok millert@
2008-07-16- use strncmp/strncasecmp instead of comparing by characterMartynas Venckus
- simplify istrlcpy, no need to check for isupper - line[0] is redundant, because strcasecmp will take care of it ok millert@
2008-07-16- err with the pathbuf, if we know itMartynas Venckus
- use tmpdir instead of /tmp ok millert@