[KLUG Members] Get Message Body?

Adam Williams members@kalamazoolinux.org
07 Jul 2002 09:38:45 -0400


Does anyone know of a simple command/method to retrieve the body of an
email message?  I need to send a mail message (via alias & smrsh) into
stdin and be able to get just the body.

Evolution lets one publish free/busy calendar information,  but
currently only via e-mail.  You can save free/busy information to a file
and store the uri to that find in the contact information.  Lets you see
when a contact is free/busy.  Very nice.  But the only publishing via
e-mail sort of bits (rumors 1.2 will have other options).

So I created an alias freebusy@whitemice.org.  Currently this just dumps
an incoming message to a file so I could see what it looks like.  But I
want to take the content and grab the From line from the header and then
write the content to a file whose name is based on the From.  So if
awilliam@whitemice.org sends free/busy information to
freebusy@whitemice.org the result is the free/busy information stored in
/var/freebusy/awilliam@whitemice.org or some such.  I could have apache
share that directory and then set contacts to look there for free/busy, 
it would get updated whenever the user published to
freebusy@whitemice.org again.  

It isn't true groupware, but it would be handy.  And the concept could
be taken further.