...yust set up a filter with the action 'pipe through' and the command:
egrep -v ^.[A-Za-z0-9=/+]{68}.*$
Thats it. Be shure to set the filter to 'manual' as this deletes data.
Have fun!
fudgy
ps.
please tell me if i forgot to include characters in the RegEx. This RegEx simply looks for strings with no spaces for a length of 68 characters minimum in one line. If these are found, they are excluded (-v option). The output is passed back to kmail - replacing the original message.
pps. The attachment will be 'visible' to kmail (with 2 bits length) so you know the name it had. You can use the %1, %2 etc. command to save attachments before deleting, like so (filter action 'execute command'):
cp %1 /initrd/mnt/dev_save/attach/`date --iso-8601 +%F-%H%S`-001
...but unfortunately one loses the name of the original attachment. So I prefer saving by hand before stripping it off my email folder.
How to remove attachments from kmail
How to do things, solutions, recipes, tutorials
Message
Author
Return to “HOWTO ( Solutions )”
Jump to
- House Training
- ↳ Beginners Help ( Start Here)
- ↳ Users ( For the regulars )
- ↳ Für deutschsprachige Anhänger
- ↳ Pour les francophones
- ↳ Usuarios de habla Hispana
- ↳ HOWTO ( Solutions )
- ↳ Bugs ( Submit bugs )
- Advanced Topics
- ↳ Additional Software (PETs, n' stuff)
- ↳ Package Collections / Repositories
- ↳ REQUESTS
- ↳ Browsers and Internet
- ↳ Business
- ↳ Compiling
- ↳ Desktop
- ↳ Documents
- ↳ Drivers
- ↳ Educational
- ↳ Engineering/Science/Simulation
- ↳ Eye Candy
- ↳ Filesystem
- ↳ Games
- ↳ Graphics
- ↳ Multimedia
- ↳ Network
- ↳ Security/Privacy
- ↳ System
- ↳ Utilities
- ↳ Virtualization
- ↳ Unsorted
- ↳ Cutting edge
- ↳ Multi-session live-CD/DVD
- ↳ Hardware
- ↳ Audio
- ↳ Networking
- ↳ Dialup
- ↳ Ethernet
- ↳ Wireless
- ↳ Printers
- ↳ Video
- ↳ Puppy Derivatives
- ↳ Puppy Projects
- ↳ Next Puppy Development
- ↳ 4.x
- ↳ Bugs (4.x dev)
- ↳ Usability Issues (4.x dev)
- ↳ 5.x
- ↳ Bugs (5.x dev)
- ↳ Usability Issues (5.x dev)
- ↳ Localization Project
- ↳ Documentation Project
- Taking the Puppy out for a walk
- ↳ Announcements
- ↳ Puppy Power
- ↳ Suggestions
- ↳ Misc
- Off-Topic Area
- ↳ Programming
- ↳ Security
- ↳ Truly off-topic conversations
- ↳ Spam reports