]>
git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - scripts/makemail
3 #-----------------------------------------------------------------------------
4 # All this does is generate RFC 822 headers and then copy standard input
5 # to standard output. You determine what headers it generates with
8 # You can feed the output of this program to 'smtpsend' to send the mail
9 # message somewhere via SMTP.
10 #-----------------------------------------------------------------------------
14 my $TRUE=1; my $FALSE = 0;
31 if (defined($options{"subject"})) {
32 print("Subject: " . $options{"subject"} . "\n");
34 if (defined($options{"to"})) {
35 print("To: " . $options{"to"} . "\n");
37 if (defined($options{"cc"})) {
38 print("Cc: " . $options{"cc"} . "\n");
40 if (defined($options{"from"})) {
41 print("From: " . $options{"from"} . "\n");
43 if (defined($options{"date"})) {
44 print("Date: " . $options{"date"} . "\n");
46 if (defined($options{"reply_to"})) {
47 print("In-Reply-To: <" . $options{"reply_to"} . ">\n");
49 if (defined($options{"message_id"})) {
50 print("Message-ID: <" . $options{"message_id"} . ">\n");