You are not logged in.
Pages: 1
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
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
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
i can remove 1 at a time <test> then see if that works lol
Offline
could anyone here help me with this?
Offline
Fun with procmail: pacman -Rscn procmail && pacman -S fdm
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
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
Pages: 1