dateheader - RFC2822-compliant "Date:" header with current gmtime
use dateheader; ... print MESSAGEHANDLE <<EOF; $dateheader From: Automated Customer Support <ACS@example.net> To: $Firstname $Lastname <$email_address> Subject: resolution of ticket number $ticketnumber
... EOF
Ties a scalar called $dateheader to the dateheader module. This scalar, when stringified, gives a RFC2822(section 3.3) compliant "Date:" header.
${caller().'dateheader'} gets tied to the dateheader package by the import function.
A tied dateheader variable appeared in early versions of TipJar::MTA::queue
We're now doing the tieing within the module, so use dateheader gives you the $dateheader variable, ready to interpolate. We're also going back to using time zone -0000, which is correct according to the RFC, but might not be universally understood by broken MUA software which needs to be fixed.
tie
use dateheader
Copyright (C) 2003 David Nicol davidnico@cpan.org
I HEREBY PLACE THIS MODULE INTO THE PUBLIC DOMAIN
To install dateheader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm dateheader
CPAN shell
perl -MCPAN -e shell install dateheader
For more information on module installation, please visit the detailed CPAN module installation guide.