My current .sig file. Any word on trying to get the perl parts shrunk down smaller?
eval join"",map{chomp;s/^[^>]+>\s*//;$_}grep{/>/}<DATA>; __DATA__ .' .' Kelly "STrRedWolf" Price WolfSkunk Des +igns xX xX .' http://stalag99.keenspace.com tygris(@)cablespeed(. +)com "X "X X .' NO UNSOLICITED COMMERCIAL E-MAIL ACCEPTED WITHOUT PAY +MENT _____. X" X FREE SPEECH-FREE DIMITRY: http://www.dibona.com/d +mca/ XXXXXXXx. X".' # dnsblcheck "dnsbl" "responce" < mail, ret 1 on fail +ure '"XXXXXX| X > while(<STDIN>){chomp;if(/^Received:[^\[]+\[(\d+)\.( +\d+) "XXX| X" > \.(\d+)\.(\d+)\]/){$n=`host $4.$3.$2.$1.$ARGV[0] 2> +&1`; 'XX' > exit(0) if($n=~/$ARGV[1]/m);}} exit(1);
The code needs to take an IP address out of a Received header (procmail will unmunge it so it's one header/line), reverse the numbers, and look up a host to check if it's on a DNS Blacklist.

One hint: The first line takes care of any bad breaking.

eval join "", map { chomp; s/^[^>]+>\s*//; $_} grep{/>/} <DATA>;
So lets see now... <DATA> sucks in the rest of the .sig. Th' grep filters everything but three lines (which have ">" up front), in which the map will remove any end-of-line characters, strip off everything up to and including "> ", and the join will just merge everything into one line which eval gets to run through.

--
$Stalag99{"URL"}="http://stalag99.keenspace.com";


In reply to Compressing .sigs more by strredwolf

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.