aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mail/send.c
Commit message (Collapse)AuthorAgeFilesLines
* mail: Exit non-zero on failure to collect mail.Dag-Erling Smørgrav2025-04-291-1/+3
| | | | | | | | | | While here, avoid non-portable `pipe2()` in the regression test. Fixes: 59597032c948 MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D50069
* usr.bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-3/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* mail: Use a C89 function pointer type for command functions.John Baldwin2023-04-181-1/+1
| | | | | | | | | The command function is defined to always take a void *. Functions which accept a pointer to an array of pointers use a local temporary 'argv' assigned from the void *arg. Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39527
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Always initialize 'c'.Xin LI2017-01-231-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312664
* When creating record file, use umask 077 instead of the default.Xin LI2017-01-231-1/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312663
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-191-35/+12
| | | | Notes: svn path=/head/; revision=216564
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+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
* Add the -e (mail presence test), -H (header summary mode), and -FMike Heffner2004-02-291-2/+26
| | | | | | | | | | | (message save as first recipient) options for standards conformance. Submitted by: Wartan Hachaturow <wart@tepkom.ru> (with some changes) PR: standards/61934 Notes: svn path=/head/; revision=126415
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* Add missing {} to 'for'. It fix coredump (result of NetBSD changes merge)Andrey A. Chernov2001-12-191-1/+2
| | | | Notes: svn path=/head/; revision=88229
* Add (unsigned char) cast to ctype macrosAndrey A. Chernov2001-12-191-2/+2
| | | | | | | | | | ftell->ftello, fseek->fseeko File 'newsize' type int->off_t Add visible (long) cast to fsize() when it called to small one message file and result is assigned to long. Notes: svn path=/head/; revision=88227
* Sync with most of NetBSD's changes, including:Mike Heffner2001-12-181-6/+18
| | | | | | | | | | | | | | | | | | | | *) Sync with 4.4BSD-Lite2 *) Set usecs for utimes() *) Add 'inc' command and 'autoinc' option that check for new mail manually and automatically, respectively *) Use POSIX signal handling and tty semantics *) Handle long lines correctly when paging messages *) Add ability to explicitly search 'To:' line *) Various manpage cleanups *) Support overriding '~/.mailrc' with $MAILRC *) Support 'askbcc' and 'asksub' options *) Fix various bugs Reviewed by: ru (mail.1) Obtained from: NetBSD Notes: svn path=/head/; revision=88150
* Add the -E flag to not send messages that have an empty body. This isMike Heffner2001-06-281-0/+2
| | | | | | | | | | | useful for piping cron script error output by mail. PR: bin/9494 Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=78904
* Respect REPLYTO in mailrc.Mike Heffner2001-06-141-2/+1
| | | | | | | | | PR: bin/8322 Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> MFC after: 2 weeks Notes: svn path=/head/; revision=78193
* Cleanup mail(1)'s varying styles by converting to using style(9).Mike Heffner2001-05-271-111/+108
| | | | | | | | | | | | Also take a stab at cleaning up BDECFLAGS and convert all uses of NOSTR, NIL, NONE, NOVAR, NOGRP, NOGE to NULL. Also kill 'register' to get diffs somewhat closer to OpenBSD/NetBSD. There are no functional changes however. Reviewed by: nra (visual inspection) Notes: svn path=/head/; revision=77274
* Merge various changes from OpenBSD and NetBSD.Mike Heffner2001-03-251-18/+29
| | | | | | | | | | | | | | | | | | | o remove panic() in favor of err(3) and use err(3) functions consistently throughout o use stat(2)'s S_IS* macros rather than S_IF* o [r]index -> str[r]chr o convert some static buffers to dynamic ones o use real tempfiles rather than reopening the same templates o rename some functions that clash with libc o convert wait_status from union to int and use wait(2) status macros o fix multiple potential buffer overflows o fix a few comments o add $FreeBSD$ Reviewed by: nra, nectar (earlier version) Notes: svn path=/head/; revision=74769
* PR: bin/8250Peter Hawkins1998-10-101-1/+1
| | | | | | | protect against buffer overruns in mail temporary files. Notes: svn path=/head/; revision=40171
* Fix a style bug, and a real bug (&& vs. & misused).Joerg Wunsch1998-01-041-3/+4
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=32234
* Teach boring old mail(1) about the use of the REPLYTO environmentJoerg Wunsch1998-01-021-3/+12
| | | | | | | | | | | | | variable which is de-facto standard for MUAs. Teach bomail to generate an in-reply-to header so threading MUAs and mail->news gateways won't lose context. While i was at it, removed two gratuitous standard violations for functions starting with an underscore. Notes: svn path=/head/; revision=32189
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8874
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+556
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590