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.

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 use Mutt Maildir for storage mails. I created one mailbox like this Stack Exchange/. (whitespace between Stack and Exchange here)

procmailrc recipe:

* From: .*Stack\ Exchange
Stack Exchange/

But upper recipe destination setting failed. after test and watch the log file. I found procmail jumped through Exchange/, deliver email to Stack file, instead of Stack maildir folder, nor Stack Exchange/ maildir folder.

And I googled procmail settings, FAQ etc. not found relative problems.

So, does anybody knows how to escape whitespace here ?

share|improve this question
While it's perfectly valid to have spaces in file and directory names, doing so is likely to cause you all manner of unnecessary annoyances and problems. In other words: Patient: "Doctor, it hurts when I hit myself in the head with a hammer". Doctor: "Don't do that then". – cas Aug 28 '12 at 2:15
up vote 1 down vote accepted

Even though it isn't mentioned in the procmail manual, I believe (I haven't checked) that putting a backslash before the space removes its special meaning (like in other parts of procmail).

* From: .*Stack\ Exchange
Stack\ Exchange/

If that doesn't work, use a variable.

* From: .*Stack\ Exchange
share|improve this answer
You're right, I forget put slash / after Stack\ Exhcange/Android, so that I can not use mutt to find mails in Android. It should be Stack\ Exchange/Android/, my fault. – stardiviner Jun 25 '12 at 4:12

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.