home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL)))) UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL))))
-
-
-
- NNNNAAAAMMMMEEEE
- readmsg - extract messages from a mail folder
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- rrrreeeeaaaaddddmmmmssssgggg [----aaaannnnhhhhpppp] [----ffff folder] [selection ...]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _R_e_a_d_m_s_g extracts selected mail messages from a mail folder.
- One helpful use of the program is when you are composing a
- response to a mail message in an external editor. In this
- case, you can run _r_e_a_d_m_s_g to pull a copy of the original
- message into the editing buffer.
-
- When you run _r_e_a_d_m_s_g from within _e_l_m (e.g. from a subshell
- escape or in an external editor while composing a mail
- reply) it behaves a bit differently from when you run it
- directly (e.g. from a shell command line). We will first
- describe its normal behavior, and then describe how it is
- different when you run it under _e_l_m.
-
- You tell _r_e_a_d_m_s_g which messages to extract with the
- _s_e_l_e_c_t_i_o_n argument. There are a couple of possible
- different ways to specify the _s_e_l_e_c_t_i_o_n.
-
- 1. A lone ``*'' means select all messages in the mailbox.
-
- 2. A list of message numbers may be specified. Values of
- ``0'' and ``$'' in the list both mean the last message
- in the mailbox. For example:
-
- readmsg 1 3 0
-
- extracts three messages from the folder: the first,
- the third, and the last.
-
- 3. Finally, the _s_e_l_e_c_t_i_o_n may be some text to match. This
- will select a mail message which _e_x_a_c_t_l_y matches the
- specified text. For example,
-
- readmsg staff meeting
-
- _e_x_t_r_a_c_t_s _t_h_e _m_e_s_s_a_g_e _w_h_i_c_h _c_o_n_t_a_i_n_s _t_h_e _w_o_r_d_s ``_s_t_a_f_f
- _m_e_e_t_i_n_g.'' _N_o_t_e _t_h_a_t _i_t _w_i_l_l _n_o_t match a message
- containing ``Staff Meeting'' the matching is case
- sensitive. Normally only the first message which
- matches the pattern will be printed. The ----aaaa option
- discussed in a moment changes this.
-
- The ----ffff flag indicates that you'd rather use the folder
- specified rather than the default incoming mailbox. The
- specified _f_o_l_d_e_r can be a filename or a specification such
- as ``=sentmail''.
-
-
-
- Page 1 (printed 7/15/95)
-
-
-
-
-
-
- RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL)))) UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL))))
-
-
-
- The ----hhhh flag instructs the program to include the entire
- header of the matched message or messages when displaying
- their text. (default is to display the From: Date: and
- Subject: lines only)
-
- The ----nnnn flag instructs the program to exclude _a_l_l headers.
- This is used mostly for extracting files mailed and such.
-
- The ----pppp flag indicates that the program should put form-feeds
- (control-L) between message headers.
-
- The ----aaaa flag indicates that all messages which match the
- pattern specified on the command line should be printed, not
- just the first. If a pattern was not specified on the
- command line then this flag has no effect.
-
- When you run _r_e_a_d_m_s_g under _e_l_m (once again, say in the
- context of an external editor) the behavior will be
- different from that described above as follows.
-
- 1. The default mail folder will be the folder you are
- currently examining in _e_l_m and not necessarily your
- incoming mail folder.
-
- 2. You do not need to specify a _s_e_l_e_c_t_i_o_n on the command
- line. If you omit the _s_e_l_e_c_t_i_o_n then _r_e_a_d_m_s_g will
- extract the message(s) you have selected in Elm. If
- you have tagged any messages then this would be all of
- the tagged messages, otherwise it would be the message
- you are currently examining.
-
- 3. Normally the message numbers _r_e_a_d_m_s_g uses are in
- mailbox order. When you call _r_e_a_d_m_s_g under _e_l_m and do
- not override the folder selection with the ----ffff option,
- then message numbers will be sorted as they are
- displayed on the _e_l_m message index screen.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- First off, to use this from within vvvviiii to include the text of
- the current message, you could use the command:
-
- :r !readmsg
-
- (as you hit the ':' the editor will put you at the bottom of
- the screen with the ':' prompt). The space following ':r'
- is required.
-
-
- Let's look at something more interesting, however;
-
- Suppose you have the mail file;
-
-
-
-
- Page 2 (printed 7/15/95)
-
-
-
-
-
-
- RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL)))) UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL))))
-
-
-
- From joe Jun 3 1986 4:45:30 MST
- Subject: hello
-
- Hey Guy! Wanta go out and have a milk this evening?
-
- Joe
-
- From john Jun 3 1986 4:48:20 MST
- Subject: Dinner at Eight
- From: John Dinley <xyz!john>
-
- Remember you should show up about eight, okay?
-
- - John D -
-
- From xxzyz!cron Jun 3 1986 5:02:43 MST
-
- Cannot connect to server: blob
- Job 43243 deleted from queue.
-
- The following commands will result in;
-
- $ readmsg 2
- [ display the second message, from John ]
-
- $ readmsg
- [ an error, unless we're calling from _e_l_m ]
-
- $ readmsg BLOB
- [ no match - case sensitive! ]
-
- $ readmsg -h connect to server
- [ displays third message, including headers ]
-
-
- FFFFIIIILLLLEEEESSSS
- /usr/mail/<username> The incoming mail
- $ELMSTATE Status information from _e_l_m
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Elm Development Group
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- newmail(1L), elm(1L)
-
- BBBBUUUUGGGGSSSS
- The '*' metacharacter doesn't always work as expected!
- Perhaps the pattern matching should be case insensitive?
- It might be confusing that messages are sorted when running
- under _e_l_m with the current folder, and in mailbox order for
- all other cases.
-
-
-
-
- Page 3 (printed 7/15/95)
-
-
-
-
-
-
- RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL)))) UUUUSSSSEEEENNNNEEEETTTT CCCCoooommmmmmmmuuuunnnniiiittttyyyy TTTTrrrruuuusssstttt ((((EEEEllllmmmm VVVVeeeerrrrssssiiiioooonnnn 2222....4444)))) RRRREEEEAAAADDDDMMMMSSSSGGGG((((1111LLLL))))
-
-
-
- BBBBUUUUGGGG RRRREEEEPPPPOOOORRRRTTTTSSSS TTTTOOOO
- Syd Weinstein elm@DSI.COM (dsinc!elm)
-
- CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTTSSSS
- Copyright 1988-1992 by The USENET Community Trust
- Derived from Elm 2.0, Copyright 1986, 1987 by Dave Taylor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 7/15/95)
-
-
-
-