home *** CD-ROM | disk | FTP | other *** search
-
- require "ABSWFBIN/LIBWEBFORUM.PL";
-
- while (<>) {
- /^([^=]+)=(.+)\n/;
- $arg=&WFDecodeDatum($1);
- $value=&WFDecodeDatum($2);
- $db{"$arg"}=$value;
- }
-
- ;# the following no longer need to be protected
- $db{"body"} =~ s/&\;/&/g;
- $db{"body"} =~ s/<\;/</g;
- $db{"body"} =~ s/>\;/>/g;
-
- open(F,">MAILQUEUE/$db{to}$$");
- print F "To: $db{to}\n";
- if ($db{"xref"} ne "") {print F "Subject: Re: $db{subject}\n";}
- else {print F "Subject: $db{subject}\n";}
- print F "WebForum-Gateway-HEADERS:\n";
- print F "WebForum-Sender: ($db{username}) <$db{email}>\n";
- print F "WebForum-Sender-URL: $db{hurl}\n";
- print F "WebForum-Reference: URLWFCOMPLETE\n";
- print F "WebForum-In-Reply-To: $db{xref}\n";
- print F "NOTE: Send mail to <$db{email}> to reply to originator of message.\n\n";
- print F "$db{body}";
- close(F);
-
- # if you have a sendmail program that is not blocked by
- # your reading mail, then you might want to put in a
- # call to it here, such as that below. If, however, your
- # sendmail blocks, then you should queue outgoing mail,
- # and have a crontab program that periodically sends out
- # the mail. For an example, see the periodmail.pl program
- # in this directory
- ;#system("SENDMAIL MAILQUEUE/$db{to}$$ >/dev/null");
- ;#unlink("MAILQUEUE/$db{to}$$");
-