LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-20-2006, 04:34 PM   #1
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Rep: Reputation: 31
Procmail...


This works:

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

This doesn't:

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

The only difference is the "\ " but that breaks the script. All of the spam goes to the inbox, AND gets sent through the spamassassin filter TWICE! I don't understand...how?
 
Old 09-20-2006, 06:51 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Perhaps procmail's config doesn't allow for escaping spaces. Try quoting instead and see what happens:
Code:
SPAMFOLDER="$MAILDIR.Junk E-mail/new"
 
Old 09-21-2006, 11:56 AM   #3
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Original Poster
Rep: Reputation: 31
ahh...same issue...everything marked spam goes through the filter twice (instead of the subject rewrite being "[SPAM ##] Original Subject" it becomes "[SPAM ##] [SPAM ##] Original Subject"...same issue. Is there a log somewhere? can I get a debug log somehow? Thanks!
 
  


Reply



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
help with procmail tekion Linux - Software 1 04-19-2005 09:58 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
help with procmail wailm81 Linux - Networking 0 10-15-2004 06:43 PM
procmail help markehb Linux - Software 0 05-20-2004 09:23 AM
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 10:42 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