docs/master

view preface.roff @ 223:1fa5a74bf138

Reworked References structure: Collect them all in one Chapter. Have list of websites separately.
author markus schnalke <meillo@marmaro.de>
date Sun, 15 Jul 2012 19:16:35 +0200
parents de8172bcdc5e
children 96778c1afc3e
line source
1 .H0 "Preface" no
3 .P
4 I have discovered the mail client \fInmh\fP
5 in fall 2009.
6 At that time I used \fImutt\fP,
7 as many advanced Unix users do.
8 When I read about nmh, its concepts convinced me at once.
9 The transition from mutt to nmh was similar to beginning with
10 file management in the Unix shell when being used to the
11 \fImidnight commander\fP,
12 or like starting with vi when being used to modeless editors.
13 Such a change is not trivial, but, in being convinced by the
14 concepts and by having done similar transitions for file management
15 and editing already, it was not too difficult.
16 In contrast, setting up nmh to a convenient state became a tedious task
17 that took several months.
18 Once having nmh arranged this way, I enjoyed using it
19 because of its conceptional elegance and its scripting capabilities.
20 Nevertheless, it was still inconvenient for handling attachments,
21 non-ASCII character encodings, and similar features of modern emailing.
22 My setup demanded more and more additional configuration and helper scripts
23 to have nmh behave the way I wanted; yet my
24 expectations were rather common for modern emailing.
25 As a computer scientist and programmer, I wanted to improve the situation.
26 .P
27 In spring 2010, I sent a message
28 .[
29 nmh-workers gsoc
30 .]
31 to the \fInmh-workers\fP mailing list,
32 .[
33 nmh-workers mailing list website
34 .]
35 asking for the possibility to offer a Google Summer of Code
36 .[
37 google summer of code website
38 .]
39 project for me.
40 Participating in the development of nmh in this manner appeared attractive
41 to me, because I would have been able to work full time on nmh.
42 Although the nmh community had reacted generally positive to the suggestion,
43 the administrative work for such a project would had been too much.
44 Nonetheless, my proposal had activated the nmh community.
45 In the following weeks, goals for nmh's future were discussed.
46 In these discussions, I became involved in the
47 question whether nmh should include mail transfer facilities.
48 .[
49 nmh-workers thread mta mua
50 .]
51 I argued for the Mail Transfer Agent of nmh to be removed.
52 In this fundamental question,
53 my opinion differed from the opinion of most others.
54 Sadly, besides the discussions, hardly any real work was done.
55 Being unable to work on nmh in a way that would be accepted at university
56 as part of my studies, I needed to choose another project.
57 .P
58 Half a year later, starting in August 2010,
59 I took one semester off to travel through Latin America.
60 During my time in Argentina, I wanted to work on free software.
61 This brought me back to nmh.
62 Richard Sandelman, an active nmh user, took care of the official basis.
63 Juan Granda, an Argentine free software developer,
64 organized a computer with Internet connection.
65 Thanks to them, I was able to work on nmh during my three-month
66 stay in Santiago del Estero, Argentina.
67 Quickly it became obvious that I would not succeed with my main goal,
68 to improve the character encoding handling.
69 (One of its ramifications is the
70 missing transfer decoding of quoted text in replies.)
71 As this is one of the most intricate parts of the system, the goal
72 was simply set too high.
73 Instead, I improved the code base as I read through it.
74 I found minor bugs for which I proposed fixes.
75 Additionally, I improved the documentation in minor ways.
76 When I started to work on larger code changes,
77 I had to discover that the community was reluctant to change.
78 Its wish for compatibility was much stronger than its
79 wish for convenient out-of-the-box setups \(en in contrast to my opinion.
80 Once again, this led to long discussions.
81 I came to understand their point of view, but it is different from mine.
82 At the end of my three-month project, I had become familiar with
83 nmh's code base and community,
84 I had improved the project in minor ways,
85 and I still was convinced that I wanted to continue to do so.
86 .P
87 Another half year later, the end of my studies came within reach.
88 I needed to choose a topic for my master's thesis.
89 Without question, I wanted to work on nmh.
90 But not exactly on nmh, because I had accepted that its
91 community has different goals than I have.
92 Working on nmh would result in much discussion and, in consequence,
93 little progress.
94 After careful thought, I decided to start an experimental version of nmh.
95 I wanted to implement my own ideas of how an MH-like system should
96 look like.
97 I wanted to create a usable alternative version to be compared with
98 the present state of nmh.
99 Eventually, my work would be proven successful or not.
100 In any case, the nmh project would profit from my experiences.
102 .U2 "Focus of this Document
103 .P
104 This document explains the design goals and implementation decisions
105 for mmh,
106 an experimental version of nmh.
107 It discusses technical, historical, social and philosophical considerations.
108 On the technical side, this document
109 explains how an existing project was streamlined by removing rough edges
110 and better exploitation of the central concepts.
111 On the historical side, changes through time are discussed,
112 regarding the use cases and the email features,
113 as well as the reactions to them.
114 Socially, this document describes the effects
115 and experiences of a newcomer with revolutionary aims entering an old
116 and matured software project.
117 Philosophical thoughts on style, mainly based on the Unix
118 philosophy, are present throughout the discussions.
119 The document describes the changes to nmh,
120 but as well, it clarifies my personal perception of the
121 concepts of MH and Unix, and explain my therefrom resulting point of view.
122 .P
123 This document is written for the community around MH-like mail systems,
124 including developers and users.
125 Despite the focus on MH-like systems, this document may be valuable
126 to anyone interested in the Unix philosophy and anyone in contact with
127 old software projects, be it code- or community-related.
128 .P
129 The reader is expected to be familiar with Unix, C and emailing.
130 Good Unix shell knowledge is required, because MH relies fundamentally
131 on the shell.
132 Without the power of the shell, MH becomes a motorcycle
133 without winding roads: boring.
134 Introductions to Unix and its shell can be found in \fIThe UNIX Programming
135 Environment\fP by Kernighan and Pike
136 .[
137 kernighan pike unix prog env
138 .]
139 or \fIThe UNIX System\fP by Bourne.
140 .[
141 bourne unix system
142 .]
143 The reader is assumed to be a C programmer,
144 but the document should be understandable otherwise, too.
145 The definitive guide to C is Kernighan and Ritchie's
146 \fIThe C Programming Language\fP.
147 .[
148 kernighan ritchie c prog lang
149 .]
150 A book about system-level C programming, such as those written by
151 Rochkind and Curry,
152 .[
153 rochkind advanced unix prog
154 .]
155 .[
156 curry system prog
157 .]
158 can be helpful as additional literature.
159 Old books are likely more helpful for understanding,
160 because large parts of the source code are old.
161 The reader is expected to know the format of email messages and
162 the structure of email transfer systems, at least on a basic level.
163 It's advisable to have cross-read RFC\|821 and RFC\|822.
164 Furthermore, basic understanding of MIME [RFC\|2045\(en2049]
165 is good to have.
166 The Wikipedia provides good introduction-level information about email.
167 .[
168 wikipedia email
169 .]
170 .P
171 Frequent references to the Unix philosophy will be made.
172 Gancarz has tried to sum it up in his book
173 \fIThe UNIX Philosophy\fP.
174 .[
175 gancarz unix phil
176 .]
177 Even better, though less concrete, are \fIThe UNIX Programming
178 Environment\fP
179 .[
180 kernighan pike unix prog env
181 .]
182 and \fIThe Practice of Programming\fP
183 .[
184 kernighan pike practice of prog
185 .]
186 by Kernighan and Pike.
187 The term paper \fIWhy the Unix Philosophy still matters\fP
188 .[
189 why unix phil still matters schnalke
190 .]
191 by myself provides an overview on the philosophy,
192 including a case study of MH.
193 .P
194 Although a brief introduction to MH is provided in Section
195 .Cf mh ,
196 the reader is encouraged to have a look at
197 \fIMH & nmh: Email for Users & Programmers\fP by Jerry Peek.
198 .[
199 peek mh
200 .]
201 The current version is available freely on the Internet.
202 It is the definitive guide to MH and nmh.
203 .P
204 This document is neither a user's tutorial to mmh nor an introduction
205 to any of the topics covered.
206 The technical discussions are on an advanced level.
207 Nevertheless, as knowledge of the fundamental concepts is the most valuable
208 information a user can acquire about some program or software system,
209 this document may be worth a read for non-developers as well.
212 .U2 "Organization
213 .P
214 This thesis consists of three chapters.
215 Chapter 1 introduces into the topic, describing MH and explaining
216 the background and goals of the mmh project.
217 Chapter 2 discusses the work done in the project.
218 It is organized along the three major goals of the project, namely
219 streamlining, modernizing, and styling.
220 Not every change is described because that would bore the reader.
221 Instead, important changes and those standing for a set of similar
222 changes are described and discussed.
223 Chapter 3 finishes up by summarizing the achievements and taking
224 a look into the future of the mmh project.
225 .P
226 .I "Italic font
227 is used to emphasize new terms, and for names of software projects,
228 literature, and man pages.
229 .CW "Constant width font
230 is used to denote names of programs, files,
231 functions, command lines, code excerpts, program input and output.
232 .P
233 References to man pages are printed as ``\c
234 .Mp cat (1)''.
235 In this case it is a reference to the man page of
236 .Pn cat ,
237 which is in section one of the Unix manual.
238 \fIRequests for Comments\fP (RFCs), which describe the working
239 of the Internet, are referenced as ``RFC\|821''.
240 A list of relevant RFCs is located at the end of the document.
241 Literature is cited in brackets, such as
242 .[ ``[
243 kernighan pike unix programming env
244 .]]''.
245 Citations of email messages and websites are distinguished by
246 ``mail:'' and ``web:'' prefixes.
247 All references are collected at the end of the document.
248 The websites of the software projects mentioned are collected
249 in a list in the appendix.
250 .P
251 This document describes practical programming work.
252 The code of mmh is managed with the
253 .Pn git
254 version control system.
255 All code changes were checked in.
256 In the discussions, references to corresponding code changes are printed
257 as ``\c
258 .Ci 1a2b3c4 ''.
259 The identifier is the seven-letter-prefix of the changeset hash value,
260 which is considered unique.
261 A change can be looked up in the repository, on the command line with
262 .Cl "git show XXX" ,
263 replacing `\f(CWXXX\fP' with the concrete hash value or any unique prefix.
264 In this example:
265 .Cl "git show 1a2b3c4" .
266 At the time of writing, changesets can be looked up online at:
267 .CW "http://git.marmaro.de/?p=mmh;a=commitdiff;h=XXX" .
268 But as we all know, URIs are always at risk to change.
269 .P
270 Whenever lines of code were determined, David A. Wheeler's \fIsloccount\fP
271 was used to measure the amount in a comparable way.
274 .U2 "Acknowledgments
275 .P
276 .\"so thanks