History log of /netbsd/usr.bin/mail/head.c (Results 1 – 24 of 24)
Revision Date Author Comments
# 18262081 16-Jan-2013 christos <christos@NetBSD.org>

From: Steffen "Daode" Nurpmeso:

Amend the previous commit to support zone-style RFC 822 dates.
RFC 5322 marks this zone-style as obsolete (obs-zone), but still supports it.
But then, even if you do

From: Steffen "Daode" Nurpmeso:

Amend the previous commit to support zone-style RFC 822 dates.
RFC 5322 marks this zone-style as obsolete (obs-zone), but still supports it.
But then, even if you don't wanna support military style single-letter zones,
the UT zone exists and will not be supported by this commit.

The changes here are not strictly correct (since not all possible
single-letter zones are assigned, and only *UT* has two letters),
but which will match all thre possible *obs-zone* forms.
Compiled and tested on a single MBOX.

show more ...


# a790f31f 15-Jan-2013 christos <christos@NetBSD.org>

PR/47453: Martin Branderburg: Mail (mail, mailx) does not recognize messages
which have RFC 822 format dates.
XXX: Pullup 6


# ad5b0ea0 01-Dec-2012 mbalmer <mbalmer@NetBSD.org>

Fix misspelling: accommodate is a long enough word to have room for two 'c's
and two 'm's.


# d727506f 23-Oct-2007 christos <christos@NetBSD.org>

From Anon Ymous:
- Introduce date_to_tm() and hl_date_to_tm() to parse the date and
headline date a bit more efficiently.
- If 'tm_isdst' is determined, let strftime(3) handle the '%Z' and
'%z' f

From Anon Ymous:
- Introduce date_to_tm() and hl_date_to_tm() to parse the date and
headline date a bit more efficiently.
- If 'tm_isdst' is determined, let strftime(3) handle the '%Z' and
'%z' formats. Otherwise, output "-0000" and "???", respectively, to
help preserve with alignment; strftime(3) will output an empty
string in these case.
- Change fail() to use the '-d' flag (which sets the 'debug' variable)
rather than the "debug" _environment_ variable. This is more
consistent with other warnings.
- Don't use gcc C extensions, e.g., "case LOW ... HIGH:".
- Define is_WSP() in def.h to be an inline function that for checks
whitespace (WSP = ' ' or '\t'), as defined in RFC 2822. Use it
consistently in place of isblank().
- For consistency, rename skip_blank() to skip_WSP().
- Add inline skip_space() to complement skip_blank() (now skip_WSP).
- Check all ctype(3) calls for argument range issues.
- Whitespace and comment cleanup/changes.

show more ...


# f3098750 28-Nov-2006 christos <christos@NetBSD.org>

From Anon Ymous:

1) Statification of modules.

2) Implement the 'detach' and 'Detach' commands for extracting mime
parts from messages.

3) Teach mail to output "In-Reply-To" and "References" hea

From Anon Ymous:

1) Statification of modules.

2) Implement the 'detach' and 'Detach' commands for extracting mime
parts from messages.

3) Teach mail to output "In-Reply-To" and "References" header fields
when replying so others can thread us.

4) Implement threading, sorting, and tagging, supported by the
following commands: 'flatten', 'reverse', 'sort', 'thread',
'unthread', 'down', 'tset', 'up', 'expose', 'hide', 'tag',
'untag', 'invtags', 'tagbelow', 'hidetags', 'showtags'.
See the manpage for details (when available - soon).

5) Implement a 'deldups' command to delete duplicate messages based on
their "Message-Id" field, e.g., in replies to a mailing list that
are also CCed to a subscriber. (This can also be accomplished with
the threading and tagging commands.)

6) Implement 'ifdef' and 'ifndef' commands, and make the conditionals
nestable (i.e., implement a conditional stack). The if/else/endif
commands existed before, but they were primitive and undocumented.
The 'if' command currently recognizes the "receiving", "sending",
and "headersonly" mode keywords.

7) Teach the message selecting routine to understand regular
expressions if "regex-search" is defined. Otherwise only case
insensitive substring matches are done (as in the past).

8) Teach the message selection routine to understand boolean
expressions. Improved "colon-modifier" support. See the manpage
for details (when available - soon).

9) Extend paging to all commands (where relevant).

10) Add shell like piping and redirection of (standard) output (if
"enable-piping" is defined). Extend completion to these contexts.

11) The manpage should follow soon!!!!

show more ...


# 1665d5e9 24-Nov-2006 christos <christos@NetBSD.org>

fix spelling of accommodate; from Zapher.


# 798fbc60 31-Oct-2006 christos <christos@NetBSD.org>

More fixes from Anon Ymous:


1) Removed the -B flag (it was stupid on my part) and added a short
description indicating how to accomplish the same thing under the
"Sending Mail" section of man

More fixes from Anon Ymous:


1) Removed the -B flag (it was stupid on my part) and added a short
description indicating how to accomplish the same thing under the
"Sending Mail" section of man mail(1).

2) Added a -H flag to dump the headers and exit. It takes optional
flags to restrict to old, new, read, unread, and deleted messages
(the later being kind of useless - it shares code with something
that already had it).

3) Restored the 'Save' command which somehow got mistakenly removed in
the last commit and add documentation for it! (My apologies to
its author.)

4) Added a 'mkread' command to mark messages as read (the inverse of
'unread'). Should we also have a 'mknew' command?

5) Added a 'smopts' command to keep a database of addresses and
sendmail options to be used when sending messages to those
addresses. See man mail(1) for a fuller description.

6) Added 'indentpreamble' and 'indentpostscript' variables whose
values are inserted before and after a quoted message (~m or ~M
escapes).
=20
7) Added string formatting abilities for the 'prompt', 'insertpreamble',
'insertpostscript', and header display strings. These strings
support all the strftime() format parameters as well as many more
specific to mail (see man mail(1)).

8) Fix the -a flag so that it only takes a single filename, unless
"mime-attach-list" is defined. This is more conventional and avoids
unexpected whitespace issues.

show more ...


# 1aa136c1 22-Oct-2006 mrg <mrg@NetBSD.org>

mail/head.c: make the previous delta only apply if FMT_PROG is not defined
fmt/Makefile: define FMT_PROG.


# 8207b28a 21-Oct-2006 christos <christos@NetBSD.org>

From our anonymous user:
- mime and character set handling
- command line editor and completion
- many code improvements


# ed70dac6 05-Jan-2006 christos <christos@NetBSD.org>

add more const


# ca286310 19-Jul-2005 christos <christos@NetBSD.org>

Pass lint completely.


# ece0fd5c 19-Jul-2005 christos <christos@NetBSD.org>

WARNS=3


# 89aaa1bb 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.


# ab850155 04-Mar-2002 wiz <wiz@NetBSD.org>

Don't use special null string pointer (NOSTR), just use NULL.


# 024b4622 02-Mar-2002 wiz <wiz@NetBSD.org>

Rename a variable to avoid shadowing.


# f2ed2383 02-Mar-2002 wiz <wiz@NetBSD.org>

ANSIfy.


# dcc0ef75 19-Dec-1998 christos <christos@NetBSD.org>

char -> unsigned char


# 7c81c8f3 19-Oct-1997 lukem <lukem@NetBSD.org>

WARNSify, fix .Nm usage, deprecate register, use <err.h>


# 19d35cbc 28-Dec-1996 tls <tls@NetBSD.org>

Sync with 4.4BSD-Lite2


# 88b833a7 08-Jun-1996 christos <christos@NetBSD.org>

- Fix PR/105: Implement dot locking protocol and check return value of flock.
- Fix PR/2247: Don't call unknown users "ubluit". Issue an error message.
- Fix/add prototypes.
- Fix warnings.
- Use POS

- Fix PR/105: Implement dot locking protocol and check return value of flock.
- Fix PR/2247: Don't call unknown users "ubluit". Issue an error message.
- Fix/add prototypes.
- Fix warnings.
- Use POSIX signal mask calls.
- RCSid police.

show more ...


# 22db40e0 18-Dec-1994 glass <glass@NetBSD.org>

fix bug 644. report and fix from Jan Sparud <sparud@cs.chalmers.se>. both forwarded on.


# 2cb5542f 29-Jun-1994 deraadt <deraadt@NetBSD.org>

4.4-lite, plus our mods


# e9d867ef 01-Aug-1993 mycroft <mycroft@NetBSD.org>

Add RCS identifiers.


# 61f28255 21-Mar-1993 cgd <cgd@NetBSD.org>

initial import of 386bsd-0.1 sources