TODO
====

* Write different function to read configuration files, instead
  of using m_getfld.c
* convert calls from sprintf/vsprintf to snprintf/vsnprintf
* modularize access to context/profile list.
* add command printm to print messages
* finish changing to macros for msgstats and msgflags
* Add support for Mail-Followup-To and Mail-Reply-To
* Add support for profile entry "Mailing-Lists"
* let mhl accept files on standard in, and output to
  standard out, when filtering files.
* Add new command "show" at WhatNow? prompt.
* Allow user customization of which kinds of text parts in multipart/alternative
  messages are preferred.  It would be nice if one selectable behavior would be
  to be prompted at runtime for which version to show.
* Add a new %-escape that makes temp files more permanent than %f, so that you
  can use gnuclient -q or netscape -remote on message parts.  Put netscape
  -remote in mhn.defaults for text/html once this is done.
* Change all man pages to group all the commandline options together in one
  section with each as a separate mini-heading.  Having to dig through prose to
  find what a particular option does is a pain in the nads.
* Add some way to configure whether you prefer to see text/plain or text/html
  parts of multipart/alternative messages.


MAN PAGES
---------
* Transition of the mh-tailor man page
* update default mode in man pages with sed

SEQUENCES
---------
* Change so you can have more than 26 sequences.  Unfortunately,
  given the way that the bit flags for sequences work, this is
  not easy.
* Maybe add option gracefully handle empty sequences (-force).

OPTIONS
-------
* can we move option checking to its own function?  Currently each
  command is doing that itself.
* make the option parsing code dynamic, so that there is no limit
  to the number of command line arguments (this has been done for
  most all the commands).
* Add switch descriptions to -help output.

FLIST
-----
* add -format option so you can specify the look of the output
  of flist.
* add Flist-Exclude profile component

FOLDER
------
* add Folder-Order profile component (same as flist)
* add Folder-Exclude profile component

FORMATS
-------
* add escape %(sequence{foobar}) to detect arbitrary sequences.

INC
---
* Add ability to do filtering (call filterproc) when incorporating mail
* Change inc to use library function folder_addmsg().

MHBUILD
-------
* add ability to specify Content-Transfer-Encoding in composition
  drafts.
* remove the code for caching from mhbuild.

MHL
---
* add ability to filter parts of the message by calling
  an external filtering program.

MHSHOW/MHLIST/MHSTORE
-------------------------
* add support for Content-Disposition header (rfc1806, rfc2183).
* merge the two places in which mhshowsbr.c reads display
  strings.
* when storing to a folder, should we save the folder context
  first, so that storage string of "+" stores to the new
  folder?

PICK
----
* split regex code out into library.
* replace regex code with Henry Spencer's regex library.

RCVSTORE
--------
* Change rcvstore so that it can store into multiple folders.
* Add folder locking.

REPL
----
* Decode RFC-2047 headers in messages included when replying
  or forwarding.

SLOCAL
-----
* Change slocal to use .slocalrc file, instead of .maildelivery?
* Add ability to use regular expressions in header matching.
* Clean up output from -debug option.
* Add -debuglevel to control the amount of debug info that is output.
* Add -debuglog to specify file to save debugging output.
* Add -logfile (or -audit) to specify where to record info about successful
  deliveries.

GENERAL
-------
* change time functions to use POSIX functions by default.
* replace use of ftell with fgetpos.
