The Friday 2004-10-15 at 03:21 +0200, Anders Johansson wrote:
This is perhaps something for you:
http://www.oneguycoding.com/opensource/
Second from the top, mimeStrip
Aha! It seems to be what I'm looking for. Unfortunately, I am unable to get it started: cer@nimrodel:~/bin> ./mimeStrip.pl Can't modify constant item in lock at ./mimeStrip.pl line 58, near "STDIN)" Execution of ./mimeStrip.pl aborted due to compilation errors. The code in question is: open(STDIN,"+<$folder") || die "Error: opening input folder $folder\n"; if (!lock(STDIN)) { close(STDIN); printf STDERR "Error: could not lock folder $folder\n"; } The only docu for mimeStrip seems to be: The following modules are used in mimeStrip.pl use MIME::Base64; use File::Basename; use File::stat; use Fcntl ':flock'; <=== use Getopt::Long; use Time::ParseDate; for which you may need to compile and install IO-stringy-1.216.tar.gz Ok MIME-Base64-2.11.tar.gz ?? MIME-tools-5.316.tar.gz Ok MailTools-1.15.tar.gz Ok Time-modules-100.010301.tar.gz Ok libnet-1.0703.tar.gz -- non perl, ok. Fcntl seems to be part of the main perl-5 package. It might be that the script has not been updated for a year or so. [...] Commenting out the lock part, I can get it to work. It does strip files like I want. But not from one mailbox, the most important one for this task: it is a small daily publication in pdf I get, in which there is no text, only the attachement (ie, no "parts"). MimeStrip doesn't notice the attachement, unfortunately. Even Pine complains: Message 5 has only one part (the message body), and no attachments. and fails to delete it, or save: [Formatting error: Internal base64 decoder error: Error writing attachment to "/home/cer/bolet] Or even view them. The recent ones I can view and save with Pine, but not delete. They were produced with: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) and the recent ones with: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) One more sample of buggy or non standard software from Microsoft, I suppose... :-( Hugh. I'll have to save those files with mozilla, one by one... there are a lot of them! -- Cheers, Carlos Robinson