The Section Partial Messages gives an overview of this script. Here is the storeparts script (you might want to open it in a separate browser window). To install it, see the Section Programs in This Book's Archive.
The script is simple. It extracts the Content-type: header field from the message and gets the id= information from the field. Then it uses pick to search for messages matching that id. pick stores the messages in a sequence named temp. You might want to customize storeparts to use a different sequence name -- or to accept a -sequence option on the command line (and, if you want to be really fancy, have it check your MH profile too).
This file is from the third edition of the book MH & xmh: Email for Users & Programmers, ISBN 1-56592-093-7, by Jerry Peek. It 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 COPYING.
|
Copyright © 1991, 1992, 1995 O'Reilly Media, Inc. Copyright © 1996, 1997, 1999, 2000, 2002, 2004 Jerry Peek Last modified: 2006-05-31 15:13:43 -0700 |
|