Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.