Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I configured Munpack on my Debian/Linux to extract attachments from incoming emails.

(For additional context, Getmail fetches the emails and pipes it to Procmail. A Procmail recipe then pipes it to Munpack.)

| munpack -q -C directory/

For some reason, when I get emails with (a) inline attachments (usually images) AND (b) document attachments (usually .csv), the .csv files are completely ruined.

(Note that this issue doesn't arise when there is only one attachment, which typically is a .xls file.

Is there a way to configure Munpack to:

1. Save **ONLY** attachments with the `.csv` extension in the email.

2. Make sure that the **.csv** files are saved as is.

Thanks!

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.