---------- Forwarded message ---------- From: Maickel Pandie <[EMAIL PROTECTED]> Date: Wed, 18 Jun 2008 21:18:44 +0700 Subject: Re: [Mailman-Developers] Fwd: Fwd: How To change queue process method To: Barry Warsaw <[EMAIL PROTECTED]>
Question again... >> In Switchboard.files() Can I get listname from the digest/ >> filebase? How? > > Nope. That information is available in the metadata, but you have to > dequeue the file in order to read it. 1. Can you give me the example of dequeue metadata file to get the listname of the message please? I need the listname of the message because I made my own function to count how many domain as the destination of the message and the input of that function is listname 2. Can you give me any suggestion how to get attachment file size from each message? 3. Is there any function in mailman who can give me the size of the message? What variable that I need to get the size of the message? (filename, listname, filebase, or other variabel) Many Thanks 2008/6/16, Barry Warsaw <[EMAIL PROTECTED]>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Jun 16, 2008, at 3:25 AM, Maickel Pandie wrote: > >> I have some problem here and I didn't know how to solve it. >> I sent 1 message to [EMAIL PROTECTED] (listname) and I record what >> Switchboard.files() return to Runner.py: >> >> 1213621876.0387881+53028ae65697f5b1c06e9cf0f3b04ae1bb2ecfb1 >> 1213621876.0387881+ad9a762eff62186e94d26fda95865243b6dc4069 >> 1213621876.0387881+e7efb136c33f77e0674e03512860aadb23a2d605 >> >>> From Switchboard.enqueue() and Switchboard.files() I knew that >> 1213621876.0387881 is the rcvtime >> >> What I asking are: >> >> 1. Why the digest (53028ae65697f5b1c06e9cf0f3b04ae1bb2ecfb1, >> ad9a762eff62186e94d26fda95865243b6dc4069, >> e7efb136c33f77e0674e03512860aadb23a2d605) are changing for same >> message? > > Because the hash is calculated from the entire contents of the file, > which includes the message's metadata dictionary. That will change > each time the message is re-queued. > >> 2. In Switchboard.files() Can I get listname from the digest/ >> filebase? How? > > Nope. That information is available in the metadata, but you have to > dequeue the file in order to read it. > > Cheers, > - -Barry > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (Darwin) > > iEYEARECAAYFAkhWjJ4ACgkQ2YZpQepbvXEJEwCdFw6o4MhGsheX+Mu8Pn11GW4N > vFMAnRARv78M+7YpwVxNJCoqIOoBt8/o > =9HdD > -----END PGP SIGNATURE----- > _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
