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