Hi Nigel.
You could post to the (very active) procmail mailing list.
I did some procmail stuff years ago and my experience with the help on that list was very
good!
hth.
Kr.
Luke.
Nigel Allen wrote:
Hi
I'm struggling with procmail - as a complete newbie I should add.
Basically the pseudo
Hi
I'm struggling with procmail - as a complete newbie I should add.
Basically the pseudo code for what I want is as follows:
extract string from header.
if length($string) < 6
pad $string left spaces to 6;
if test -d $string
file the email into the folder $string
else
forward to bad_fo
I would like to execute a script on arrival of an email, howver, the email
recipient is a virtual email account on a path like:
/var/mail/vhost/domain.tld/[EMAIL PROTECTED]
is procmail what I need, or ?
--
Voytek
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscripti
> perhaps to you... to mere mortals I'm afraid life isn't that simple :(
It takes time to get the zen of those man pages... and a lot of cross
referencing.
> At the moment I have this:
>
> :0
> {
> :0 c
> ! [EMAIL PROTECTED] #make a simple copy for me
> :0 c
>
On Wed, Mar 29, 2006 at 11:51:14AM +1100, Jeff Waugh wrote:
>
>
> > What I would prefer to do is send a flagging email to both myself and my
> > business partner... just a subject line such as: "email waiting in foo
> > acount".
> >
> > Can procmail do that?
>
> So what you'd want to do in proc
On Wed, Mar 29, 2006 at 11:51:14AM +1100, Jeff Waugh wrote:
>
>
> > What I would prefer to do is send a flagging email to both myself and my
> > business partner... just a subject line such as: "email waiting in foo
> > acount".
> >
> > Can procmail do that?
>
> So what you'd want to do in proc
> What I would prefer to do is send a flagging email to both myself and my
> business partner... just a subject line such as: "email waiting in foo
> acount".
>
> Can procmail do that?
So what you'd want to do in procmail is a two step process:
- clone the message (c on the : line)
- use for
I have a low volume mail account, but I don't want to miss anything.
At present, I've set up procmail to copy new email to my normal email,
and that will do if I can't come up with anything better.
What I would prefer to do is send a flagging email to both myself and
my business partner... just a
On Wed, 2005-11-23 at 11:05 +1100, [EMAIL PROTECTED] wrote:
> However I've now setup virtual pop/imap users which have no real unix
> account and these users mailboxes exist as
>
> /home/vmail/[EMAIL PROTECTED]
>
> So thus my rules in procmail to send spam to $HOME/Maildir/.Junkmail fails
> for v
Hi,
I sent this yesterday from gmail but not sure it worked, so I am sending
again from my home account to see if someone can help.
My previous procmailrc stuff works fine, as these work against real unix
users and thus $HOME/Maildir exists for those users.
However I've now setup virtual pop/ima
A little more digging sound a clever variant on this, in one of the
places I'd looked earlier but hadn't found what I was looking for, but
with Simon's information I was able to piece things together..
http://pm-doc.sourceforge.net/pm-tips-body.html#how_to_raise_a_flag
illustrates Simon's techniqu
On Mon, 11 Jul 2005, James Polley wrote:
I have a bunch of procmail recipes that pick up mail for various
mailing lists I'm on and dump it to specific folders:
:0:
* [EMAIL PROTECTED]
lists/security/linux-secnews
:0:
* [EMAIL PROTECTED]
lists/SLUG
I'd like for any mail that matches one of the
I have a bunch of procmail recipes that pick up mail for various
mailing lists I'm on and dump it to specific folders:
:0:
* [EMAIL PROTECTED]
lists/security/linux-secnews
:0:
* [EMAIL PROTECTED]
lists/SLUG
I'd like for any mail that matches one of these rules to also be
forwarded to my gmail.
On Sat, Feb 19, 2005 at 09:56:58 +1030, [EMAIL PROTECTED] wrote:
> :0 D
> * ^To:[EMAIL PROTECTED]
>! [EMAIL PROTECTED]
If this matches, procmail forwards the message and exits, so it doesn't
process the next bit:
> :0 D
> {
>:0 D
>* ^To:[EMAIL PROTECTED]
>Inbox
> }
Try this inst
--
/ / _
/_ /_/ /< /=
0421 276 282
--- Begin Message ---
Hi,
I've been stuffing around trying to get forwarding + extras working
I have an address [EMAIL PROTECTED]
and an address [EMAIL PROTECTED]
I want all mail for [EMAIL PROTECTED] forwarded to [EMAIL PROTECTED]
AND IF the mai
The rule in your procmail is doing as its told... from what John
Clarke told me the c in the directive means copy to file you state.
Have a read of this, as John sent me yesterday. I believe a section
will describe your fault. You need to add another rule to the end of
your procmailrc to tell it w
This is the only rule in my .procmailrc:
:0 c
/home/david/BackupAllEmails
and .forward looks like this:
|/usr/bin/procmail
Unfortunately, it dumps incoming mail into the backup file, but doesn't
also pass it through to the local mail delivery. What have I done wrong?
--
SLUG - Sydney Linux U
On 03/11/2004, at 5:31 PM, Jamie Wilkinson wrote:
Hope that helps someone; for a full set of mailing list procmail check
out
http://spacepants.org/conf/dot.procmailrc
Pearl, pearl, pearl![1]
[1] http://lists.slug.org.au/listinfo/pearls
--
Tony Green <[EMAIL PROTECTED]>
--
SLUG - Sydney Linux User'
For a while now, ezmlm has been the bane of my procmail existence; its
Mailing-List header was just different enough that all mail delivered
through it ended up in a mailbox called 'contact'.
Today I went and fixed it good; what follows here is a block of procmail shlock
that'll find the magic i
On Mon, 2004-09-06 at 10:25 +1000, David Kempe wrote:
> Any hints? The matching part is a bloody cryptic and I guess I need to
> expand it to match CC fields as well
I did this a while ago and also got it to add the new folder to the
subscribed list as well. The rule has mutated a bit since then
> :0
> * ^TO\/[EMAIL PROTECTED]
> .users.$MATCH/
First off, you probably mean ^TO_ (which matches all TO things, like Cc and
friends). How about this:
:0
* ^TO_.*[<]\/[EMAIL PROTECTED]
.users.$MATCH/
That stanza matches non-@ characters after the first <, for all destination
specificatio
On Mon, Sep 06, 2004 at 10:25:39 +1000, David Kempe wrote:
> :0
> * ^TO\/[EMAIL PROTECTED]
> .users.$MATCH/
$MATCH contains everything matching the regex (the whole thing, not
just the first token) after \/, which in this case is everything if the
line contains @.
Try changing your pattern to ^T
Hey Sluggers,
I can't figure out this procmail stuff.
I want to match the bit before the @ sign in incoming emails and deliver
it to a seperate Maildir subfolder.
I have this:
:0
* ^TO\/[EMAIL PROTECTED]
.users.$MATCH/
It just seems to do this: (from procmaillog)
Subject: test
Folder: .users./
On Tue, Aug 03, 2004, James Gregory wrote:
> So, I got sick of messing around with procmail every time I signed up
> for some email based service that didn't helpfully identify itself
> with some sensible header. I think I have a partial solution. Well, if
> you happen to own your own domain and us
So, I got sick of messing around with procmail every time I signed up
for some email based service that didn't helpfully identify itself with
some sensible header. I think I have a partial solution. Well, if you
happen to own your own domain and use Courier and procmail then it's a
partial solution
On Tue, 2004-07-06 at 18:43, Peter Hardy wrote:
> Basically, your fetchmail has been configured to refuse to write to
> group-writable directories. Seems the only solution is to twiddle the
> config and build yourself a new package from source.
Or, and I think I like this version better, only allo
On Tue, 2004-07-06 at 18:29, Shaun Oliver wrote:
> that is. and for good reason. it's shared on a samba network with other
> windows machines because I want to be able to transfer files between all
> these machines.
The point of jaq's question is that:
On Tue, 2004-07-06 at 18:10, Shaun Oliver w
On Tue, Jul 06, 2004 at 06:35:11PM +1000, Shaun Oliver wrote:
> home directory is group writeable because I have requirements for it to be
> so.
Can you find a way around that? If not, you're out of luck unless you
patch procmail's source and rebuild. From the procmail man page (which,
BTW, ex
there ain't any .forward.hogwarts or .forward in my home directory and the
home directory is group writeable because I have requirements for it to be
so.
--
Shaun Oliver
"I refuse to have a battle of wits with an unarmed person."
email: [EMAIL PROTECTED]
WEB: http://blindman.homelinux.org/~bl
This one time, at band camp, Shaun Oliver snipped any useful quotes:
>that is. and for good reason. it's shared on a samba network with other
>windows machines because I want to be able to transfer files between all
>these machines.
so don't you think that's where the error message is coming fro
that is. and for good reason. it's shared on a samba network with other
windows machines because I want to be able to transfer files between all
these machines.
--
Shaun Oliver
"I refuse to have a battle of wits with an unarmed person."
email: [EMAIL PROTECTED]
WEB: http://blindman.homelinux.
On Tue, Jul 06, 2004 at 06:10:38PM +1000, Shaun Oliver wrote:
> Jul 6 18:00:06 hogwarts sm-mta[9843]: i668056o009841: forward
> /usr/home/shaun_oliver/.forward.hogwarts: Group writable directory
> Jul 6 18:00:06 hogwarts sm-mta[9843]: i668056o009841: forward
> /usr/home/shaun_oliver/.forward:
This one time, at band camp, Shaun Oliver wrote:
>Jul 6 18:00:06 hogwarts sm-mta[9843]: i668056o009841: forward
>/usr/home/shaun_oliver/.forward.hogwarts: Group writable directory
>I don't have a directory called .forward nore a file of that name.
What about /usr/home/shaun_oliver? is that gro
Hi, just thought I'd give slackware 10.0 a whirl and came across this
problem.
I've just built spamassassin from source and installed it how I want it
and have found this problem with procmail.
*SNIP*
Jul 6 18:00:06 hogwarts sm-mta[9843]: i668056o009841: forward
/usr/home/shaun_oliver/.forward
Hi all,
I posted a few days ago asking if anyone had a way of doing email virus
scanning from procmail. I did some tinkering and I've managed to get it
going, so I thought I'd let you all know how I did it.
So, first I downloaded clamav (urpmi clamav), then I ran freshclam to
get a virus db. I wa
> Does anyone know how to tell a procmail rule to escape a character for
> matching? Is it the \ character. so for eg to select all with 'fred' would
> be \'fred\' ?
Yes. :-)
- Jeff
--
linux.conf.au 2004: Adelaide, Australia http://lca2004.linux.org.au/
"It's a pan-dimensional ca
Does anyone know how to tell a procmail rule to escape a character for
matching? Is it the \ character. so for eg to select all with 'fred'
would be \'fred\'
?
TIA
Stu
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
On 24 Jun, Adam Bogacki wrote:
> can anyone tell me why my procmail mailboxes are not working (attached).
I believe you can tell procmail to run with logging, and you can also
adjust how much info is logged.
Does it affect all your mailboxes or just ones over a certain size?
Could be a use
It'd help if you attached the logs as well.
Cheers,
Andrew "Netsnipe" Lau
--
--
* Andrew "Netsnipe" Lau Computer Science & Student Rep, UNSW *
* # apt-get into itDebian GNU/Linux Package Maintainer *
*
Hi,
can anyone tell me why my procmail mailboxes are not working (attached).
Adam Bogacki,
[EMAIL PROTECTED]
DROPPRIVS=yes
LD_LIBRARY_PATH="/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH$
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/Mail
DEFAULT=/var/spool/mail/adam
SHELL=/bin/bash
LINE
Thanks John works a treat
>
> > i.e: [EMAIL PROTECTED] sends me emails to [EMAIL PROTECTED]
> > Now I would like the email from [EMAIL PROTECTED] to
> > [EMAIL PROTECTED]
>
> This will do it:
>
> :0
> * ^From:[EMAIL PROTECTED]
> ! [EMAIL PROTECTED]
>
> although you may want to imp
On Mon, Mar 03, 2003 at 10:59:51AM +1100, Kevin Saenz wrote:
> i.e: [EMAIL PROTECTED] sends me emails to [EMAIL PROTECTED]
> Now I would like the email from [EMAIL PROTECTED] to
> [EMAIL PROTECTED]
This will do it:
:0
* ^From:[EMAIL PROTECTED]
! [EMAIL PROTECTED]
although you may w
At least I think it is a procmail question,
I have 2 mail accounts on one server I want to
phase out one of the email addresses would I need
a procmail recipe to send emails from specific people
to the new email address? I don't want to send all
emails to the new address.
i.e: [EMAIL PROTECTED] se
Dear Slug,
I'm using procmail to filter my mail into mailboxes and I use it in
conjection with formail to split mailing list digests into separate
messages. I use mbox format mailboxes. This mostly works ok except that
frequently the new messages are appended to the mbox file without any
s
Hi,
for some reason I don't understand my procmail mailboxes are not
working - I receive mail as an undifferentiated slab.
I have (hopefuly) attached it to this message. Could someone cast their
experienced eye over it and tell me what is incomplete ?
Adam Bogacki,
[EMAIL PROTECTED]
PATH=$HOM
I've got a problem with procmail. I am using it to filter mail into
various mbox files which I then read with evolution or pine.
What I'm finding is happening is that I'm _sometimes_ not getting a
newline as a new message is appended to the mbox file. Evolution then
freaks out about mailbox cor
> Is the auto-slug-pearls thing still active/working or whatever?
Yeah, but not a single person has forwarded an email on!
(Forward emails to [EMAIL PROTECTED], with a comment on why the email is so
good. Remember that it's your forward that ends up in the pearls archive.)
> If so, I nomina
>
>If you're using fetchmail and procmail, there are a number of recipes
in
>'man procmailex' that will split up a digest into individual mails.
This is
>*really* handy, because it means you receive digest emails, but
can reply to
>them just like everyone else.
>
>SLUG is always here to help set
On Thu, Jun 28, 2001 at 05:50:48PM +1000, Jeff Waugh ([EMAIL PROTECTED]) wrote:
>
[snip]
> Normally, I'd put this down to procmail not being invoked, but you've
> provided enough evidence to the contrary. ;)
[hehehe]
As it turned out there was a bloody "typo" in the procmailrc file,
the name
> :0
> * ^From.*jobst.*
> IN.sysadmin
Well, conventionally, I would write that as:
:0:
* ^From:.*jobst
IN.sysadmin
(Always use the second colon when delivering to the mailbox; you don't need
the extra .* at the end of your address, but I would recommend putting the
complete address ther
sluggers,
I have a problem with my procmail setup and I cant SEE it,
the mail doesnt seem to be wanting to end up in the file
IN.sysadmin. WHY??
[123] [piquet:jobst] ~/.procmail >ls -la
total 140
drwx--6 jobstjobst4096 Jun 28 16:24 .
drwx-- 24 jobstjobst
> I'm looking for a fairly concise source of info on procmail folder
> pre-sorting. I've used some samples I've found but I'm having no luck
> thus-far. Here's a relevent sample from my .procmailrc:
Mwahahaha. :)
# MOST LISTS - Automagically handle lists
:0
* ^((List-Id|X-(Mailing-)?List):(.*[
Works like a charm.
Thus spake Craige McWhirter ([EMAIL PROTECTED]):
> Ta Craig, I'll give it a whirl.
>
> Thus spake [EMAIL PROTECTED] ([EMAIL PROTECTED]):
>
> > > I'm looking for a fairly concise source of info on procmail folder pre-sorting.
>I've used some samples I've found but I'm havin
Craige McWhirter wrote:
> What I failed to mention was that it was suppised to pre-shunt mailing list mail
>(from most mailing lists) into like named folders.
>
> Thus spake Craige McWhirter ([EMAIL PROTECTED]):
>
> > I'm looking for a fairly concise source of info on procmail folder pre-sorting
Ta Craig, I'll give it a whirl.
Thus spake [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> > I'm looking for a fairly concise source of info on procmail folder pre-sorting.
>I've used some samples I've found but I'm having no luck thus-far. Here's a relevent
>sample from my .procmailrc:
> heres mine
Craige McWhirter wrote:
> I'm looking for a fairly concise source of info on procmail folder pre-sorting. I've
>used some samples I've found but I'm having no luck thus-far. Here's a relevent
>sample from my .procmailrc:
>
> - Start .procmail Excerpt -
>
> :0:
> * ^Sender: owner-\/[^@]+
What I failed to mention was that it was suppised to pre-shunt mailing list mail (from
most mailing lists) into like named folders.
Thus spake Craige McWhirter ([EMAIL PROTECTED]):
> I'm looking for a fairly concise source of info on procmail folder pre-sorting. I've
>used some samples I've fo
I'm looking for a fairly concise source of info on procmail folder pre-sorting. I've
used some samples I've found but I'm having no luck thus-far. Here's a relevent sample
from my .procmailrc:
- Start .procmail Excerpt -
:0:
* ^Sender: owner-\/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/
On Mon, Mar 12, 2001 at 06:21:44PM +1100, Dave Fitch uttered:
> On Mon, Mar 12, 2001 at 04:03:56PM +1100, Jeff Waugh wrote:
> >
> >
> > We need to see your .procmailrc.
>
> why? (to check the default mailbox?) here 'tis anyway:
>
What do you mean 'why?'. So us fellow sluggers can "borrow" your
On Mon, Mar 12, 2001 at 04:03:56PM +1100, Jeff Waugh wrote:
>
>
> > 0 1 ## procmail: Error while writing to "/var/mail/"
> > 18390 6 /home/davidf/Mail/slug
> >1841 1 /var/spool/mail/davidf
> >
> > The question is: why do I get the procmail error?
>
> We need to s
> 0 1 ## procmail: Error while writing to "/var/mail/"
> 18390 6 /home/davidf/Mail/slug
>1841 1 /var/spool/mail/davidf
>
> The question is: why do I get the procmail error?
We need to see your .procmailrc.
- Jeff
-- [EMAIL PROTECTED] --
I have postfix and procmail to locally deliver mail.
Every time I get mail in my inbox (ie. /var/mail/davidf)
when I do the mailstat command to get a summary of
new email into which boxes, it looks like:
0 1 ## procmail: Error while writing to "/var/mail/"
18390 6 /home/davi
On Tue, Feb 27, 2001 at 02:14:32PM +1100, John Ferlito wrote:
> is there anyway to access those command line arguments from inside the procmailrc?
$1, $2, $3, ...
Cheers,
John
--
whois [EMAIL PROTECTED]
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://
When you use procmail as your local mailer ins sendmail it gets
called like this.
procmail -Y -m $h $f $u
where $f=sender
and $u=recipient
is there anyway to access those command line arguments from inside the procmailrc?
Basically I want to pass them on to another script I'm running vi
On Sat, 7 Oct 2000, Subba Rao wrote:
>
> Hi,
>
> I am trying to look for some keywords in my mail. I have tried the
> following receipe and it does not seem to be working.
>
> :0 B
> * (procmail|xyz.com)
> {
> Perform from action.
> }
I'm not a procmail expert, but I use
:0:
Hi,
I am trying to look for some keywords in my mail. I have tried the
following receipe and it does not seem to be working.
:0 B
* (procmail|xyz.com)
{
Perform from action.
}
Is this the right way to look for keywords in the email?
At the begining of the receipe, does it matter ":0 B
On Sat, Sep 23, 2000 at 09:41:09AM +, Subba Rao wrote:
>
> I have upgraded procmail to 3.15 and when I type "procmail -v" I get the
> following output.
>
> >> Your system mailbox:/var/spool/mail/subb3
>
> In my $HOME/.procmailrc, I do have the following entries,
>
> >> MAILDIR=$HOME/Ma
I have upgraded procmail to 3.15 and when I type "procmail -v" I get the
following output.
>> Your system mailbox:/var/spool/mail/subb3
In my $HOME/.procmailrc, I do have the following entries,
>> PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
>> MAILDIR=$HOME/Maildir
>> DEFAULT=$
68 matches
Mail list logo