On Jun 14 2010 15:49, Steve Brown wrote: > Hi List. > > I'm struggling to get my head around a small problem that I have, and I > wonder if one of you would be kind enough to give me a pointer or two. > > I receive a number of emails with word attachments. > > I can happily read them inline using antiword and things are fine. > > It has come to pass that I need to save some of these emails as a text > file, pretty much as it is in Mutt's pager. That is, the email body, > then the text of the attachments, concatenated into one file. I just > need plain text, nothing fancy at all. > > My guess is that I need to write a macro to do it, and it is here that > things fall down. > > I am a very basic user of Mutt - I use it to read email very quickly and > to send quick replies. I don't have a huge email load at the moment but > this will change and the number of emails I have to process is likely to > increase significantly. All things point to using Mutt over a graphical > client, they are just too damned slow. > > I've toyed with the idea of using procmail to store all of these emails > as text files automatically, but I don't need to keep them all, so Mutt > is the obvious candidate for reviewing and discarding/keeping the > required emails. > > Am I barking up the wrong tree? > > Many thanks, > > Steve
Perhaps I'm missing something, but you can use antiword to convert the doc files to txt files. So you could do something like write a macro that does |antiword - >> which would wait for you to enter the name of the file to append the attachment to. HTH -- Sterling (Chip) Camden http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
