8ea5ab5132aa30be377c51aa2e6f88401ce3c242
[mmh] / docs / TODO
1 [TODO]
2
3 * fix msh/mmdf problems.
4 * Add IPv6 support.
5 * Check/fix compilation on 64-bit systems.
6 * Write different function to read configuration files, instead
7   of using m_getfld.c
8 * convert calls from sprintf/vsprintf to snprintf/vsnprintf
9 * convert calls from getcpy to strdup
10 * modularize access to context/profile list.
11 * add command printm to print messages
12 * finish changing to macros for msgstats and msgflags
13 * Add support for Mail-Followup-To and Mail-Reply-To
14 * Add support for profile entry "Mailing-Lists"
15 * let mhn and mhl accept files on standard in, and output to
16   standard out, when filtering files.
17 * Add switch -more to `show' to call moreproc.
18 * Add new command "show" at WhatNow? prompt.
19 * Add command to reverse the action of rmm [-nounlink] -- "urmm"?  "umm"?  "um"?
20 * Allow user customization of which kinds of text parts in multipart/alternative
21   messages are preferred.  It would be nice if one selectable behavior would be
22   to be prompted at runtime for which version to show.
23 * Add a new %-escape that makes temp files more permanent than %f, so that you
24   can use gnuclient -q or netscape -remote on message parts.  Put netscape
25   -remote in mhn.defaults for text/html once this is done.
26 * Change all man pages to group all the commandline options together in one
27   section with each as a separate mini-heading.  Having to dig through prose to
28   find what a particular option does is a pain in the nads.
29 * Add some way to configure whether you prefer to see text/plain or text/html
30   parts of multipart/alternative messages.
31 * Flag bogus/misspelled mts.conf "masquerade:" / --enable-masquerade options.
32 * Allow multiple simultaneous differing contexts, probably each tied to a parent
33   (terminal) process.
34
35 [POSSIBILITIES]
36
37 MAN PAGES
38 ---------
39 * Update mh-tailor man page.
40 * generate mh-chart man page from other man pages
41 * update default mode in man pages with sed
42
43 SEQUENCES
44 ---------
45 * Change so you can have more than 26 sequences.  Unfortunately,
46   given the way that the bit flags for sequences work, this is
47   not easy.
48 * Maybe add option gracefully handle empty sequences (-force).
49
50 ENVIRONMENT/PROFILE
51 -------------------
52 * Maybe add profile entry "Pager" to change the default pager?
53 * Should nmh check for EDITOR or PAGER environment variable?
54
55 OPTIONS
56 -------
57 * can we move option checking to its own function?  Currently each
58   command is doing that itself.
59 * make the option parsing code dynamic, so that there is no limit
60   to the number of command line arguments (this has been done for
61   most all the commands).
62 * Add switch descriptions to -help output.
63
64 COMP
65 ----
66 * add option so that prompter can be used to input addresses,
67   before the real editor is called to edit message.
68 * fix -nowhatnowproc switch. Right now whatnowproc starts the edit
69   session instead of comp, so -nowhatnowproc does nothing.
70
71 FLIST
72 -----
73 * add -format option so you can specify the look of the output
74   of flist.
75 * add Flist-Exclude profile component
76
77 FOLDER
78 ------
79 * add Folder-Order profile component (same as flist)
80 * add Folder-Exclude profile component
81
82 FORMATS
83 -------
84 * add escape %(sequence{foobar}) to detect arbitrary sequences.
85
86 FORW
87 ----
88 * Decode RFC-2047 headers in messages included when replying
89   or forwarding.
90 * Merge code for forw and repl.
91
92 INC
93 ---
94 * Add ability to do filtering (call filterproc) when incorporating mail
95 * Change inc to use libary function folder_addmsg().
96
97 MHBUILD
98 -------
99 * add ability to specify Content-Transfer-Encoding in composition
100   drafts.
101 * remove the code for caching from mhbuild.
102
103 MHL
104 ---
105 * add ability to filter parts of the message by calling
106   an external filtering program.
107 * fix internal pager for mhl?
108
109 MHMAIL
110 ------
111 * add -attach option (send could use this).  This should
112   be done by hooking in mhbuildsbr.c
113
114 MHN/MHSHOW/MHLIST/MHSTORE
115 -------------------------
116 * add way so user can tell mhn to use internal method for
117   handling type, such as multipart/mixed.
118 * add way so user can tell mhn to use a certain `proc' such
119   as moreproc, for certain content types.
120 * add support for Content-Disposition header (rfc1806, rfc2183).
121 * merge the two places in which mhshowsbr.c reads display
122   strings.
123 * when storing to a folder, should we save the folder context
124   first, so that storage string of "+" stores to the new
125   folder?
126
127 MSH
128 ---
129 * change conditional includes in msh.c to use termios.h
130 * Add -version to mshcmd.c for each command.
131 * Change msh to use mbox style files, instead of mmdf.  Add options -mbox,
132   -mmdf to choose.
133 *) There are couple calls to copyip() which should be changed to
134    getarguments().  One problem is freeing the string getcopy'ed by
135    getarguments().
136
137 PICK
138 ----
139 * split regex code out into library.
140 * replace regex code with Henry Spencer's regex library.
141
142 POST
143 ----
144 * make -msgid the default
145 * factor msgid code into own function
146
147 PROMPTER
148 --------
149 * maybe add ability to use prompter just for headers, and
150   then use primary editor for editing message.
151
152 RCVSTORE
153 --------
154 * Change rcvstore so that it can store into multiple folders.
155 * Add folder locking.
156
157 REPL
158 ----
159 * Decode RFC-2047 headers in messages included when replying
160   or forwarding.
161 * Merge code for forw and repl.
162
163 SEND/SENDSBR
164 ------------
165 * Maybe add `-server' and `-client' to documentation.
166 * Add ability for returned messages from "send -push" to be
167   in MIME format (this is actually a change in mhmail).
168 * make -msgid the default.
169 * Add RFC-2047 encoding support for out-going messages.  This
170   will probably require hooking mhparse into sendsbr.c, and doing
171   a complete MIME parsing.  Then all handling of Content encoding
172   can be on the backend.
173
174 SLOCAL
175 -----
176 * Change slocal to use .slocalrc file, instead of .maildelivery?
177 * Add ability to use regular expressions in header matching.
178 * Add support for Berkeley db.
179 * Clean up output from -debug option.
180 * Add -debuglevel to control the amount of debug info that is output.
181 * Add -debuglog to specify file to save debugging output.
182 * Add -logfile (or -audit) to specify where to record info about successful
183   deliveries.
184
185 VMH
186 ---
187 * Fix vmh (or remove it).  vmh seems to be using internal
188   knowledge of curses.
189
190 MTA INTERFACE
191 -------------
192 * Fix locking code.  Add lockfile command.
193 * Think about support for DSN (Delivery Status Notification)
194 * Test nmh with qmail.  Add qmail's maildir format.
195 * Relax restrictions on what can be done with headers in send/post.
196 * figure out why smail.c and client.c need their own copies of
197   getcpy, copyip, etc... (funny linking problem)
198
199 GENERAL
200 -------
201 * see if the various versions of copyfile and copyf can be
202   merged.
203 * change time functions to use POSIX functions by default.
204 * Add MH-6.8.4 features into nmh (mostly done).
205 * Maybe should move etcpath to sbr and add to libmh.
206 * collect winsize, struct termio, etc... together into a ttyinfo
207   structure.
208 * use wait3 if not waitpid (maybe)
209 * some of the calls to setjmp/longjmp should be replaced with
210   sigsetjmp/siglongjmp.
211 * When do we need to add -lresolv for SunOS 4.1.x?
212 * replace use of ftell with fgetpos.