mmh
12 years agoFixed path lookup for alias files: ali, send, whatnow.
markus schnalke [Sat, 28 Jan 2012 17:40:02 +0000 (18:40 +0100)]
Fixed path lookup for alias files: ali, send, whatnow.

12 years agoforw/repl/dist annotations won't add address lists anymore.
markus schnalke [Sat, 28 Jan 2012 15:05:54 +0000 (16:05 +0100)]
forw/repl/dist annotations won't add address lists anymore.
spost does not support it and I wonder if we need it.
Remove the undocumented -idanno switch, actually a no-op, from spost.

12 years agoTrivial typesetting fix in man page.
markus schnalke [Sat, 28 Jan 2012 14:21:44 +0000 (15:21 +0100)]
Trivial typesetting fix in man page.

12 years agoRemoved the ATTVIBUG compile option.
markus schnalke [Sat, 28 Jan 2012 12:35:42 +0000 (13:35 +0100)]
Removed the ATTVIBUG compile option.
If you do have the bug, then workaround it like described in the FAQ:

Subject: 06.01 What to do with "Problems with edit - draft removed".
From: John Romine <jromine at ics.uci.edu>
Date: Mon, 1 May 1995 00:00:00 -0800

  If your users are using an AT&T version of "vi", it's exiting with
  non-zero status (supposedly a count of the "errors" during the
  edit). Move "vi" to "broken_vi" and put it its place :

    #! /bin/sh
    /usr/ucb/broken_vi "$@"
    exit 0

  Alternatively, compile MH with the ATTVIBUG option.

  Then complain to your vendor that "vi" is broken, and they shouldfix it.

btw: ex-vi does not have this bug.

12 years agoRemoved EISREMOTE check.
markus schnalke [Sat, 28 Jan 2012 12:10:50 +0000 (13:10 +0100)]
Removed EISREMOTE check.
It's not in POSIX and Google finds only nmh code containing it.
Maybe it was some BSD experiment. Who knows.

12 years agoRemoved the undocumented -unique switches. Seems they were JLR-only stuff.
markus schnalke [Sat, 28 Jan 2012 12:04:59 +0000 (13:04 +0100)]
Removed the undocumented -unique switches. Seems they were JLR-only stuff.

12 years agoRemoved the -width switch from send, spost and repl.
markus schnalke [Sat, 28 Jan 2012 11:54:36 +0000 (12:54 +0100)]
Removed the -width switch from send, spost and repl.
Adressee header fields will always be folded for OUTPUTLINELEN (=72) chars.

12 years agoRemoved options to deactivate dashstuffing. Always dashstuff.
markus schnalke [Sat, 28 Jan 2012 11:26:36 +0000 (12:26 +0100)]
Removed options to deactivate dashstuffing. Always dashstuff.
Maybe there are few RFC 934 messages around, but dashstuffing is IMO
more useful than bad.

12 years agoRemoved unneeded options from send.
markus schnalke [Sat, 28 Jan 2012 11:12:21 +0000 (12:12 +0100)]
Removed unneeded options from send.
Most of them were supported by post but are not by spost.
We don't need them. (More about dashstuffing soon.)

12 years agoRemoved the UCI code to read the signatur (= name) from ~/.signature.
markus schnalke [Wed, 25 Jan 2012 21:56:43 +0000 (22:56 +0100)]
Removed the UCI code to read the signatur (= name) from ~/.signature.
If we want to read something from ~/.signature, then those lines that
form the footer of a mail message. What is called ``signature'' here
is the name of the sender; the name that is put into the From: line.
There are already several options to put it:
- environment variable: SIGNATURE (to change temporary)
- profile entry: Signature: (to set only for the mail system)
- GECOS field in passwd (fallback and global)
These should be enough.

12 years agoRemoved UCI-specific group leader code from conflict(8).
markus schnalke [Wed, 25 Jan 2012 21:38:54 +0000 (22:38 +0100)]
Removed UCI-specific group leader code from conflict(8).

12 years agoRemoved the UCI alternative name of anno(1): `fanno'.
markus schnalke [Wed, 25 Jan 2012 21:36:49 +0000 (22:36 +0100)]
Removed the UCI alternative name of anno(1): `fanno'.
fanno didn't add the date. If you want this, run `anno -nodate'. Hey, you
can create a shell alias for it. What about that? ;-)

12 years agoRemoved the -header option from scan(1).
markus schnalke [Wed, 25 Jan 2012 21:29:34 +0000 (22:29 +0100)]
Removed the -header option from scan(1).
The heading had been very simple since the advent of format strings anyway.
If someone wants a heading, he can run folder(1) before.

12 years agoRemoved (allmost all) JLR-specific code.
markus schnalke [Wed, 25 Jan 2012 21:21:56 +0000 (22:21 +0100)]
Removed (allmost all) JLR-specific code.
There still is one fragment in fmt_scan(), of which I don't understand
the logic. I don't want to remove stuff I don't understand.

12 years agoRemoved LBL compile condition (format: addtoseq).
markus schnalke [Wed, 25 Jan 2012 21:05:07 +0000 (22:05 +0100)]
Removed LBL compile condition (format: addtoseq).

12 years agoRemoved several `#if 0' fragments.
markus schnalke [Wed, 25 Jan 2012 21:00:58 +0000 (22:00 +0100)]
Removed several `#if 0' fragments.
We better don't carry dead code with us, it might start smelling.

12 years agoFinally fixed the annoying `Invalid cross-device link' problem.
markus schnalke [Wed, 25 Jan 2012 12:31:36 +0000 (13:31 +0100)]
Finally fixed the annoying `Invalid cross-device link' problem.
Due to a missing slash (/), temporary files were put into the parent
directory instead of the same one. See:
mhbuild: unable to rename output /home/meillo/Mail/send0zxfDu to
/home/meillo/MailmhbuildzQjMUm: Invalid cross-device link

12 years agoUpdated the man pages to the recent changes.
markus schnalke [Tue, 24 Jan 2012 23:04:05 +0000 (00:04 +0100)]
Updated the man pages to the recent changes.

12 years agoFixed -mime for forw and repl.
markus schnalke [Tue, 24 Jan 2012 23:01:51 +0000 (00:01 +0100)]
Fixed -mime for forw and repl.
If the value of an attachment header starts with `+', then it is treated
as the specification of a message in MH style: ``+folder msg''

12 years agoRemoved the mime command from whatnow and automimeproc (automhnproc).
markus schnalke [Tue, 24 Jan 2012 19:55:15 +0000 (20:55 +0100)]
Removed the mime command from whatnow and automimeproc (automhnproc).
The man pages need to be updated.
repl and forw are broken right now.

12 years agoActivated Jon's attachment system by default and steamlined it.
markus schnalke [Tue, 24 Jan 2012 19:08:35 +0000 (20:08 +0100)]
Activated Jon's attachment system by default and steamlined it.
I had done similar work already some time ago. See:
http://www.mail-archive.com/nmh-workers@nongnu.org/msg02112.html
This time it's the second go.

I changed Jon's attachment system to have a default attachment header
field name, or get it from the profile. I removed the command line options.
The new profile name is: `Attachment-Header'. Stored in attach_fmt.
I removed the the choice between several attachment formats.

A message gets mimeified if it has attachment headers or (and this is new)
contains any non-ASCII character. The body won't be scanned for lines
matching /^#/. The MIME structure is created automatically.

The content-typing of unknown attachments is still poor and needs to
be improved.

You shouldn't use the `mime' command at the whatnow prompt anymore.

12 years agoAdded a comment and a variable initialization.
markus schnalke [Tue, 24 Jan 2012 15:28:36 +0000 (16:28 +0100)]
Added a comment and a variable initialization.

12 years agoFree memory after use in m_draft().
markus schnalke [Thu, 5 Jan 2012 18:24:20 +0000 (19:24 +0100)]
Free memory after use in m_draft().

12 years agoExplicit checks for return values of strcmp().
markus schnalke [Thu, 5 Jan 2012 18:18:12 +0000 (19:18 +0100)]
Explicit checks for return values of strcmp().
The return value of strcmp() is unintuitive for string equality tests.
I prefer explicit comparisions against 0. I changed this everywhere.

12 years agoRemoved isprefix() and replaced it with strncmp().
markus schnalke [Thu, 5 Jan 2012 11:26:09 +0000 (12:26 +0100)]
Removed isprefix() and replaced it with strncmp().
isprefix() had been ssequal(), which had not been what it advertised to be.
Now, all this is gone.
We could get problems if one of the arguments is NULL, as isprefix()
handled this situation, but strncmp() does not. It appears as if this case
does not show up in the code.

12 years agoRemoved forgotten unused variable.
markus schnalke [Thu, 5 Jan 2012 10:56:44 +0000 (11:56 +0100)]
Removed forgotten unused variable.

12 years agoRemoved the non-LOCALE character code and the #ifdefs and simplified.
markus schnalke [Thu, 5 Jan 2012 10:52:03 +0000 (11:52 +0100)]
Removed the non-LOCALE character code and the #ifdefs and simplified.
POSIX says: tolower() won't change its argument if it is not isupper().
And isupper() doesn't need an additional check for isalpha().

12 years agoRefactoring in sbr/m_convert.c
markus schnalke [Thu, 5 Jan 2012 10:28:18 +0000 (11:28 +0100)]
Refactoring in sbr/m_convert.c

12 years agoReserved special sequence names may be upper case too. Even without LOCALE.
markus schnalke [Thu, 5 Jan 2012 10:19:22 +0000 (11:19 +0100)]
Reserved special sequence names may be upper case too. Even without LOCALE.

12 years agoMuch more straight-forward handling of the beyond sequence.
markus schnalke [Thu, 5 Jan 2012 10:11:13 +0000 (11:11 +0100)]
Much more straight-forward handling of the beyond sequence.
Could remove the message flag SELECT_EMPTY in the same go.
This frees one more space for a user-defined sequence.

12 years agoVarious minor cleanups in sbr/m_convert.c.
markus schnalke [Wed, 4 Jan 2012 20:04:56 +0000 (21:04 +0100)]
Various minor cleanups in sbr/m_convert.c.

12 years agoRemoved the unused message flag: DELETED.
markus schnalke [Wed, 4 Jan 2012 18:36:08 +0000 (19:36 +0100)]
Removed the unused message flag: DELETED.
Now we can store one user-defines seq more.

12 years agos/ALLOW_NEW/ALLOW_BEYOND/
markus schnalke [Wed, 4 Jan 2012 17:57:18 +0000 (18:57 +0100)]
s/ALLOW_NEW/ALLOW_BEYOND/

12 years agoRenamed all standard sequences (e.g. cur->c) and made them globally changeable
markus schnalke [Wed, 4 Jan 2012 17:29:23 +0000 (18:29 +0100)]
Renamed all standard sequences (e.g. cur->c) and made them globally changeable
The full list:
cur -> c
first -> f
last -> l
next -> n
prev -> p
all -> a
new -> b (mnemonic: one beyond the last)
They are globally changeable in config/config.c
Could be that I'll add the old names again, as convenience aliases.

12 years agoInverted the second arg of seq_setunseen(), to be more natural.
markus schnalke [Wed, 4 Jan 2012 13:49:09 +0000 (14:49 +0100)]
Inverted the second arg of seq_setunseen(), to be more natural.

12 years agoAnother fix for the strchr() transition: Check for NULL arguments.
markus schnalke [Wed, 4 Jan 2012 13:46:58 +0000 (14:46 +0100)]
Another fix for the strchr() transition: Check for NULL arguments.
Is now the point to reintroduce the brkany() helper? Hmm...

12 years agoActivated default sequence negation (exclamation mark).
markus schnalke [Wed, 4 Jan 2012 11:35:19 +0000 (12:35 +0100)]
Activated default sequence negation (exclamation mark).

12 years agoActivated a default unseen sequence; updated man pages to it.
markus schnalke [Wed, 4 Jan 2012 11:04:44 +0000 (12:04 +0100)]
Activated a default unseen sequence; updated man pages to it.

12 years agoFixed bug in brkstring(), newly introduced by the switch to strchr().
markus schnalke [Wed, 4 Jan 2012 10:16:12 +0000 (11:16 +0100)]
Fixed bug in brkstring(), newly introduced by the switch to strchr().
strchr() treats the trailing null byte surprisingly:
``The terminating null byte is considered to be part of the string.''

12 years agoGlobally defined the names for the standard sequences.
markus schnalke [Wed, 4 Jan 2012 09:06:51 +0000 (10:06 +0100)]
Globally defined the names for the standard sequences.
I'll rework the whole code to use them and not have hard-coded names anymore.
The `new' sequence will be called `beyond' sequence (`b') from now on.
The `unseen' sequence will be set by default to `u' from now on.
The sequence negation will be set by default to `!' from now on.

12 years agosbr/brkstring.c: replaced static brkany() with call to strchr(); plus cleanups
markus schnalke [Wed, 4 Jan 2012 08:54:43 +0000 (09:54 +0100)]
sbr/brkstring.c: replaced static brkany() with call to strchr(); plus cleanups

12 years agoFixed minor typo in man page.
markus schnalke [Tue, 3 Jan 2012 06:14:24 +0000 (07:14 +0100)]
Fixed minor typo in man page.

12 years agoRemoved remaining lines from the --with-pager=... removal, months ago.
markus schnalke [Tue, 3 Jan 2012 05:41:27 +0000 (06:41 +0100)]
Removed remaining lines from the --with-pager=... removal, months ago.

12 years agos/vfork/fork/
markus schnalke [Tue, 3 Jan 2012 05:36:30 +0000 (06:36 +0100)]
s/vfork/fork/
I truly believe that vfork is wrong. Forking should not be too slow for us.

12 years agoRelayouted all switch statements: case aligns with switch.
markus schnalke [Tue, 3 Jan 2012 05:16:30 +0000 (06:16 +0100)]
Relayouted all switch statements: case aligns with switch.
Desired style is:
switch (n) {
case foo:
...
}

12 years agoRemoved ``Face'' support in mhl.
markus schnalke [Mon, 2 Jan 2012 13:54:05 +0000 (14:54 +0100)]
Removed ``Face'' support in mhl.
It appears to be about `Face:' headers, but neither Jerry Peek, nor
Ken Hornstein knew more.

12 years agoRemoved references to unused default procs and commented config/config.c
markus schnalke [Mon, 2 Jan 2012 10:50:35 +0000 (11:50 +0100)]
Removed references to unused default procs and commented config/config.c

12 years agoRemoved the configuration option NOPUBLICSEQ.
markus schnalke [Mon, 2 Jan 2012 10:20:00 +0000 (11:20 +0100)]
Removed the configuration option NOPUBLICSEQ.
You can change it still, by setting mh_seq to NULL in config/config.c.

12 years agoRenames: s/+outbox/+sent/ and s/cc:/Cc:/
markus schnalke [Mon, 2 Jan 2012 09:57:24 +0000 (10:57 +0100)]
Renames: s/+outbox/+sent/ and s/cc:/Cc:/
IMO ``sent'' specifies more exactly what it contains. ``outbox'' would
mean to me that these messages are prepared for delivery, but are not
already sent.

12 years agoUpdated INSTALL and changed `nmh' strings to `mmh'
markus schnalke [Mon, 2 Jan 2012 09:20:49 +0000 (10:20 +0100)]
Updated INSTALL and changed `nmh' strings to `mmh'

12 years agoReworked the man page system and some man page contents (mmh-intro).
markus schnalke [Fri, 23 Dec 2011 11:09:55 +0000 (12:09 +0100)]
Reworked the man page system and some man page contents (mmh-intro).
Now it's possible to have two equally named pages in two different sections.
This appeared to be interesting for mmh(X), but I don't use it now. Let's
see if we keep the new system or even rework it to become simpler.

12 years agoBe quiet! Only talk if you have something useful to say.
markus schnalke [Fri, 23 Dec 2011 08:00:59 +0000 (09:00 +0100)]
Be quiet! Only talk if you have something useful to say.

12 years agoAdjusted Makefile to the rename: etc/scan.default -> etc/scan.nmh
markus schnalke [Fri, 23 Dec 2011 07:32:41 +0000 (08:32 +0100)]
Adjusted Makefile to the rename: etc/scan.default -> etc/scan.nmh

12 years agoUpdated all man pages and renamed install-mh.man to mmh.man.
markus schnalke [Fri, 23 Dec 2011 07:32:08 +0000 (08:32 +0100)]
Updated all man pages and renamed install-mh.man to mmh.man.

12 years agoUnimportant stuff.
markus schnalke [Fri, 23 Dec 2011 07:13:22 +0000 (08:13 +0100)]
Unimportant stuff.

12 years agoReplaced C program `install-mh' by shell script `mmh'.
markus schnalke [Fri, 23 Dec 2011 07:12:20 +0000 (08:12 +0100)]
Replaced C program `install-mh' by shell script `mmh'.
It is updated to the separated directories.

12 years agoSplit nmh dir into mmh dir (~/.mmh) and mail storage (~/Mail).
markus schnalke [Fri, 23 Dec 2011 07:00:58 +0000 (08:00 +0100)]
Split nmh dir into mmh dir (~/.mmh) and mail storage (~/Mail).
The profile (~/.mh_profile) became (~/.mmh/profile).

The idea was to separate the configuration files and the data (= messages).

The environment variables changed accordingly:
MH -> MMHP (profile)
MHCONTEXT -> MMHC (context)
new: MMH (mmh dir)

mh-install is not adjusted, yet.

12 years agoFixed bug, reported by Phil: Profile entry Draft-Folder was case sensitive.
markus schnalke [Tue, 13 Dec 2011 13:20:32 +0000 (14:20 +0100)]
Fixed bug, reported by Phil: Profile entry Draft-Folder was case sensitive.
The components in the profile should be matched case*in*sensitive, always.

12 years agoCleanup in m_draft. There was some confusingly unnecessary code.
markus schnalke [Tue, 13 Dec 2011 13:19:40 +0000 (14:19 +0100)]
Cleanup in m_draft. There was some confusingly unnecessary code.

12 years agoMinor change in output message
markus schnalke [Tue, 13 Dec 2011 12:10:15 +0000 (13:10 +0100)]
Minor change in output message

12 years agoRemoved the global alias file
markus schnalke [Mon, 12 Dec 2011 13:09:44 +0000 (14:09 +0100)]
Removed the global alias file
Either use personal alias files or the MTA alias file.

12 years agoMoved etcpath() from config/config.c to sbr/path.c
markus schnalke [Mon, 12 Dec 2011 12:38:51 +0000 (13:38 +0100)]
Moved etcpath() from config/config.c to sbr/path.c

12 years agoCode cosmetic
markus schnalke [Fri, 9 Dec 2011 21:12:34 +0000 (22:12 +0100)]
Code cosmetic

12 years agoAdjusted the default scan listing: remove the body preview
markus schnalke [Fri, 9 Dec 2011 20:56:44 +0000 (21:56 +0100)]
Adjusted the default scan listing: remove the body preview
The original listing is still available as etc/scan.nmh

12 years agoCode cosmetics
markus schnalke [Fri, 9 Dec 2011 20:26:54 +0000 (21:26 +0100)]
Code cosmetics

12 years agoWe have `NULL' in order to not need to write `(char *)0' anymore.
markus schnalke [Fri, 9 Dec 2011 17:44:19 +0000 (18:44 +0100)]
We have `NULL' in order to not need to write `(char *)0' anymore.

12 years agoRemoved void casts for ignored return values of function calls.
markus schnalke [Fri, 9 Dec 2011 17:34:39 +0000 (18:34 +0100)]
Removed void casts for ignored return values of function calls.
IMO, this distracts from the important without being much worth.

12 years agoWe don't want to use copy() anymore; but kept it for concat() only
markus schnalke [Fri, 9 Dec 2011 17:21:27 +0000 (18:21 +0100)]
We don't want to use copy() anymore; but kept it for concat() only

12 years agos/pfolder/curfolder/g
markus schnalke [Fri, 9 Dec 2011 17:11:10 +0000 (18:11 +0100)]
s/pfolder/curfolder/g

12 years ago"." is no longer an alias for "cur"
markus schnalke [Fri, 9 Dec 2011 16:32:28 +0000 (17:32 +0100)]
"." is no longer an alias for "cur"
Don't fear more typing, as "cur" will soon be cut down to "c",
likewise the other predefined sequences.

12 years agoRemoved the option to disable `~user' support (MHRC)
markus schnalke [Fri, 9 Dec 2011 16:17:50 +0000 (17:17 +0100)]
Removed the option to disable `~user' support (MHRC)

12 years agoCompletely reworked the path convertion functions
markus schnalke [Fri, 9 Dec 2011 15:34:57 +0000 (16:34 +0100)]
Completely reworked the path convertion functions
Moved everything (from sbr/getfolder.c and sbr/m_maildir.c) into
sbr/path.c, but actually replaced the code almost completely.
See h/prototypes.h for the function changes.
sbr/path.c provides explaining comments on the functions.
None of them allocates memory automatically.

Additionally:
- Like for other ``files'', `inc -audit file' places file relative
  to the cwd, not relative to the mh-dir. This is for consistency.
- Replaced add(foo, NULL) with getcpy(foo), which ist clearer.

13 years agoCosmetic refactoring
markus schnalke [Mon, 21 Nov 2011 10:29:03 +0000 (11:29 +0100)]
Cosmetic refactoring

13 years agoCosmetic change
markus schnalke [Sun, 20 Nov 2011 20:19:43 +0000 (21:19 +0100)]
Cosmetic change

13 years agoCosmetic change
markus schnalke [Sun, 20 Nov 2011 20:17:44 +0000 (21:17 +0100)]
Cosmetic change

13 years agoAdded comment
markus schnalke [Sun, 20 Nov 2011 20:14:29 +0000 (21:14 +0100)]
Added comment

13 years agoSimplification: Removed unnecessary variable
markus schnalke [Sun, 20 Nov 2011 20:13:07 +0000 (21:13 +0100)]
Simplification: Removed unnecessary variable

13 years agoThe existence of the profile entry Path is already enforced by context_read().
markus schnalke [Sun, 20 Nov 2011 11:38:17 +0000 (12:38 +0100)]
The existence of the profile entry Path is already enforced by context_read().
Hence, removed the obscure ``free(path("./", TFOLDER));'' calls.
Still I don't see the sense in these lines, but they won't get executed,
as the condition is checked before (and the program aborts then).
Probably that's obsolete stuff that remained through several reworks.

13 years agoCode reformating.
markus schnalke [Sat, 5 Nov 2011 18:07:47 +0000 (19:07 +0100)]
Code reformating.

13 years agoImproved pluspath() and used it instead of path() where appropriate.
markus schnalke [Sat, 5 Nov 2011 17:40:23 +0000 (18:40 +0100)]
Improved pluspath() and used it instead of path() where appropriate.

13 years agoRefactored sbr/getfolder.c
markus schnalke [Sat, 5 Nov 2011 17:13:17 +0000 (18:13 +0100)]
Refactored sbr/getfolder.c

13 years agoIntroduced FDEF and FCUR for speaking arguments to getfolder().
markus schnalke [Sat, 5 Nov 2011 16:56:07 +0000 (17:56 +0100)]
Introduced FDEF and FCUR for speaking arguments to getfolder().
Maybe it would be better to two separate functions, but I cannot
imagine good names for them ... :-(

13 years agoRearranged code in the file.
markus schnalke [Sat, 5 Nov 2011 16:51:30 +0000 (17:51 +0100)]
Rearranged code in the file.

13 years agoRefactoring in sbr/path.c.
markus schnalke [Sat, 5 Nov 2011 16:35:13 +0000 (17:35 +0100)]
Refactoring in sbr/path.c.
Especially: Replaced compath() with a more general packpath().

13 years agoRenamed r1bindex() to mhbasename(), to make its function becomes clear.
markus schnalke [Sat, 5 Nov 2011 13:04:02 +0000 (14:04 +0100)]
Renamed r1bindex() to mhbasename(), to make its function becomes clear.
All calls to r1bindex() had '/' as second argument. For everything else
one can use strrchr(3) instead of r1bindex().

13 years agoRenamed ssequal() to isprefix(), because that's what it checks.
markus schnalke [Sat, 5 Nov 2011 10:47:42 +0000 (11:47 +0100)]
Renamed ssequal() to isprefix(), because that's what it checks.

13 years agoRemoved defines for obsolete BSD bcopy functions; Use getc() directly.
markus schnalke [Sat, 5 Nov 2011 09:31:30 +0000 (10:31 +0100)]
Removed defines for obsolete BSD bcopy functions; Use getc() directly.

13 years agoWe don't need macros for only putting two strings next to each other.
markus schnalke [Sat, 5 Nov 2011 09:26:18 +0000 (10:26 +0100)]
We don't need macros for only putting two strings next to each other.

13 years agoRemoved references to bboards, as we don't support them anymore.
markus schnalke [Sat, 5 Nov 2011 08:43:56 +0000 (09:43 +0100)]
Removed references to bboards, as we don't support them anymore.

13 years agoBroke long lines.
markus schnalke [Tue, 1 Nov 2011 14:55:31 +0000 (15:55 +0100)]
Broke long lines.

13 years agoDon't call writev() anymore.
markus schnalke [Tue, 1 Nov 2011 08:29:08 +0000 (09:29 +0100)]
Don't call writev() anymore.
It might be a sexy syscall, but it's not portable and more complex than
the mainstream solution. For sexy source program, go elsewhere!

13 years agoRemoved outc(), which only called putchar(), while having the same signature.
markus schnalke [Tue, 1 Nov 2011 08:10:19 +0000 (09:10 +0100)]
Removed outc(), which only called putchar(), while having the same signature.
I substituted all outc() calls with calls to putchar().

13 years agoRemoved the space between function names and the opening parenthesis.
markus schnalke [Tue, 1 Nov 2011 08:05:30 +0000 (09:05 +0100)]
Removed the space between function names and the opening parenthesis.

13 years agoReformated comments and long lines
markus schnalke [Mon, 31 Oct 2011 14:06:33 +0000 (15:06 +0100)]
Reformated comments and long lines

13 years agoRemoved the draft message in favor for a consistent draft folder facility
markus schnalke [Sun, 30 Oct 2011 10:35:54 +0000 (11:35 +0100)]
Removed the draft message in favor for a consistent draft folder facility
- reworked sbr/m_draft.c (of course)
- removed the -draftfolder/-draftmessage/-nodraftfolder switches
- removed the -draft switch from anno and refile
- no more need to question on existing draft message - yay!
Everything is more consistent now. Cornercases went away. :-)

(Also fixed the switch numbering, as already done for other files earlier.)

13 years agoFixed broken swit numbering (there are more files to fix)
markus schnalke [Sun, 16 Oct 2011 17:50:26 +0000 (19:50 +0200)]
Fixed broken swit numbering (there are more files to fix)

13 years agoRemoved the whom program, which relayed on post(8) functionality.
markus schnalke [Sun, 16 Oct 2011 09:48:09 +0000 (11:48 +0200)]
Removed the whom program, which relayed on post(8) functionality.
We can later add one again, which only expands aliases but does not
require the MTA to support -bv.

13 years agoRemoved the split feature of send.
markus schnalke [Sun, 16 Oct 2011 08:47:04 +0000 (10:47 +0200)]
Removed the split feature of send.
It would split large messages into several partial ones, using MIME.
But if a message contains one large file attached, it won't solve the
problem. We better go without this feature and leave it to the user.

13 years agoRemoved unneeded sbr code.
markus schnalke [Fri, 7 Oct 2011 08:41:15 +0000 (10:41 +0200)]
Removed unneeded sbr code.
memmove() and strerror() removed again. ;-) Mmh takes C89, at least, for
available.

13 years agoRearranged whitespace (and comments) in all the code!
markus schnalke [Fri, 7 Oct 2011 06:35:27 +0000 (08:35 +0200)]
Rearranged whitespace (and comments) in all the code!
The primary goal was to only indent with tabs and not mix them with spaces.
Also, no more tabs should appear past the first printable char on each line.
Now editing the sources will be much easier, no matter which editor one uses,
and rearranging won't break aligned code.
(Beware, the changeset is huge, but the `diff -w' changes are moderate.)