summaryrefslogtreecommitdiff
path: root/usr.bin/mail/main.c
Commit message (Collapse)AuthorAgeFilesLines
* mail/gprof/tip: tap with the ugly stickKyle Evans2020-04-061-0/+43
| | | | | | | | | | | | | | | | | | The ugly stick here is this bit in the respective headers: #ifndef EXTERN #define EXTERN extern #endif with a follow-up #define EXTERN in a single .c file to push all of their definitions into one spot. A pass should be made over these three later to push these definitions into the correct files instead, but this will suffice for now and at a more leisurely pace. MFC after: 3 days Notes: svn path=/head/; revision=359680
* 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
* Add const to the copyright variableBaptiste Daroussin2015-06-061-1/+1
| | | | | | | Bump WARNS to level 2 Notes: svn path=/head/; revision=284070
* Touch up some more small typos missed in the previous round.Ulrich Spörlein2012-01-051-1/+1
| | | | | | | Reported by: Ben Kaduk <minimarmot@gmail.com> et al. Notes: svn path=/head/; revision=229655
* Spelling fixes for usr.bin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228992
* In usr.bin/mail/cmd1.c, use the correct printf length modifier for aDimitry Andric2011-12-171-1/+1
| | | | | | | | | ptrdiff_t. In usr.bin/mail/main.c, cast a field width to int. MFC after: 1 week Notes: svn path=/head/; revision=228647
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-191-6/+3
| | | | 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
* Use static storage-class specifier where appropriate.Diomidis Spinellis2007-11-081-1/+1
| | | | | | | Found by: CScout Notes: svn path=/head/; revision=173439
* Sync usage screen with manpage.Yaroslav Tykhiy2005-10-071-7/+6
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=151053
* Add the -e (mail presence test), -H (header summary mode), and -FMike Heffner2004-02-291-5/+43
| | | | | | | | | | | (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
* Sync with most of NetBSD's changes, including:Mike Heffner2001-12-181-8/+10
| | | | | | | | | | | | | | | | | | | | *) 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-5/+11
| | | | | | | | | | | 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
* Nuke unused variables.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78737
* Respect REPLYTO in mailrc.Mike Heffner2001-06-141-4/+2
| | | | | | | | | 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-31/+30
| | | | | | | | | | | | 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-22/+19
| | | | | | | | | | | | | | | | | | | 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
* Ignore the MAIL environment variable when the -u flag is set.Jean-Marc Zucconi1999-05-201-0/+1
| | | | | | | PR: bin/8665 Notes: svn path=/head/; revision=47346
* Teach boring old mail(1) about the use of the REPLYTO environmentJoerg Wunsch1998-01-021-3/+6
| | | | | | | | | | | | | 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
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Allow mail(1) to look for multiple mail.rc files.Jordan K. Hubbard1996-12-211-2/+14
| | | | | | | Submitted-By: Lyndon Nerenberg VE7TCP <lyndon@orthanc.com> Notes: svn path=/head/; revision=20778
* Simplistic conversion of mail to use termios instead of sgtty.Peter Wemm1996-08-191-5/+8
| | | | Notes: svn path=/head/; revision=17678
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+296
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590