summaryrefslogtreecommitdiff
path: root/usr.bin/mail/util.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mail(1): Minor declaration updates.Pedro F. Giffuni2016-07-151-1/+1
| | | | | | | Missing from r302903. Notes: svn path=/head/; revision=302914
* mail: Don't truncate mtime of mailbox to microseconds.Jilles Tjoelker2016-04-171-9/+9
| | | | Notes: svn path=/head/; revision=298157
* 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
* 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
* Add __unused. Ansi prototypes.Philippe Charnier2010-12-191-50/+19
| | | | 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
* 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
* Rename mail(1)'s aux.c to util.c.Ed Schouten2009-01-161-0/+632
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