Take the tour ×

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
add comment

1 Answer

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. –  NagatoPain Jun 25 '12 at 4:12
add comment

Your Answer


