Converting UUEncode Attachment into Proper MIME Format in KMail
Some joker has been sending attachments in antiquated UUencode format
. Since my email client KMail does not support UUencode, I had to find some way to convert UUencoded files into proper MIME attachment.
After trying several ideas I’ve found on the Net, the best way to accomplish this is by using uu2mime, a Ruby script which takes an RFC2822 message as its input, converts any UUencoded files it finds, and outputs them as proper MIME attachment while preserving the content of email.
To use uu2mime with KMail, I took the following steps:
- Put the uu2mime script somewhere and make it executable.
- Install ruby and rubymail library (under Gentoo, a simple ‘emerge ruby rubymail’ will do the job).
- Create a new filter in KMail (Settings, Configure Filters, and click ‘New’ button).
- In filter criteria, specify ‘body’ ‘contains’ ‘begin 644′.
- In filter actions, use ‘Pipe through’ and specify the full path of the uu2mime script
- Uncheck ‘If the filter matches, stop processing here’.
- Put the rule as the topmost rule.
- Save the filter.
kmail sux!
NGeffect!
pri, kmail loe inboxnya dah brapa gede? gue udah 2.2 GB berasa makin lambat nih
hmm yang sekarang sih kecil (gara2 kehapus), tapi yang kemarin-kemarin besar (tapi lupa berapa)… harusnya kmail cepet kalau ngurus mailbox yang banyak isinya, tapi lambat kalau baca email besar…