LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-31-2006, 09:30 AM   #1
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Rep: Reputation: 31
Question Procmail Script


I'm running Postfix with Procmail and spamasassin on my fedora box. Here is the Procmail script:

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

The problem is that instead of putting the mail in this folder:
/home/user/.Maildir/Junk E-mail/new
It goes here:
/home/user/.Maildir/new

The script works if I replace "Junk\ E-mail" with "spam"
but everyone says putting the backslash in allows the space. I tried one before the "-" to no avail. Anyone got an idea?
 
Old 08-31-2006, 11:35 AM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
You don't need one before a '-'. If backslashes don't work any reason why you can't use 'Junk_E-mail'?
 
Old 09-04-2006, 11:55 AM   #3
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Original Poster
Rep: Reputation: 31
I'm trying to go along with Outlook, who wants it to be 'Junk E-mail'...If I can't, no biggie, but I can't see why not.
 
  


Reply


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
Procmail Script Cottsay Linux - Software 1 08-10-2006 12:28 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
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 svsalian Linux - Software 0 09-24-2003 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:05 PM.

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