You are not logged in.

#1 2008-11-12 23:41:05

oxoxo
Member
Registered: 2008-10-31
Posts: 66

Fun with procmail

hey guys,

im writing a general.rc recipe to intercept all messages in my pine inbox. Intercept is the wrong word.

trying to find a pattern in my pine inbox that starts with "Hello"

my general.rc file is whats wrong:

:0
* ^From *friend@someaddy.org
* "^Subject: Hello"
friendsfolder

as you can probably asssume i want all the messages that have the Subject: Hello transferred to my friendsfolder that is in my mail directory.

What i've learned is that there is a built in grep and sed to these receipes. But im probably wrong, < still touching on the basics here > So my Pattern "^Subject: Hello" which might be why my friendsfolder is empty.

Any help is very much appreciated.

Offline

#2 2008-11-13 06:00:14

oxoxo
Member
Registered: 2008-10-31
Posts: 66

Re: Fun with procmail

Alright now i really dont know why.

This is my general.rc file:

---------------------------------------
:0
//* ^From:. *friend@someaddy.org      < -- i guess i dont need to know whos sending what
* ^Subject:.*\<hello>\                    < -- Just finding a message with Hello in its subject
friendsfolder                                      < -- want to put everything matching the regex to this folder
----------------------------------------


why doesnt it work? The folder exits in my mail directory and the regex is correct.
my .forward file which should intercept email by using the code below is in both my mail directory and home directory of the same syntax:

--------------------------------------------------------------------------
" | IFS=' ' && exec /usr/local/bin/procmail || exit 75 <stupidme> "
--------------------------------------------------------------------------

the procmailrc file is as follows containing all standard rules
-------------------------------------------------------------
VERBOSE=off                     
MAILDIR=$HOME/Mail       
PMDIR=$HOME/.procmail
DEFAULT=/var/spool/mail/djones
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/general.rc
# end of .procmailrc
------------------------------------------------------------

so now what?

Offline

#3 2008-11-13 06:32:59

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: Fun with procmail

My memory of procmail is pretty shaky at best, but I think most likely you have another rule that is overriding the friends one, it does not preform any actions until it has looked at every rule. From what I remember you need to tell it to stop somehow.

Offline

#4 2008-11-13 07:00:56

oxoxo
Member
Registered: 2008-10-31
Posts: 66

Re: Fun with procmail

i can remove 1 at a time <test> then see if that works lol

Offline

#5 2008-11-13 22:12:03

oxoxo
Member
Registered: 2008-10-31
Posts: 66

Re: Fun with procmail

could anyone here help me with this?

Offline

#6 2008-11-13 23:10:58

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Fun with procmail

Fun with procmail: pacman -Rscn procmail && pacman -S fdm smile


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#7 2008-11-14 05:54:05

oxoxo
Member
Registered: 2008-10-31
Posts: 66

Re: Fun with procmail

you wouldnt be able to shed any light on my issue now would ya?

Last edited by oxoxo (2008-11-14 05:54:17)

Offline

Board footer

Powered by FluxBB