Procmail recipe - spaces in Maildir stops it working
am 30.05.2007 19:18:25 von davidHi,
I've Googled without success and wonder if anyone else can help.
I have added a simple test to my .procmailrc to "file" certain messages
into a subdirectory on my IMAP server. However, the subdirectory
contains spaces in the directory name and this seems to be causing
procmail to fail and I can't find out how I should indicate a space.
The bit of my .procmailrc that is causing the problem is;
jpm_bookings_folder="$HOME/Maildir/.J P Morgan.Booking Confirmations/"
:0
* ^Subject\: JPMorgan Booking
$jpm_bookings_folder
and in my procmail.log I see that it successfully matches on the test
but the next lines in the log are
"procmail: Skipped "P Morgan.Booking Confirmations/"
"procmail: Assigning "LASTFOLDER=/home/david/Maildir/.J"
So obviously assign the variable jpm_bookings_folder works fine but then
it can't seem to handle the space when it tries to move it to the actual
subdirectory I want.
Can anyone tell me a way to correct my recipe please.
Thanks!
David.