Subject: Re: Pine versus elm, how to pipe to commands

From: Frederic Udina <[email-masked]>
Date: Wed, 11 Oct 1995 15:51:44 +0100

I'm replying my own message. I've found the 'enable pipe command' option 
in the setup/config menu.

Thanks, me.

---

From: Frederic Udina <[email-masked]>
Date: Tue, 10 Oct 1995 11:41:43 +0100

Hi there,

I'm just beginning using pine as a better (?) mailer than elm. It has 
some advantadges but I miss in pine one think I like very much in elm:

How can I pipe the contents of a folder, or a message being read, or a 
message being composed to some commmand?

Elm gives me the possibility of editing a whole folder, this is fine to 
look for and find some piece of info.

In Elm I use to pipe a message through some filter in case, for exemple, 
it has a diferent character encoding (and is not a mime compliant one) or 
to pipe a message or a whole folder to a printing program such as a2ps.

Sometimes I get a message with a uuencoded piece of it, I just pipe it to 
uudecode and I have the binary exctracted.

Is it posible to do this kind of tricks from pine? Is it possible to 
switch to a shell from pine (this is useful when connected from a dumb 
terminal.

Thank you,

Frederic Udina
_______________________________________________________________________
                                    |     voice: 34 - 3 - 542 17 56
Facultat de Ciencies Economiques    |       fax: 34 - 3 - 542 17 46
Universitat Pompeu Fabra            |    e-mail: [email-masked]      
       Balmes 132                   | appleLink: spa0172           
       08008 Barcelona              |  Servicom: sva00484
       SPAIN                        |   W W Web: http://libiya.upf.es/
___________________________________/_\_________________________________

---

From: Mike Brudenell <[email-masked]>
Date: Mon, 16 Oct 1995 14:00:10 +0100 (BST)

> message being composed to some commmand?

Assuming you are using Pine 3.91 you must first enable the pipe command 
(not available by default to reduce information overload to new users).  
You do this by going to Pine's Main Menu and typing S (setup) then C 
(configuration).  Look down for and select the "enable-unix-pipe-cmd" 
item.  Leave the screen by typing E (exit).

When reading a message you can pipe it into something just by typing "|".

To pipe a number of messages (including all in the current) folder first 
use the Select command (;) to choose the messages you wish to operate on, 
followed by the Apply (A) command.  For example,
	;	... Select
	A	... All messages in current folder
	A	... Apply
	|	... Pipe command to them

The Select and Apply commands, along with the associated Zoom command, 
also need to be enabled in the Setup Conifugration Screen.  Turn on the 
"enable-aggregate-command-set" item.

I don't believe it is directly possible to pipe a message you are 
composing into something, other than by defining the something an the 
"alternate-editor", and then using the Composer's "Alt Edit" command.

> look for and find some piece of info.

With Pine:

When READING a message "W" (WhereIs) searches for a particular string 
within the current message.

At the FOLDER INDEX list "W" (WhereIs) searches the displayed text 
(From/Date/Subject) for the string and moves to that message.

At the FOLDER INDEX the Select (;) command can (when enabled) be used to 
select messages based on a number of criteria (Date, Sender, Subject 
string, string in message body, etc).  Having selected some messages they 
can then be operated on using the Apply command as described above, or 
summaried (unselected messages hidden from the list) using the Z (zoom) 
command.  A second Z (zoom) command restores the full list without 
cancelling the selection.  Thus,
	;	... Select
	T	... Text
	A	... All message text
	widget	... string "widget"
	Z	... hide unselected messages from list

> switch to a shell from pine (this is useful when connected from a dumb 

If invoked with the "-z" option (ie, "pine -z") then the "suspend" 
feature of Pine is enabled.  Assuming your shell supports job control, 
that is.  You can then ^Z to suspend Pine, and later "fg" to get back in 
to it.

Mike Brudenell                                         <[email-masked]>
------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/