Re: [Mailman-Developers] Stripping binaries attachments
Dan Mick <dmick@utopia.West.Sun.COM> 16/04/02 19.31.31 >>> Yes, first, ask on mailman-users. Sorry, I sent the mail to wrong list... Shame on me :(
Second, see FAQ entry 1.8. Read, but I'm using 2.1a4 and I'm not sure if all the hints cover that version.
Thanks
GFB
Gian Franco Baroni wrote:
Dan Mick <dmick@utopia.West.Sun.COM> 16/04/02 19.31.31 >>> Yes, first, ask on mailman-users. Sorry, I sent the mail to wrong list... Shame on me :(
Well, probably not, if you're using 2.1a4. I should have asked.
Second, see FAQ entry 1.8. Read, but I'm using 2.1a4 and I'm not sure if all the hints cover that version.
Except for 2.1-latest's penchant for saving messages as pickles, rather than plain text. But you can turn that off with a switch inside the module, whose name I forget right at the moment. Barry, given that people seem to often want to edit these messages, is it really a good idea to save them as non-plain-text?
Dan Mick wrote:
Gian Franco Baroni wrote:
Dan Mick <dmick@utopia.West.Sun.COM> 16/04/02 19.31.31 >>> Yes, first, ask on mailman-users. Sorry, I sent the mail to wrong list... Shame on me :(
Well, probably not, if you're using 2.1a4. I should have asked.
Second, see FAQ entry 1.8. Read, but I'm using 2.1a4 and I'm not sure if all the hints cover that version.
Except for 2.1-latest's penchant for saving messages as pickles, rather than plain text. But you can turn that off with a switch inside the module, whose name I forget right at the moment. Barry, given that people seem to often want to edit these messages, is it really a good idea to save them as non-plain-text?
Argh. This had nothing to do with Gian Franco's question, but it's still a valid concern.
For the question of HTML stripping, I think Mailman 2.1 only provides "archive stripping" by default. I use, and am happy with, demime.
"DM" == Dan Mick <dmick@utopia.west.sun.com> writes:
DM> For the question of HTML stripping, I think Mailman 2.1 only
DM> provides "archive stripping" by default. I use, and am happy
DM> with, demime.
Heh, I guess this was a stealth checkin. MM2.1b2 will support "content filtering", essentially what I think demime does as an add-on. Les Niles supplied the basic code, which I modified. It filters on specified MIME type, optionally converts text/html to text/plain, etc.
-Barry
At 01:21 PM 4/19/02 -0700, Dan Mick wrote:
Except for 2.1-latest's penchant for saving messages as pickles, rather than plain text. But you can turn that off with a switch inside the module, whose name I forget right at the moment. Barry, given that people seem to often want to edit these messages, is it really a good idea to save them as non-plain-text?
I had the same thought when debugging the topic parser problem - that it'd be nice to be able to pick through the message without having to decode the pickle's wrappings.
Although rather than saving them as plaintext, I'd be just as happy with an unpickle/repickle util for when I want to monkey with a message. (if only to let me read it without swearing at it...)
"RJ" == Ron Jarrell <jarrell@vt.edu> writes:
RJ> I had the same thought when debugging the topic parser problem
RJ> - that it'd be nice to be able to pick through the message
RJ> without having to decode the pickle's wrappings.
RJ> Although rather than saving them as plaintext, I'd be just as
RJ> happy with an unpickle/repickle util for when I want to monkey
RJ> with a message. (if only to let me read it without swearing
RJ> at it...)
bin/dumpdb knows how to print out the plaintext representation of a .pck message file, so
% bin/dumpdb qfiles/in/...pck > msg.txt
ought to do the trick. The other direction is fairly easy if you don't mind not saving the message metadata file (.db). Use bin/inject, possibly with the -q option.
-Barry
At 05:28 PM 4/19/02 -0400, Barry A. Warsaw wrote:
bin/dumpdb knows how to print out the plaintext representation of a .pck message file, so
% bin/dumpdb qfiles/in/...pck > msg.txt
ought to do the trick. The other direction is fairly easy if you don't mind not saving the message metadata file (.db). Use bin/inject, possibly with the -q option.
And, you know, I actually knew that at the time, and now that you've mentioned it again, realize I actually did that eventually...
Although I hadn't thought about using inject to shove it back in.
"RJ" == Ron Jarrell <jarrell@vt.edu> writes:
RJ> And, you know, I actually knew that at the time, and now that
RJ> you've mentioned it again, realize I actually did that
RJ> eventually...
RJ> Although I hadn't thought about using inject to shove it back
RJ> in.
I'm getting good at driving Guido's time machine. :)
-Barry
"DM" == Dan Mick <dmick@utopia.west.sun.com> writes:
DM> Except for 2.1-latest's penchant for saving messages as
DM> pickles, rather than plain text. But you can turn that off
DM> with a switch inside the module, whose name I forget right at
DM> the moment. Barry, given that people seem to often want to
DM> edit these messages, is it really a good idea to save them as
DM> non-plain-text?
It may not be. Then again, maybe I should promote the variable up into Defaults.py.in, regardless of the default value. It would be easier to modify through mm_cfg.py than to hack on ListAdmin.py and potentially lose your changes when you upgrade.
-Barry
On Fri, 19 Apr 2002 17:12:06 -0400 Barry A Warsaw <barry@zope.com> wrote:
"DM" == Dan Mick <dmick@utopia.west.sun.com> writes:
DM> Except for 2.1-latest's penchant for saving messages as pickles, DM> rather than plain text. But you can turn that off with a switch DM> inside the module, whose name I forget right at the moment. Barry, DM> given that people seem to often want to edit these messages, is it DM> really a good idea to save them as non-plain-text?
It may not be. Then again, maybe I should promote the variable up into Defaults.py.in, regardless of the default value. It would be easier to modify through mm_cfg.py than to hack on ListAdmin.py and potentially lose your changes when you upgrade.
Please! Please, please please, please Please PLEASE!
Please sir, may I have another configuration option?
<<I'd actually really like that as I edit every single post for my main list>>
--
J C Lawrence
---------(*) Satan, oscillate my metallic sonatas.
claw@kanga.nu He lived as a devil, eh?
http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live.
participants (5)
-
barry@zope.com
-
Dan Mick
-
Gian Franco Baroni
-
J C Lawrence
-
Ron Jarrell