Home
About
Agents
CGIs
Mac
Macros
Misc
Stories
Suites
Websites
Outline
Frontier
Scripting

Parse Mail Message Script

This script breaks a mail message into its component parts. It's is very useful when you want to do any work with a mail message and get all the non-interesting parts out of your way.

It takes standard-format text and creates a table in the object database.

Here's what a mail message looks like after its been parsed into a table:

Name Value Kind
dateThu, 09 Apr 1998 18:19:36 +0000 (GMT)string [37]
recipientdave@scripting.comstring [18]
senderraster@execpc.comstring [17]
subjectFrontier and Perlstring [17]
textDave, here's where I am in the Frontier/Perl thing. Using the MacPerl suit...string [731]
x-mailerUserLand Frontier 5.0.1 (Macintosh OS)string [38]
x-senderraster@execpc.com (Unverified)string [30]

I think you can imagine what the original mail message looked like.

Thanks to Faris Abetam, abetam@online.com.my, for asking for this script.

I think a lot of people will find this useful.

Dave

PS: I use this script to manage the Mail website on scripting.com.


This is a fat web page containing workspace.parseMailMessage. More info on fat pages here.

© copyright 1997-98 UserLand Software. This page was originally posted on 2/16/98; 7:34:37 AM and it was last built on 9/11/98; 9:23:13 AM. Webmaster: dave@userland.com.