Reference

lr_smtpfield(1)

extract a message header field from an 822 message

NAME

lr_smtpfield - extract a message header field from an 822 message

SYNOPSIS

lr_smtpfield fieldname

DESCRIPTION

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.

SEE ALSO

822field(1), in the mess822 package

AUTHOR

Edwin Groothuis <[email protected]>

VERSION

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

COPYRIGHT

Copyright (C) 2000-2001 Stichting LogReport Foundation [email protected]

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.