# HG changeset patch # User markus schnalke # Date 1337528080 -7200 # Node ID 01d06ca2eb1b3619d2e28a9d82e42abbfdb2ce1e # Parent f12b22b0e29a9d432a22f3bd964527718445a077 Rework based on comments by Lydi. diff -r f12b22b0e29a -r 01d06ca2eb1b ch01.roff --- a/ch01.roff Sun May 20 12:11:42 2012 +0200 +++ b/ch01.roff Sun May 20 17:34:40 2012 +0200 @@ -2,6 +2,12 @@ .H0 "Introduction .P +MH is a set of mail handling tools with a common concept, similar to +the Unix tool chest, which is a set of file handling tools with a common +concept. \fInmh\fP is the currently most popular implementation of an +MH-like mail handling system. +This thesis describes an experimental version of nmh, named \fImmh\fP. +.P This chapter introduces MH, its history, concepts and how it is used. It describes nmh's code base and community to give the reader a better understanding of the state from which mmh started off. @@ -55,7 +61,7 @@ This should be done openly within the Internet community. The development of MH at UCI stopped after the 6.8.4 release in February 1996, soon after the development of nmh had started. -Today, nmh almost completely replaced the original MH. +Today, nmh almost completely replaces the original MH. Some systems might still provide old MH, but mainly for historical reasons. .P In the last years, the work on nmh was mostly maintenance work. @@ -63,10 +69,9 @@ .U2 "Concepts .P -MH is a tool chest, modeled after the Unix tool chest. It consists of a -set of tools, each covering a specific task of email handling, like -composing a message, replying to a message, refiling a message to a -different folder, listing the messages in a folder. +MH consists of a set of tools, each covering a specific task of +email handling, like composing a message, replying to a message, +refiling a message to a different folder, listing the messages in a folder. All of the programs operate on a common mail storage. .P The mail storage consists of \fImail folders\fP (directories) and @@ -107,11 +112,14 @@ As the MH tool chest was modeled after the Unix tool chest, the properties of the latter apply to the former as well. +.U2 "A Tour through MH +.P +XXX cf. peek; why UP still matters; real work. .U2 "Example Session .P -Following is an example mail handling session with mmh. -It should be mostly compatible with nmh and old MH. +Following is an example mail handling session. +It uses mmh but is mostly compatible with nmh and old MH. Details might vary but the look'n'feel is the same. .DS $ \f(CBinc\fP @@ -155,6 +163,8 @@ .P In order to understand the condition, goals and dynamics of a project, one needs to know the reasons. +This section explains the background. +.P MH predates the Internet, it comes from times before networking was universal, it comes from times when emailing was small, short and simple. Then it grew, spread and adopted to the changes email went through. @@ -209,68 +219,49 @@ .H1 "mmh .P I started to work on my experimental version in October 2011, -when there were no more than three commits to nmh in the previous nine months.. -In December, when I announced my work on the nmh-workers mailing list, +at a time when there were no more than three commits to nmh +since the beginning of the year. +In December, when I announced my work in progress on the +nmh-workers mailing list, .[ nmh-workers mmh announce December .] -the activity in nmh rose much. -Suddenly, the community started to move. +nmh's community became active, too. This movement was heavily pushed by Paul Vixie's ``edginess'' comment. .[ nmh-workers vixie edginess .] -After long years of much stagnation, nmh became actively developed again. +After long years of stagnation, nmh became actively developed again. Hence, while I was working on mmh, the community was working on nmh, in parallel. .P -The name \fImmh\fP stands for \fImeillo's mail handler\fP, -because mmh is my own version of MH. +The name \fImmh\fP may stand for \fImodern mail handler\fP, +because the project tries to modernize nmh. +Personally however, I prefer to call mmh \fImeillo's mail handler\fP, +emphasizing that the project follows my visions and preferences. (My login name is \fImeillo\fP.) -The project follows my personal considerations and preferences. -By calling it a personal project, I don't need to justify my decisions, -though, still I like to do. -This enabled me to follow my vision straightly and thus produce -a result of greater pureness. -This project model was inspired by the window manager \fIdwm\fP, +This project model was inspired by \fIdwm\fP, which is Anselm Garbe's personal window manager \(en targeted to satisfy Garbe's personal needs whenever conflicts appear. -dwm had remained much more focused on its original goals, -whereas its community-driven predecessor \fIwmii\fP had -grown big and lost it's lean elegance. -This should not happen to mmh. -.P -Mmh also stands for \fImodern mail handler\fP, and this is -the variant chosen to entitle this document. One main focus of the -project was to modernize nmh. Another main goal is resembled in the -name \fIminimized mail handler\fP: Drop any parts that don't add -to the main task of mmh, being a conceptionally appealing MUA. -.P -It should also be noted that \fLstrcmp("mmh","nmh")<0\fP is true. -Although mmh bases on nmh, it is likely seen as a step backward. -I agree. -However, this step backward actually is a step forward, -although in a different direction. +Dwm had retained its lean elegance and its focused character, whereas +its community-driven predecessor \fIwmii\fP had grown fat over time. +The development of mmh should remain focused. -.H1 "This Thesis - .U2 "Motivation .P MH is the most important of very few command line tool chest email systems. -(There's also \fIim\fP by Tatsuya Kinoshita, -which operates on an MH mail storage.) Tool chests are powerful because they can be perfectly automated and -extended. Tool chests are good back-ends for various sorts of front-ends. -They allow multiple front-ends for different special needs -to be implemented quickly and without internal knowledge on emailing. -Further more, tool chests are much better to maintain than large monolithic +extended. They allow arbitrary kinds of front-ends to be +implemented on top of them quickly and without internal knowledge. +Additionally, tool chests are much better to maintain than monolithic programs. -As there are few tool chests for emailing and MH-like ones are the most -popular among them, they should be developed further to keep their +As there are few tool chests for emailing and as MH-like ones are the most +popular among them they should be developed further. +This keeps their conceptional elegance and unique scripting qualities available to users. -mmh will create a modern and convenient entry point for new, interested -users to MH-like systems. +Mmh will create a modern and convenient entry point to MH-like systems +for new and interested users. .P The mmh project is motivated by deficits of nmh and my wish for general changes, combined @@ -286,7 +277,7 @@ In my eyes, MH's concepts could be exploited even better and the style of the tools could be improved. Both would simplify and generalize the system, providing cleaner interfaces and more -software leverage, at the same time. +software leverage at the same time. mmh is a way to demonstrate this. .P In providing several parts of an email system, nmh can hardly @@ -305,7 +296,6 @@ In developing a separate experimental version new approaches can easily be tried out without the need to discuss changes beforehand. In fact, revolutionary changes are hardly possible otherwise. -These reasons support the decision to start mmh as a fork of nmh. .P The mmh project provides the basis to implemented and demonstrated the listed ideas without the need to change nmh or its community. @@ -317,6 +307,7 @@ in order to be successful. Following is a description of the imagined typical mmh user. mmh should satisfy his needs. +.\" XXX Remove the next sentence? Actually, as mmh is my personal version of MH, this is a description of myself. .P @@ -364,7 +355,8 @@ Mmh should be stripped down to its core, which is the MUA part of emailing. The feature set should be distilled to the ones really needed, effectively removing corner-cases. -Functions that are not related to the main task should be removed. +Parts that don't add to the main task of being a conceptionally +appealing MUA should be removed. This includes, the MTA and MRA facilities. Choice should be reduced to the main options. .IP "Modernizing diff -r f12b22b0e29a -r 01d06ca2eb1b ch04.roff --- a/ch04.roff Sun May 20 12:11:42 2012 +0200 +++ b/ch04.roff Sun May 20 17:34:40 2012 +0200 @@ -4,6 +4,13 @@ Because of several circumstances, my experimental version is rather a fork today, although this may change again in the future. -.H1 "Outlook .P -foo +Although mmh bases on nmh, it is likely seen as a step backward. +I agree. +However, this step backward actually is a step forward, +although in a different direction. + +.P +.\" Top candidate for the final sentence: +This enabled me to follow my vision straightly and thus produce +a result of greater pureness. diff -r f12b22b0e29a -r 01d06ca2eb1b preface.roff --- a/preface.roff Sun May 20 12:11:42 2012 +0200 +++ b/preface.roff Sun May 20 17:34:40 2012 +0200 @@ -1,28 +1,18 @@ .H0 "Preface" no .P -MH is a set of mail handling tools with a common concept, similar to -the Unix tool chest, which is a set of file handling tools with a common -concept. nmh is the currently most popular implementation of an -MH-like mail handling system. -This thesis describes an experimental version of nmh, named \fImmh\fP. - -.U2 "Background to this Thesis -.P -I have discovered nmh in September 2009. At that time I used to use the -mail client \fImutt\fP, as many advanced Unix users do. -As I read about nmh, its concepts had convinced me at once. -Learning its different model of email handling had been relatively easy, -because my starting situation was being convinced of the concepts. +I have discovered the mail client \fInmh\fP in September 2009. +At that time I used to use \fImutt\fP, as many advanced Unix users do. +When I read about nmh, its concepts had convinced me at once. The transition from mutt to nmh was similar to -managing files in the Unix shell when being used to graphical file -managers, or like editing with vi when being used to modeless editors. +managing files in the Unix shell when being used to the +\fImidnight commander\fP, +or like editing with vi when being used to modeless editors. Such a change is not trivial, but in being convinced by the concepts and by having done similar transitions for file management -and editing already, it was neither too difficult. +and editing already, it was not too difficult. In contrast, setting up nmh to a convenient state became a tedious task that took several months. -.P Once having nmh arranged to a convenient state, I enjoyed using it because of its conceptional elegance and its scripting capabilities. On the other hand, nevertheless, it still was @@ -35,16 +25,17 @@ I wanted to improve the situation. .P In Spring 2010, I asked on the \fInmh-workers\fP mailing list for the -possibility to offer a Google Summer of Code project. -Participating in the development this way appeared attractive to me, -because it would have been possible to have the project -accepted at university. Although generally the nmh community -had been positive on the -suggestion, the administrative work had been to much, eventually. -But my proposal had activated the nmh community. +possibility to offer a Google Summer of Code project for me. +Participating in the development of nmh this way appeared attractive to me, +because I would have been able to work full time on nmh as the project +could have been part of my official studies at university. +Although the nmh community had been generally positive on the suggestion, +the administrative work for a GSoC project had been to much to have +it realized. +Nontheless, my proposal had activated the nmh community. In the following weeks, goals for nmh's future were discussed. In these discussions, I became involved in the -question whether nmh should be an MTA. +question whether nmh should include mail transfer facilities. .[ nmh-workers thread mta mua .] @@ -56,51 +47,50 @@ .P Half a year later, starting in August 2010, I took one semester off to travel through Latin America. -Within this time, I had to do practical computer work for three months. +During my time in Argentina, I planned to work on Free Software. This brought me back to nmh. -Richard Sandelman, an active nmh user, made it possible for -me to work on nmh. Juan Granda, living in Santiago del -Estero in Argentina, provided a computer with Internet connection for -my work. Thanks to them, I was able to work on nmh during my three-month -stay in Argentina. -Within this time, I became familiar with nmh's code base and -community. I learned how things work. Quickly it became obvious that -I wouldn't succeed with my main goal: improving the character -encoding handling within the project. One of its ramifications is the +Richard Sandelman, an active nmh user, cared for the official basis. +Juan Granda, an argentine Free Software developer, +provided a computer with Internet connection for my work. +Thanks to them, I was able to work on nmh during my three-month +stay in Santiago del Estero in Argentina. +Quickly it became obvious that I wouldn't succeed with my main goal: +improving the character encoding handling within the project. +One of its ramifications is the missing transfer decoding of quoted text in replies. As this is one of the most intricate parts of the system, the goal -was simply set too high. Hence, I dropped the original plan. -Instead, I improved the code base as I read through it. I found minor bugs -for which I proposed fixes to the community. In the same go, I -improved the documentation in minor ways. When I started with -larger code changes, I had to discover that the community was reluctant -to change. Its wish for compatibility was much stronger than its +was simply set too high. +Instead, I improved the code base as I read through it. +I found minor bugs for which I proposed fixes to the community. +In the same go, I improved the documentation in minor ways. +When I started with larger code changes, +I had to discover that the community was reluctant to change. +Its wish for compatibility was much stronger than its wish for convenient out-of-the-box setups \(en in contrast to my opinion. This led to long discussions, again. -I came to understand their point of view, but it is different to mine. +I came to understand their point of view, but it was different to mine. At the end of my three-month project, I had become familiar with -nmh's code base and community. I had improved the project in minor ways, +nmh's code base and community. +I had improved the project in minor ways, and I still was convinced that I wanted to go on to do so. .P -Another half a year later, the end of my studies came within reach. +Another half year later, the end of my studies came within reach. I needed a topic for my master's thesis. No question, I wanted to work on nmh. -But well, not exactly on nmh, -because I had accepted that the nmh community has different goals -than I have. This would result in much discussion and thus little progress. +But well, not exactly on nmh, because I had accepted that the +nmh community has different goals than I have. +This would result in much discussion and thus little progress. After careful thought, I decided to start an experimental version of nmh. I wanted to implement my own ideas of how an MH-like system should look like. -I wanted to see where that would lead to. I wanted to create a usable alternative version to be compared with the present state of nmh. -My work should be proved successful or failed. -The nmh project would not be hurt by my work, but -it would profit from my experiences. +Eventually, my work would be proven successful or not. +In any case, the nmh project would profit from my experiences. .U2 "Focus of this Document .P -This document describes my work on mmh. -It explains the changes to nmh, with focus on their reasons. +This document explains the design goals and implementation decisions +for mmh. It discusses technical, historical, social and philosophical considerations. On the technical side, this document explains how an existing project was stream-lined by removing rough edges @@ -110,23 +100,21 @@ as well as the reactions to them, are discussed. Socially, this document describes the effects and experiences of a newcomer with revolutionary aims entering an old -and matured software projects. -Finally, philosophical thoughts on style, mainly based to the Unix philosophy, -are present throughout the discussions. +and matured software project. +Philosophical thoughts on style, mainly based to the Unix +philosophy, are present throughout the discussions. +The document describes the changes to nmh, +but as well, it clarifies my personal perception of the +concepts of MH and Unix, and explain my therefrom resulting point of view. .P This document is written for the community around MH-like mail systems, including developers and users. -First, the document explains the design goals and -implementation decisions for mmh. But as well, it clarifies my -personal perception of the -concepts of MH and Unix, and explain my therefrom resulting point of view. Despite the focus on MH-like systems, this document is may be precious to anyone interested in the Unix philosophy and anyone in contact to old software projects, be it code or community-related. .P -The reader is expected to have good knowledge of Unix, C and emailing. -Good Unix shell -knowledge, including shell scripting, is required. MH relies fundamentally +The reader is expected to be well familiar with Unix, C and emailing. +Good Unix shell knowledge is required, because MH relies fundamentally on the shell. Without the power of the shell, MH becomes a motorbike without winding roads: boring. Introductions to Unix and its shell can be found in ``The UNIX Programming @@ -138,14 +126,13 @@ .[ bourne unix system .] -The reader is -expected to be familiar with the C programming language, although the -document should be understandable without knowledge of C, too. -``The C Programming Language'' by Kernighan and Ritchie +The reader is assumed to be a C programmer, +but the document should be understandable otherwise, too. +The definitive guide to C is Kernighan and Ritchie's +``The C Programming Language''. .[ kernighan ritchie c prog lang .] -is the definitive guide to C. Some book about system-level C programming can be helpful additional literature. Rochkind and Curry have written such books. .[ @@ -154,15 +141,16 @@ .[ curry system prog .] -As large parts of the code are old, old books are likely more helpful -to understanding. -The format of email messages as well as the structure of email transfer -systems should be familiar to the reader, at least on a basic level. -It's advisable to have at least cross-read the RFCs 821 and 822. +As large parts of the source code are old, +old books are likely more helpful for understanding. +The reader is expected to know the format of email messages and +the structure of email transfer systems, at least on a basic level. +It's advisable to have cross-read the RFCs 821 and 822. Further more, basic understanding of MIME is good to have. The Wikipedia provides good introduction-level information to email. +.P Frequent references to the Unix philosophy will be made. -Gancarz had tried to sum the philosophy up in his book +Gancarz has tried to sum it up in his book ``The UNIX Philosophy''. .[ gancarz unix phil @@ -181,18 +169,20 @@ why unix phil still matters schnalke .] by myself -provides an overview on the topic, including a case study of MH. +provides an overview on the philosophy, including a case study of MH. +.P Although a brief introduction to MH is provided in Chapter 1, the reader -is encouraged to have a look at the \fIMH Book\fP by Jerry Peek. +is encouraged to have a look at the \fIMH Book\fP +``MH & nmh: Email for Users & Programmers'' by Jerry Peek. .[ peek mh .] +The current version is available freely on the Internet. It is the definitive guide to MH and nmh. -The current version is available freely on the Internet. .P This document is neither a user's tutorial to mmh nor an introduction -to any of the topics covered. It discusses Unix, email -and system design on an advanced level. +to any of the topics covered. +The technical discussions are on an advanced level. Nevertheless, as knowledge of the fundamental concepts is the most valuable information a user can acquire about some program or software system, this document may be worth a read for non-developers as well.