Using MH from Other Languages

[previous] [next] [table of contents] [index]

Programs that use MH commands don't have to be interpreted by the Bourne shell, of course. An MH command may be run by any language that will start a UNIX process and can:

In a lot of cases, the program will do its own processing of text output by MH commands. For instance, Perl is good at parsing the headers of email messages. So, instead of using MH format strings, a Perl script might use show -noshowproc or mhpath to read a message header into an array -- then use Perl regular expression operators to get the information you need.

When you're trying to decide whether to use MH features or the features of your language, how do you choose?

[Table of Contents] [Index] [Previous: Writing Shell Scripts for MH] [Next: How Does Your System Execute Files?]


Last change $Date: 1996/06/06 15:15:14 $

This file is from the third edition of the book MH & xmh: Email for Users & Programmers, ISBN 1-56592-093-7, by Jerry Peek. Copyright 1991, 1992, 1995 by O'Reilly & Associates, Inc. This file is freely-available; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more information, see the file copying.htm.

Suggestions are welcome: Jerry Peek <jerry@ora.com>

Questions or problems regarding this web site should be directed to Steve Gielda.
Copyright 1999 www.cotse.com.  All rights reserved.
Last modified: Friday April 02, 1999.