3 nedmail \- reading mail
24 The default mailbox is
25 .BI /mail/box/ username /mbox\f1.
28 command line option specifies an alternate mailbox.
29 Unrooted path names are interpreted relative to
30 .BI /mail/box/ username.
33 argument is omitted, the name defaults to
42 is specified, the new mailbox is created in
43 .BI /mail/box/ username / dir /mbox\f1.
44 Otherwise, the default mailbox is created.
47 Reverse: show messages in first-in, first-out order; the default is last-in, first-out.
50 Make the message numbers the same as the file names in the mail
51 box directory. This implies the
56 Read messages from the specified file (see above) instead of the default mailbox.
59 Read a single message file
63 and treat it as an entire mailbox.
65 use in plumbing rules; see
70 starts by reading the mail box, printing out the number
71 of messages, and then prompting for commands from standard input.
78 The command is applied to each message in the (optional) range.
80 The address range can be:
83 to indicate a single message header
87 to indicate a range of contiguous message headers
90 to indicate all messages whose headers match the regular
94 to indicate all messages whose contents match the regular
101 to indicate a particular message
105 to indicate a subpart of a particular message
108 to indicate the next message whose header matches
112 to indicate the next message whose contents match
116 to indicate the current message
119 to indicate backwards search or movement
122 Since messages in MIME are hierarchical
125 all the subparts are individually addressable.
126 For example if message 2 contains 3 attachments,
127 the attachments are numbered 2.1, 2.2, and 2.3.
132 Reply to all addresses in the
139 is used to format the reply and any arguments the
140 user specifies are added to the command line to
142 before the recipient.
143 The possibility of making a fool of yourself is very
144 high with this command.
151 appended to the reply.
154 Print the headers for the next ten messages.
157 Mark message to be deleted upon exiting
161 Append the message to the file
162 .BI /mail/box/ username / sendername
165 is the account name of the sender.
168 Print the disposition, size in characters, reception time, sender,
169 and subject of the message.
172 Print the MIME structure of the message.
175 Print a summary of the commands.
178 Forward the message as a mime attachment to the named
184 but allow the user to type in text to be included
185 with the forwarded message.
189 An interrupt stops the printing.
192 Reply to the sender of the message.
194 is used to format the reply.
197 are specified, they are added to the command line to
199 before the recipient's address.
204 but with the original message included as an attachment.
209 but append the message and the reply to the file
210 .BI /mail/box/ username / sendername
213 is the account name of the sender.
218 but append the message and the reply to the file
219 .BI /mail/box/ username / sendername
222 is the account name of the sender.
225 Append the message to the specified mailbox.
228 doesn't start with a `/', it is interpreted relative to the directory in which the mailbox resides.
231 is a directory then the destination is a file in that directry.
232 If the MIME header specifies a file name, that one is used.
233 Otherwise, one is generated using
236 .BR att.XXXXXXXXXXX .
239 Put undeleted mail back in the mailbox and stop.
248 with the mail header line(s) stripped. This can be used to
249 save binary mail bodies.
252 Remove mark for deletion.
255 Exit, without changing the mailbox file.
258 Synchronize with the mail box. Any deleted
259 messages are purged and any new messages read.
260 This is equivalent to quiting nedmail and restarting.
265 with the message body as standard input.
270 with the whole message as standard input.
273 Escape to the shell to do
277 Print the number of the current message.
280 Here's an example of a mail session that looks at a summary
281 of the mail messages, saves away an html file added as an
282 attachment to a message and then deletes the message:
288 1 H 2129 07/22 12:30 noone@madeup.net "Add Up To 2000 free miles"
289 2 504 07/22 11:43 jmk
290 3 H 784 07/20 09:05 presotto
291 4 822 07/11 09:23 xxx@yyy.net "You don't call, you don't write..."
292 5 193 07/06 16:55 presotto
293 6 529 06/01 19:42 jmk
294 7 798 09/02 2000 howard
296 1 multipart/mixed 2129 from=noone@madeup.net
298 1.2 text/html 1705 filename=northwest.htm
299 : 1.2w /tmp/northwest.html
300 !saved in /tmp/northwest.html
307 Notice that the delete of message 1.2 deleted the entire message and
308 not just the attachment.
310 .TF /mail/box/*/dead.letter
318 .B /mail/box/*/forward
319 forwarding address(es)
321 .B /mail/box/*/pipeto
324 .B /mail/box/*/L.reading
325 mutual exclusion lock for multiple mbox readers
327 .B /mail/box/*/L.mbox
328 mutual exclusion lock for altering mbox
330 .B /sys/src/cmd/upas/ned