[ Gary Johnson Wrote On Tue 27.Nov'12 at 1:10:24 GMT ] > On 2012-11-27, mutt wrote:
> > i wrote something like that. by default, it converts to text anything > > that can be converted to text and deletes everything else but you > > can turn off any specific transformation. it can delete specific > > mail headers. it translates (most) winmail.dat attachments. if a > > transformation fails, it leaves the original in place for safety by > > default. it works via procmail on individual messages or it can be > > applied to an entire mbox file. > > > > it requires the presence of various utilities (e.g. perl, antiword > > or catdoc, xls2csv, lynx, pdftotext and mktemp). you'd probably just > > need lynx and mktemp installed. Raf and Joerg, thanks both for sharing your scripts. Both seem to do what I need, i'll give them both a go and let you know. Thank you. Raf - does your script require a threaded perl? The default perl installation on OpenBSD is not threaded, so i'll have to addresss that if your script does need that. > > Why aren't you all using mutt's built-in ability to select > MIME-type-to-text converters? There's no risk of losing a message > through improper conversion, you have some limited choice over > conversion methods (depending on whether the message/attachment is > displayed by the pager or via the attachment menu), and since the > message itself is unaffected, you can use different methods of > viewing messages in different environments and at different times as > your methods improve. > > Regards, > Gary Hi Gary, there are 2 reasons for me asking about this; one, is that I do use mail(1) alot and it lacks some ability to deal with some of the MIME crap people send. The second is a bit silly really, but I want David's python script to be able to add an Expires: header to all of my messages, many of the messages I want to expire, are those I get from companies like Amazon, and Apple, and Tesco (a horrible big UK company :-) ) - it is having some trouble dealing with these messages that have multipart/(mixed|relative|alternative ...) but not all. I just decided I don't want them like that anyway and i'd like something to place into procmail that just gets rid of it all. I am learning Python and perl - teaching myself at the moment but my skills in these languages is not yet competent enough to write something like this. Also, I know that many people over the years will have experienced the same frsutration with such mail and so if someone has written some good code to deal with this problem, it is useful for me to see how they've achieved it and also saves time by not having to rewrite something that's already been done. I figured, if there's anyone who's experienced this issue, it'll be someone who is subscribed to this list, hence me asking here. mutt users tend to people that care about how their mail is formatted and displayed. Best wishes, Jamie.