aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mail
Commit message (Collapse)AuthorAgeFilesLines
* mail(1): Minor declaration updates.Pedro F. Giffuni2016-07-151-1/+1
| | | | | | | Missing from r302903. Notes: svn path=/head/; revision=302914
* mail(1): Avoid closing negative file descriptors.Pedro F. Giffuni2016-07-152-2/+6
| | | | | | | | CID: 1008105, 1008106 MFC after: 1 week Notes: svn path=/head/; revision=302911
* mail(1): Update more prototypes.Pedro F. Giffuni2016-07-156-96/+123
| | | | | | | | | | Also rename delete and undelete_messages to deletecmd and undeletecmd respectively in an attempt to sync with other BSDs. Obtained from: OpenBSD Notes: svn path=/head/; revision=302903
* mail(1): check for out of memory conditions when calling calloc(3).Pedro F. Giffuni2016-07-141-1/+2
| | | | | | | X-MFC with: r302771 Notes: svn path=/head/; revision=302845
* mail(1): Bring some fixes from other BSDs.Pedro F. Giffuni2016-07-141-9/+18
| | | | | | | | | Fix missing forked job changes from r302776 in wait_child(). Obtained from: NetBSD Notes: svn path=/head/; revision=302799
* mail(1): Bring some fixes from other BSDs.Pedro F. Giffuni2016-07-138-69/+99
| | | | | | | | | | | | - Use varargs properly - Use pid_t - Better handling of error conditions on forked jobs. - Some prototype and warning cleanups. Obtained from: NetBSD (some originaly from OpenBSD) Notes: svn path=/head/; revision=302776
* mail(1): check for out of memory conditions when calling calloc(3).Pedro F. Giffuni2016-07-131-3/+6
| | | | | | | | Suggested by: oshogbo MFC after: 3 days Notes: svn path=/head/; revision=302771
* Use _PATH_DEVNULL instead of hardcoding.Xin LI2016-07-111-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=302542
* mail(1): Fix a comment.Pedro F. Giffuni2016-07-111-1/+1
| | | | | | | Obtained from: NetBSD (CVS Rev 1.29) Notes: svn path=/head/; revision=302533
* mail(1): Invert calloc(3) argument order.Pedro F. Giffuni2016-07-102-3/+3
| | | | | | | | | calloc(3) is documented to have first a number and then a size. Obtained from: OpenBSD (through NetBSD) Notes: svn path=/head/; revision=302511
* Always return either a dynamically allocated string or NULL fromDon Lewis2016-05-131-2/+2
| | | | | | | | | | | | | expand(). Never return the name parameter, which could be a the buf[] buffer which is allocated on the stack by getdeadletter() and which would then be used after getdeadletter() has returned. Reported by: Coverity CID: 1199383 MFC after: 1 week Notes: svn path=/head/; revision=299591
* mail: Don't truncate mtime of mailbox to microseconds.Jilles Tjoelker2016-04-171-9/+9
| | | | Notes: svn path=/head/; revision=298157
* Fix naive use of ftell(3).Pedro F. Giffuni2016-02-161-1/+1
| | | | | | | Secure coding practices, FIO19-C. Notes: svn path=/head/; revision=295675
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge from head@274682Simon J. Gerraty2014-11-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2013-09-051-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ sync from headSimon J. Gerraty2013-04-121-2/+2
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Add const to the copyright variableBaptiste Daroussin2015-06-062-2/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump WARNS to level 2 Notes: svn path=/head/; revision=284070
* | | | | Always check the limits of array index variables before using them.Pedro F. Giffuni2014-08-211-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: DragonFlyBSD MFC after: 1 week Notes: svn path=/head/; revision=270256
* | | | Remove unnecessary cast to pid_t.Kevin Lo2013-07-041-1/+1
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=252679
* | | Fix undefined behaviour in usr.bin/mail/util.c.Dimitry Andric2013-02-151-2/+2
| |/ |/| | | | | | | | | | | | | Reported by: deeptech71@gmail.com MFC after: 3 days Notes: svn path=/head/; revision=246860
* | Rework all non-contributed files that use `struct timezone'.Ed Schouten2012-09-011-1/+1
|/ | | | | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead. Notes: svn path=/head/; revision=239991
* Fix likely race condition if wait_child() is interrupted by sigchild()Eitan Adler2012-05-301-1/+3
| | | | | | | | | | PR: bin/102834 Submitted by: Andreas Longwitz <longwitz@incore.de> Approved by: cperciva MFC after: 2 weeks Notes: svn path=/head/; revision=236286
* fgets(3) returns a pointer, so compare against NULL, not integer 0.Kevin Lo2012-01-131-1/+1
| | | | Notes: svn path=/head/; revision=230044
* Touch up some more small typos missed in the previous round.Ulrich Spörlein2012-01-052-2/+2
| | | | | | | Reported by: Ben Kaduk <minimarmot@gmail.com> et al. Notes: svn path=/head/; revision=229655
* Spelling fixes for usr.bin/Ulrich Spörlein2011-12-303-3/+3
| | | | Notes: svn path=/head/; revision=228992
* In usr.bin/mail/cmd1.c, use the correct printf length modifier for aDimitry Andric2011-12-172-2/+2
| | | | | | | | | ptrdiff_t. In usr.bin/mail/main.c, cast a field width to int. MFC after: 1 week Notes: svn path=/head/; revision=228647
* Replace __const by const in all non-contributed source code.Ed Schouten2011-12-132-2/+2
| | | | | | | | | As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use `const' in different placed as well. Notes: svn path=/head/; revision=228468
* o Fix -u flag description: it takes a username as an argument.Maxim Konovalov2010-12-251-1/+1
| | | | | | | | | PR: docs/153416 Submitted by: Eitan Adler MFC after: 1 week Notes: svn path=/head/; revision=216698
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-1920-470/+204
| | | | Notes: svn path=/head/; revision=216564
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-191-33/+18
| | | | Notes: svn path=/head/; revision=216562
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-1129-116/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Move most of the remaining USD/PSD/SMM papers into share/docUlrich Spörlein2010-12-0411-2936/+0
| | | | Notes: svn path=/head/; revision=216178
* mail(1) misses addresses when replying to allUlrich Spörlein2010-05-271-3/+4
| | | | | | | | | | | | | | | | | | There's a parsing error for fields where addresses are not separated by space. This is often produced by MS Outlook, eg.: Cc: <foo@bar.com>,"Mr Foo" <foo@baz.com> The following line now splits into the right tokens: Cc: f@b.com,z@y.de, <a@a.de>,<c@c.de>, "foo" <foo>,"bar" <bar> PR: bin/131861 Submitted by: Pete French <petefrench at ticketswitch.com> Tested by: Pete French Reviewed by: mikeh MFC after: 2 weeks Notes: svn path=/head/; revision=208592
* Change all our own code to use st_*tim instead of st_*timespec.Ed Schouten2010-03-281-1/+1
| | | | | | | Also remove some local patches to diff(1) which are now unneeded. Notes: svn path=/head/; revision=205793
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Rename mail(1)'s aux.c to util.c.Ed Schouten2009-01-162-2/+2
| | | | | | | | | | | The name `aux' is reserved on Windows file systems. aux.c in the mail(1) directory contains some random utility functions. I'm renaming this file to util.c to make it possible to check out this directory on Windows. MFC after: 1 month Notes: svn path=/head/; revision=187331
* Use static storage-class specifier where appropriate.Diomidis Spinellis2007-11-084-10/+10
| | | | | | | Found by: CScout Notes: svn path=/head/; revision=173439
* Make function's definition follow its declared visibility.Diomidis Spinellis2007-11-081-1/+1
| | | | | | | Found by: CScout Notes: svn path=/head/; revision=173438
* o Really commit typo fixes to HEAD.Maxim Konovalov2007-03-251-1/+1
| | | | | | | | PR: docs/110809 Submitted by: naddy Notes: svn path=/head/; revision=167879
* Document the TMPDIR environment variable.Diomidis Spinellis2006-01-051-1/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=154052
* Sync usage screen with manpage.Yaroslav Tykhiy2005-10-071-7/+6
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=151053
* Document the -d flag to mail(1) better, which comes handy whenYaroslav Tykhiy2005-10-071-6/+15
| | | | | | | | | | | | you want to see, e.g., sendmail arguments mail(1) will use. -H is not an independent flag, it's a modifier. Also explicitly say that -H will cause mail(1) to exit as soon as it prints the headers. MFC after: 5 days Notes: svn path=/head/; revision=151052