Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-09-2006, 10:25 PM   #1
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Rep: Reputation: 31
Question 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...

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

...any ideas?


Scott K Logan
Old 08-10-2006, 12:28 AM   #2
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
Procmail rcstest Red Hat 2 02-09-2005 02:53 AM
Perl Script Program (need) : SpamAssassin-ClamAV-Procmail-Howto cyberjames Slackware 8 01-27-2005 11:53 AM
Procmail: match pattern then pass to shell script essdeeay Linux - Software 1 11-08-2004 02:19 PM
procmail ccool Linux - Software 5 11-27-2002 01:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration