LinuxQuestions.org
Visit Jeremy's Blog.
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 11-18-2002, 04:49 AM   #1
theLIGHT
LQ Newbie
 
Registered: Nov 2002
Distribution: Mandrake 8.1
Posts: 4

Rep: Reputation: 0
Exclamation procmail recipe not working?


Hullo there .

I am using Mandrake 8.1, have postfix, pine, fetchmail, and procmail installed.

I am using fetchmail to get my email from my two accounts. I cannot seem to get procmail to sort email into my folder.

Here is the procmail recipe.
====================
PATH=/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin
LOGFILE=procmail.log
MAILDIR=$HOME/mail
# Testing filter
#
:0:
* ^Subject:.*[ph-linux-newbie]
test-folder
# END OF PROCMAIL SCRIPT
====================

My "test-folder" is in /home/john/mail. I use pine to browse that folder, there are no email sorted into this folder.

I tried the command "echo $MAILDIR" and it returned blank.
What gives?


Last edited by theLIGHT; 11-18-2002 at 04:50 AM.
 
Old 11-18-2002, 06:54 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,286
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
"echo $MAILDIR" won't work inside your shell (that is, outside the recipe). Since you're using variables for mailboxes, I suggest you make it easy on yourself and add this to the top of the recipe (which should be $HOME/.procmailrc, cuz that's where procmail will look) to aid you in troubleshooting:
verbose=on
Now if you send yourself a mail to the address fetchmail will retrieve from: "/bin/true | mail -s "[ph-linux-newbie] test $(date)" <address>", you should see in the logs where it fails.
 
Old 11-18-2002, 06:42 PM   #3
theLIGHT
LQ Newbie
 
Registered: Nov 2002
Distribution: Mandrake 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
Arrow

Thanks. I will try it and see.
 
Old 11-18-2002, 10:04 PM   #4
theLIGHT
LQ Newbie
 
Registered: Nov 2002
Distribution: Mandrake 8.1
Posts: 4

Original Poster
Rep: Reputation: 0

It didn't work. I noticed that I don't have the procmail.log file in my home directory. I also noticed in the postfix configuration file: main.cf, there is the directive
mailbox_command = /usr/bin/procmail -o -a $DOMAIN -d $LOGNAME.

Is this anywhere related?
 
  


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
Three actions in a recipe of Procmail Borelian Linux - Software 1 11-11-2012 06:48 AM
what is wrong with this regular expression in procmail recipe? realos Linux - Software 4 10-20-2005 09:35 AM
Procmail - help w/ recipe to sort mailer-daemons Ratclaws Linux - Software 1 07-12-2005 04:17 PM
Procmail recipe jebix666 Linux - General 1 06-09-2005 01:43 PM
procmail recipe for charset conversion Peff Linux - Software 0 07-13-2004 02:40 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration