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.
188 Print message. An interrupt stops the printing.
191 Reply to the sender of the message.
193 is used to format the reply.
196 are specified, they are added to the command line to
198 before the recipient's address.
203 but with the original message included as an attachment.
208 but append the message and the reply to the file
209 .BI /mail/box/ username / sendername
212 is the account name of the sender.
217 but append the message and the reply to the file
218 .BI /mail/box/ username / sendername
221 is the account name of the sender.
224 Append the message to the specified mailbox.
227 doesn't start with a `/', it is interpreted relative to the directory in which the mailbox resides.
230 is a directory then the destination is a file in that directry.
231 If the MIME header specifies a file name, that one is used.
232 Otherwise, one is generated using
235 .BR att.XXXXXXXXXXX .
238 Put undeleted mail back in the mailbox and stop.
247 with the mail header line(s) stripped. This can be used to
248 save binary mail bodies.
251 Remove mark for deletion.
254 Exit, without changing the mailbox file.
257 Synchronize with the mail box. Any deleted
258 messages are purged and any new messages read.
259 This is equivalent to quiting nedmail and restarting.
264 with the message body as standard input.
269 with the whole message as standard input.
272 Escape to the shell to do
276 Print the number of the current message.
279 Here's an example of a mail session that looks at a summary
280 of the mail messages, saves away an html file added as an
281 attachment to a message and then deletes the message:
287 1 H 2129 07/22 12:30 noone@madeup.net "Add Up To 2000 free miles"
288 2 504 07/22 11:43 jmk
289 3 H 784 07/20 09:05 presotto
290 4 822 07/11 09:23 xxx@yyy.net "You don't call, you don't write..."
291 5 193 07/06 16:55 presotto
292 6 529 06/01 19:42 jmk
293 7 798 09/02 2000 howard
295 1 multipart/mixed 2129 from=noone@madeup.net
297 1.2 text/html 1705 filename=northwest.htm
298 : 1.2w /tmp/northwest.html
299 !saved in /tmp/northwest.html
306 Notice that the delete of message 1.2 deleted the entire message and
307 not just the attachment.
309 .TF /mail/box/*/dead.letter
317 .B /mail/box/*/forward
318 forwarding address(es)
320 .B /mail/box/*/pipeto
323 .B /mail/box/*/L.reading
324 mutual exclusion lock for multiple mbox readers
326 .B /mail/box/*/L.mbox
327 mutual exclusion lock for altering mbox
329 .B /sys/src/cmd/upas/ned