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

procmailrc recipe:

:0
* 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

1 Answer 1

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).

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

If that doesn't work, use a variable.

STACKEXCHANGE_MAILBOX=Stack Exchange
:0
* From: .*Stack\ Exchange
$STACKEXCHANGE_MAILBOX
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

Your Answer

 
discard

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.