| ***************************************************************
| *		       ZapEmail extensions			*
| ***************************************************************

mode_email
Darren Salt's colour email/news mode.
Colours can be configured from the display menu.
The mode can be configured from its submenu in the modes menu.
See its help text ("EmailHelp") for more details.

EMAIL_FIXSIG
In Email mode, fixes the sig separator (if broken). It is also called
automatically prior to saving. (If 'Ignore .sig separator' is enabled, does
nothing.)

EMAIL_STRIPSPCS
In Email mode, performs space and quoting altering according to <word>. The
header and sig separator are left unmodified.
b0 = strip spaces at eol
b1 = strip tabs at eol
b2 = tabify (not yet implemented)
b3 = strip quoting from otherwise blank lines
b4 = convert quoting to standard form
b5-b31 are reserved
The header and sig separator are unmodified.

EMAIL_STAMP
In Email mode, will generate a new date line and message ID.
Requires a valid "From: " line and that the "Date: " and "Message-ID: " lines
are present. (If 'Ignore header' is enabled, does nothing.)

EMAIL_DATE
In Email mode, will generate a new date line.
Requires that the "Date: " line is present. (If 'Ignore header' is enabled,
does nothing.)

EMAIL_CHANGEQUOTING
In Email mode, will change the quoting for the paragraph (starting from the
current line) to the specified character (supplied as a string parameter) or
the next keypress.

EMAIL_SENDURL
Sends the URL at the cursor position to any currently-loaded web browser.
(Deprecated: use ZapDS's SENDURL instead.)

EMAIL_SPLITFORINSERT
In Email mode, splits the text, inserting three blank lines, and places the
cursor on the middle one.

EMAIL_INCQUOTING
In Email mode, increments the quoting level of the selected region,
using the specified character (string parameter) or the next keypress.

EMAIL_DECQUOTING
In Email mode, decrements the quoting level of the selected region.

EMAIL_ROTENCODE
Performs Rot13 encoding on the current selection, or, if none, at the cursor.

EMAIL_ROTENCODECUR
Performs Rot13 encoding at the cursor.

EMAIL_FLAGSTOGGLE
Alters the Email mode flags for the current window or the default options.
The window will be redrawn if any display options have been altered.
The <word> is as for WFlags_Toggle.

EMAIL_SETFORMATMOD
Sets the format width modifier, for the current window or the default
options, to the given byte value.

EMAIL_SETQUOTING
Sets the non-standard quoting characters to the supplied string. Null string
= default :"|

EMAIL_ADDQUOTINGCHR
Adds the supplied character (as a string) or the next keypress to the
non-standard quoting character list.

EMAIL_REMQUOTINGCHR
Removes the supplied character (as a string) or the next keypress from the
non-standard quoting character list.

EMAIL_ADDTAGLINE
Adds a tagline to the bottom of the message.

EMAIL_ADDSIGNATURE
Adds a signature to the bottom of the message, replacing any already there.
The sigs file is determined by the user name and whether the file is a news
article.

EMAIL_SNIP
Snips the selected text, preserving quoting in the last line, and inserts
either the supplied string or, if blank, "[snip]".

EMAIL_DECODEQP
Decodes MIME quoted printable. Removes appropriate header lines if the
suppplied word parameter is zero.

EMAIL_ENCODEQP
Encodes as MIME quoted printable (except in the header and .sig separator).
Adds suitable header lines.

| End ZapEmail
