I am not sure this is the right forum, but I'll go ahead and ask anyway...
I have a RedHat server running a site at the moment. The content of the site is submitted by email, in the form of text attachments. I currently have it all set up so that fetchmail and .forward redirect mails to a script in /etc/smrsh that parses the mail. The only problem is that when I wrote the system, I was in a rush, so I kludged the parsing to find attachments.
Is there a way from the command line to save an attachment from an email to a specified location>? If there is, it will save me about 9 hours per week in tracking down problems with different mail clients being used to send the mails.
Thanks in advance