comparison ch03.roff @ 82:ff4537327162

Mayor rework: Replaced .DS with .VS, a better verbatim environment. VS is no Keep. By translating characters in the typewriter fonts, we don't need to escape the minus, backtick and single quote characters.
author markus schnalke <meillo@marmaro.de>
date Wed, 06 Jun 2012 17:58:09 +0200
parents 64f177ca2af1
children c35ec2b7de5d
comparison
equal deleted inserted replaced
81:5fb821ed6f3c 82:ff4537327162
221 variable or graphical notifications are more appealing. 221 variable or graphical notifications are more appealing.
222 Writing directly to a terminals is hardly ever wanted today. 222 Writing directly to a terminals is hardly ever wanted today.
223 If though one wants to have it this way, the standard tool 223 If though one wants to have it this way, the standard tool
224 .Pn write 224 .Pn write
225 can be used in a way similar to: 225 can be used in a way similar to:
226 .DS 226 .VS
227 scan -file - | write `id -un` 227 scan -file - | write `id -un`
228 .DE 228 VE
229 .BU 229 .BU
230 .Pn viamail 230 .Pn viamail
231 was removed when the new attachment system was activated, because 231 was removed when the new attachment system was activated, because
232 .Pn forw 232 .Pn forw
233 could then cover the task itself. 233 could then cover the task itself.
242 was removed, because it lost its use case when POP support was removed. 242 was removed, because it lost its use case when POP support was removed.
243 .Ci bb9360ead7eb7a3fedcce2eeedfc660014e41dbe 243 .Ci bb9360ead7eb7a3fedcce2eeedfc660014e41dbe
244 A call to 244 A call to
245 .Pn msgchk 245 .Pn msgchk
246 provided hardly more information than 246 provided hardly more information than
247 .DS 247 .VS
248 ls -l /var/mail/meillo 248 ls -l /var/mail/meillo
249 .DE 249 VE
250 though it distinguished between old and new mail. 250 though it distinguished between old and new mail.
251 This detail information and can be retrieved with 251 This detail information and can be retrieved with
252 .Pn stat (1), 252 .Pn stat (1),
253 too. 253 too.
254 A very small shell script could be written to output the information 254 A very small shell script could be written to output the information
368 with the existing ones. 368 with the existing ones.
369 Modular design is a great advantage for extending a system. 369 Modular design is a great advantage for extending a system.
370 First, the new MIME features were added in form of the single program 370 First, the new MIME features were added in form of the single program
371 .Pn mhn . 371 .Pn mhn .
372 The command 372 The command
373 .Cl "mhn \-show 42 373 .Cl "mhn -show 42
374 would show the MIME message numbered 42. 374 would show the MIME message numbered 42.
375 With the 1.0 release of nmh in February 1999, Richard Coleman finished 375 With the 1.0 release of nmh in February 1999, Richard Coleman finished
376 the split of 376 the split of
377 .Pn mhn 377 .Pn mhn
378 into a set of specialized programs, which together covered the 378 into a set of specialized programs, which together covered the
379 multiple aspects of MIME. One of these resulting tools was 379 multiple aspects of MIME. One of these resulting tools was
380 .Pn mhshow , 380 .Pn mhshow ,
381 which replaced the 381 which replaced the
382 .Cl "mhn \-show 382 .Cl "mhn -show
383 call. 383 call.
384 It was capable to display a MIME message appropriately. 384 It was capable to display a MIME message appropriately.
385 .P 385 .P
386 From then on, two message display tools were part of nmh: 386 From then on, two message display tools were part of nmh:
387 .Pn show 387 .Pn show
918 The check only prevented a pager to be placed between the outputting 918 The check only prevented a pager to be placed between the outputting
919 program (\c 919 program (\c
920 .Pn mhl ) 920 .Pn mhl )
921 and the terminal. This could have been ensured with 921 and the terminal. This could have been ensured with
922 the 922 the
923 .Sw \-nomoreproc 923 .Sw -nomoreproc
924 at the command line statically, too. 924 at the command line statically, too.
925 925
926 .U2 "Removed support for header fields 926 .U2 "Removed support for header fields
927 .P 927 .P
928 The `Encrypted' header had been introduced by RFC\^822, but already 928 The `Encrypted' header had been introduced by RFC\^822, but already
969 The program 969 The program
970 .Pn prompter 970 .Pn prompter
971 queries the user to fill in a message form. When used by 971 queries the user to fill in a message form. When used by
972 .Pn comp 972 .Pn comp
973 as: 973 as:
974 .DS 974 .VS
975 comp \-editor prompter 975 comp -editor prompter
976 .DE 976 VE
977 the resulting behavior is similar to 977 the resulting behavior is similar to
978 .Pn mailx . 978 .Pn mailx .
979 Apparently, 979 Apparently,
980 .Pn prompter 980 .Pn prompter
981 hadn't been touched lately. Otherwise it's hardly explainable why it 981 hadn't been touched lately. Otherwise it's hardly explainable why it
982 still offered the switches 982 still offered the switches
983 .Sn \-erase \fUchr\fP 983 .Sw "-erase \f(CIchr\fP
984 and 984 and
985 .Sn \-kill \fUchr\fP 985 .Sw "-kill \f(CIchr\fP
986 to name the characters for command line editing. 986 to name the characters for command line editing.
987 The times when this had been necessary are long time gone. 987 The times when this had been necessary are long time gone.
988 Today these things work out-of-the-box, and if not, are configured 988 Today these things work out-of-the-box, and if not, are configured
989 with the standard tool 989 with the standard tool
990 .Pn stty . 990 .Pn stty .
1223 The trivial part of the change was activating the draft folder facility 1223 The trivial part of the change was activating the draft folder facility
1224 by default and setting a default name for this folder. Obviously, I chose 1224 by default and setting a default name for this folder. Obviously, I chose
1225 the name 1225 the name
1226 .Fn +drafts . 1226 .Fn +drafts .
1227 This made the 1227 This made the
1228 .Sw \-draftfolder 1228 .Sw -draftfolder
1229 and 1229 and
1230 .Sw \-draftmessage 1230 .Sw -draftmessage
1231 switches useless, and I could remove them. 1231 switches useless, and I could remove them.
1232 The more difficult but also the part that showed the real improvement, 1232 The more difficult but also the part that showed the real improvement,
1233 was updating the tools to the new concept. 1233 was updating the tools to the new concept.
1234 .Sw \-draft 1234 .Sw -draft
1235 switches could 1235 switches could
1236 be dropped, as operating on a draft message became indistinguishable to 1236 be dropped, as operating on a draft message became indistinguishable to
1237 operating on any other message for the tools. 1237 operating on any other message for the tools.
1238 .Pn comp 1238 .Pn comp
1239 still has its 1239 still has its
1240 .Sw \-use 1240 .Sw -use
1241 switch for switching between its two modes: (1) Compose a new 1241 switch for switching between its two modes: (1) Compose a new
1242 draft, possibly by taking some existing message as a form. (2) Modify 1242 draft, possibly by taking some existing message as a form. (2) Modify
1243 an existing draft. In either case, the behavior of 1243 an existing draft. In either case, the behavior of
1244 .Pn comp is 1244 .Pn comp is
1245 deterministic. There is no more need to query the user. I consider this 1245 deterministic. There is no more need to query the user. I consider this
1266 being prepended to the file name. Thus, MH wouldn't recognize the file 1266 being prepended to the file name. Thus, MH wouldn't recognize the file
1267 as a message anymore, as only files whose name consists of digits only 1267 as a message anymore, as only files whose name consists of digits only
1268 are treated as messages. The removed messages remained as files in the 1268 are treated as messages. The removed messages remained as files in the
1269 same directory and needed some maintenance job to truly delete them after 1269 same directory and needed some maintenance job to truly delete them after
1270 some grace time. Usually, by running a command similar to 1270 some grace time. Usually, by running a command similar to
1271 .DS 1271 .VS
1272 find /home/user/Mail \-ctime +7 \-name ',*' | xargs rm 1272 find /home/user/Mail -ctime +7 -name ',*' | xargs rm
1273 .DE 1273 VE
1274 in a cron job. Within the grace time interval 1274 in a cron job. Within the grace time interval
1275 the original message could be restored by stripping the 1275 the original message could be restored by stripping the
1276 the backup prefix from the file name. If however, the last message of 1276 the backup prefix from the file name. If however, the last message of
1277 a folder is been removed \(en say message 1277 a folder is been removed \(en say message
1278 .Fn 6 1278 .Fn 6
1333 message to the trash folder (\c 1333 message to the trash folder (\c
1334 .Fn +trash 1334 .Fn +trash
1335 by default). Messages 1335 by default). Messages
1336 there can be operated on like on any other message in the storage. 1336 there can be operated on like on any other message in the storage.
1337 The sweep clean, one can use 1337 The sweep clean, one can use
1338 .Cl "rmm \-unlink +trash a" , 1338 .Cl "rmm -unlink +trash a" ,
1339 where the 1339 where the
1340 .Sw \-unlink 1340 .Sw -unlink
1341 switch causes the files to be truly unliked instead 1341 switch causes the files to be truly unliked instead
1342 of moved to the trash folder. 1342 of moved to the trash folder.
1343 1343
1344 1344
1345 .H2 "Path Notations 1345 .H2 "Path Notations