lr_smtpfield(1)

lr_smtpfield1

Extract a message header field from an 822 message

Usage

lr_smtpfield fieldname

Overview

The format of an email header, when stored in a traditional var/spool/mail-type mailbox, is

 "From <user>"
 "Field: <something>"
 ""

lr_smtpfield expects an RFC822 message on stdin or a file containing such a message as it's last argument. It prints the fieldname's value to stdout, if found. Return value is 0 if input was an RFC822 message, 1 if input was not an RFC822 message, 2 if a command line error occured.

Version

$Id: lr_smtpfield.in,v 1.8 2001/11/14 17:07:31 flacoste Exp $

Author

Edwin Groothuis <[email protected]>

From lire 20020214-7 in Debian 3.0 (Woody). Parsed by carta from the page's man source.