Apparently I wasn't able to communicate my original problem very well. Either that, or I woke up on a different planet this morning. Using the snippet of code in my original post generates output like so:
Subject: Mailed Campus Calendar Event Date: Thu, 11 Apr 2002 14:11:16 -0500 (CDT) From: Requestor@from.foo.net To: Receiver@to.foo.net ShDesc=This%20is%20the%20event%20field BegMon=04 BegDay=20 BegYear=2002 BegHour=10 BegMin=00 BegAmPm=am EventType=MISC EndMon=04 EndDay=20 EndYear=2002 EndHour=02 EndMin=00 EndAmPm=pm Prefix= Loc=Anywhere Sponsor=Anyone Contact=Anywho ConTel1=111 ConTel2=222 ConTel3=3333 ConEmail=foo%40bar.com URL=http%3A%2F%2Fwhatdoyouknow.com LongDesc=This%20is%20a%20field%20for%20details%20about%20the%20event. =
The question was whether or not there was a function similar to CGI::save_parameters() that generates the "unescaped" data as follows:
Subject: Mailed Campus Calendar Event Date: Thu, 11 Apr 2002 14:11:16 -0500 (CDT) From: Requestor@from.foo.net To: Receiver@to.foo.net ShDesc=This is the event field BegMon=04 BegDay=20 BegYear=2002 BegHour=10 BegMin=00 BegAmPm=am EventType=MISC EndMon=04 EndDay=20 EndYear=2002 EndHour=02 EndMin=00 EndAmPm=pm Prefix= Loc=Anywhere Sponsor=Anyone Contact=Anywho ConTel1=111 ConTel2=222 ConTel3=3333 ConEmail=foo@bar.com URL=http://whatdoyouknow.com LongDesc=This is a field for details about the event. =
or would it be a better idea to simply write a snippet to do it? I'll assume from the responses that a snippet is the way to go. BTW, I don't need help writing it, I was apparently mistaken that I had read a post within the last 7 months that pointed to a one-line substitution for CGI::save_parameters(). Thanks anyhow.

--Jim

Update: I accomplished what I need with a one-liner:

open (MAIL, "|/usr/lib/sendmail -oi -t") or die "Can't fork sendmail: +$!"; print MAIL <<EOF; From: Requestor@from.foo.net To: Receiver@to.foo.net Subject: Mailed Campus Calendar Event EOF ### Note: All params are single-instance scalars. print MAIL "$_: ", $query->param($_), "\n" foreach $query->param; close (MAIL) or die "can't close sendmail: $!";

In reply to Re: Mailing unescaped CGI parameters by jlongino
in thread Mailing unescaped CGI parameters by jlongino

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.