Geekery

It is just bad programming to do this sort of thing. I’m kinda proud I got it to work though. ☺

emails:
    @echo '<stylesheet version="1.0" \
            xmlns="http://www.w3.org/1999/XSL/Transform" \
            xmlns:vol="http://pcvs.org/2004/05/volunteerML" \
            xmlns:cil="urn:oasis:names:tc:ciq:xsdschema:xCIL:2.0"> \
             <import href="volunteers-html.xslt"/> \
             <output method="text"/> \
             <template match="vol:volunteers"> \
               <for-each select="$$population[not(@status)]//cil:EmailAddress"> \
                 <call-template name="EmailAddress"> \
                   <with-param name="output" value="text"/> \
                 </call-template> \
                 <text>&#xA;</text> \
               </for-each> \
             </template> \
           </stylesheet>' | xsltproc --xinclude - volunteers.xml

This takes another stylesheet and calls into it to generate a list of all the email addresses.

In other news, if you are sitting on a box with a SMTP server, try this:

telnet relay-test.mail-abuse.org

It’ll connect back to your box and try and relay through it. If you’d like to do it yourself, try this:

telnet localhost 25
helo localhost
mail from: <fake@faker.org>
rcpt to: <me@myisp.net>

Your relay is open if you get:

250 2.1.5 <me@myisp.net>... Recipient ok

Relays are frequently open to connections from localhost, so it doesn’t really count unless you do it from somewhere else. You get the idea though…

  • Share/Bookmark