LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Procmail Script (https://www.linuxquestions.org/questions/linux-software-2/procmail-script-472498/)

Cottsay 08-09-2006 10:25 PM

Procmail Script
 
Alright, so I wrote this procmail script for filtering spam with Spamassassin. The script detects if the message is flagged, and moves it to a designated spam folder if it is. My problem, is that I need to move it to the "Junk E-Mail" folder, which contains spaces. How do I tell the script how to handle the space, when a space does something scripting wise? I've tried a backslash before the space...even quotes and such. The script is as follows...

SPAMFOLDER=$MAILDIR.Spam/new
:0 wf
| /usr/bin/spamassassin -P
:0 w :$SPAMFOLDER/.lock
* ^X-Spam-Level: XXXXXXXX
$SPAMFOLDER/.

...any ideas?

Thanks,

Scott K Logan
CottsayNet

drj000 08-10-2006 12:28 AM

Put a backslash in front of the space. Junk\ Email. Quoting it should work too, but I've not tried that.


All times are GMT -5. The time now is 07:16 PM.