%PDF- %PDF-
Direktori : /proc/self/root/lib/mailman/tests/ |
Current File : //proc/self/root/lib/mailman/tests/fblast.pyc |
� �ac @ s d Z d Z d Z d d l Z d d l Z d d l Z e j � Z e j � e e j d � Z z� d Z x� e j j d � e j j � e d 7Z e d d k r� Hn xC e d � D]5 Z e j e e g d i e d 6e d 6e d 6� q� We j e � qk Wd e j � Xd S( s� Throw email at Mailman as fast as you can. This is not a unit test, it's a functional test, so you can't run it within the unit test framework (hence its filename doesn't start with `test_'). Here's how I use this one: - set up a dummy list - add an alias to your MTA, say `devnull' that pipes its messages to, you guessed it, /dev/null - make this address a member of your list - add another address to `accept_these_non_members', let's call it ok@dom.ain - change the FROMADDR variable to ok@dom.ain - change the LISTADDR variable to point to your list - run this program like so: python fblast.py N where N is the number of seconds to sleep before sending the next msg - let this run until you're tired of it, then hit ^C s ok@dom.ains list@dom.aini����Ni t .i2 i i s] From: %(FROMADDR)s To: $(LISTADDR)s Subject: test %(num)d X-No-Archive: yes testing %(num)d t numt FROMADDRt LISTADDR( t __doc__R R t syst timet smtplibt SMTPt connt connectt intt argvt snoozet it stdoutt writet flusht ranget jt sendmailt sleept quit( ( ( sZ /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/tests/fblast.pyt <module> s.