Adam Bogacki | 2 Jan 2005 11:40
Picon
Favicon

Re: 'Folder: bounced'

Thanks .. Dallman & Ruud.

I've rewritten /etc/procmailrc and $HOME/.procmailrc using Ruud's
example - which I appreciate due to uncluttered layout - but (not 
having rebooted) - it's still not filtering.

I attach the above and output of ./procdiag.sh both as root and as user.
The file permissions appear to be ok (dallman ?).

Could the cause be something outside procmail ?

Happy new year.

Adam Bogacki,
afb <at> paradise.net.nz

(1) /etc/procmailrc

[Ruud: I don't understand why Mailman has  2 spaces around the '.*' in
the Subject-header.]

# This is the /etc/procmailrc
# It is run just before the user's ~/.procmailrc

  DROPPRIVS   = 'yes'

  SHELL       = 'bin/sh'

  MAILDIR     = "$HOME/Mail"
  DEFAULT     = "$MAILDIR/.Inbox/"
(Continue reading)

Dallman Ross | 4 Jan 2005 10:57

Re: 'Folder: bounced'

On Sun, Jan 02, 2005 at 09:40:37PM +1100, Adam Bogacki wrote:

> Thanks .. Dallman & Ruud.
> 
> I've rewritten /etc/procmailrc and $HOME/.procmailrc using Ruud's
> example - which I appreciate due to uncluttered layout - but (not 
> having rebooted) - it's still not filtering.

What do your logs say?

"It's ... not filtering" is not very helpful diagnostically.
We need to determine if procmail is running, and, if so, where
it is failing to do what you think it should do, etc.  This is
what logs are for, and why we spent so much time and effort finding
your logs.  So now that you have a new /etc/procmailrc with
a log that you should be able to find: what does the log say?
(Turn on VERBOSE for a while and see.)

> Could the cause be something outside procmail ?

What do the logs say?  (Do I hear an echo?)

> [Ruud: I don't understand why Mailman has  2 spaces around the '.*' in
> the Subject-header.]

> 
> #--> should be writable by the user
>   LOGFILE     = "$MAILDIR/etc-procmail.log"

Is it writable by the user?
(Continue reading)

kurtz | 4 Jan 2005 17:52
Picon
Picon
Favicon

Matching exactly 3 times on regexp

For marking my own mail messages as read on Mutt I am using the
following recipe:

:0 Wf
* ^From: .*kurtz[0-9][0-9][0-9]
| formail -I "Status: RO"

This is, mail from any address which contains my login plus three digits is
considered as mail generated from here. However, the following doesn't
work:

:0 Wf
* ^From: .*kurtz[0-9]{3}
| formail -I "Status: RO"

I suspected that somehow I had to escape those `{' and `}'. However,
none of the following work:

* ^From: .*kurtz[0-9]\{3\} nor

ME=kurtz[0-9]{3} or
ME=kurtz[0-9]\{3\} or
ME='kurtz[0-9]{3}' with

* $ ^From: .*($ME) nor
* $ ^From: .*($\ME)

Neither reading the fine manual nor googling I have found a way
round. Any feedback will be very useful!
(Continue reading)

Dallman Ross | 4 Jan 2005 18:43

Re: Matching exactly 3 times on regexp

On Tue, Jan 04, 2005 at 05:52:18PM +0100, kurtz wrote:
> the following doesn't
> work:
> 
> :0 Wf
> * ^From: .*kurtz[0-9]{3}
> | formail -I "Status: RO"
> 
> 
> Neither reading the fine manual nor googling I have found a way
> round. Any feedback will be very useful!

This one comes up fairly frequently.  Suggestion for the future
is to go to the searchable list archives at www.procmail.org
(kind of far down on the page is a link).  The answer is, that
is "extended" egrep syntax and is not supported in procmail.
Only "traditional egrep-py syntax (fixed in time about 1.5
decades ago or something) is supported.  Sorry.

You can work around this various ways.  One way is:

   NUMSET = '[0-9]'
   THREENUMS = "$NUMSET$NUMSET$NUMSET"

Btw, your test for recognizing "you" is probably a little too
relaxed.  You're likely to get a fair amount of spam and other
cruft into your archive.

--

-- 
dman
(Continue reading)

kurtz | 4 Jan 2005 19:05
Picon
Picon
Favicon

Re: Matching exactly 3 times on regexp

Dallman Ross escribe:
> The answer is, that is "extended" egrep syntax and is not supported
> in procmail.

Thanks a lot and sorry for asking a FAQ!

> Btw, your test for recognizing "you" is probably a little too
> relaxed.  You're likely to get a fair amount of spam and other
> cruft into your archive.

Well, at least it will be marked as read. =:)

Re: Matching exactly 3 times on regexp

At 19:05 2005-01-04 +0100, kurtz wrote:
> > Btw, your test for recognizing "you" is probably a little too
> > relaxed.  You're likely to get a fair amount of spam and other
> > cruft into your archive.
>
>Well, at least it will be marked as read. =:)

The "mail from me" stuff -- is it mail expected to originate on your own 
mail server?  Checking Received: headers and Message-Ids, as well as 
perhaps the From_ (envelope sender - lots of forgeries have the envelope 
sender different from the From: -- though legitimate mailing list messages 
such as you posted here will come back to you with a different envelope 
sender too) might all be good additional checks to make.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.
kurtz | 4 Jan 2005 20:45
Picon
Picon
Favicon

Re: Matching exactly 3 times on regexp

Professional Software Engineering escribe:
> The "mail from me" stuff -- is it mail expected to originate on your own 
> mail server?

Simply mail sent by me, I find useful not being notified by Mutt of
new mail on a mailing list when only new messages sent by me are
there.

It's an unambitious feature, though thanks for all suggestions. :)
Adam Bogacki | 5 Jan 2005 12:12
Picon
Favicon

Re: 'Folder: bounced '

Lets be optimists, Dallman.

As noted below I've gone with Ruud's example so you are
really criticising his work.

The system log is working (named 'etc-procmail.log' in
/home/adam/Mail) but there is no sign of the user log
(named 'adam-procmail.log'). 

Essentially it contains the following with the only
thing changing being the pid.

---

pid(7452) rc(/etc/procmailrc) user(adam)
home(/home/adam)
maildir(/home/adam/Mail)
default(/home/adam/Mail/.Inbox/)
formail()
sendmail(/usr/sbin/sendmail)
path(/home/adam/bin:/usr/local/bin:/usr/bin:/bin)
---

procmail: Couldn't create or rename temp file "backup/y-spam"
  Folder: cd backup && rm -f dummy 'ls -t msg.* | sed -e 1,200d'
  /bin/sh: bin/sh: No such file or directory

.. which is a bit strange as I've commented that section
out in /etc/procmailrc, see below ..

(Continue reading)

Andreas Schmidt | 5 Jan 2005 12:39
Picon

Trouble with scoring (Was: Re: Need regex-help: inverted word search)

Hi,

On 2004.11.05 23:35, Professional Software Engineering wrote:
> At 20:45 2004-11-05 +0100, Andreas Schmidt wrote:
>> On 2004.11.05 19:39, Professional Software Engineering wrote:

>>> I get the general impression that you're trying to determine if
>>> multiple recipients at your domain are addressed.  Search the
>> Right, it's a number of accounts at the same domain, which makes it  
>> a
>> problem. A mail for
>>         To: someone <at> server, myname <at> server, somebodyelse <at> server
>> would match your first rule:
>>         * ^To:.* <at> server
>> But because To always contains myname <at> server,
>>         * ! ^To:.*myname <at> server
>> will never match.

> The simplistic approach might be to do the following (this assuming  
> the To: field is indeed what you're looking to match on):
> 
> :0
> * ^To:\/.*
> * -1^0
> * 1^1 TO ??  <at> server
> * -1^1 TO ?? myname <at> server
>

I just noticed that this recipe doesn't work as it should. I understand  
what it is supposed to do, but when I test it with real mail, it  
(Continue reading)

Ruud H.G. van Tol | 5 Jan 2005 13:33
Picon

Re: 'Folder: bounced '

Toen wij Adam Bogacki kietelden, kwam er dit uit:

> The system log is working (named 'etc-procmail.log' in
> /home/adam/Mail) but there is no sign of the user log
> (named 'adam-procmail.log').

OK, so partly things are showing up now.

> procmail: Couldn't create or rename temp file "backup/y-spam"
>   Folder: cd backup && rm -f dummy 'ls -t msg.* | sed -e 1,200d'
>   /bin/sh: bin/sh: No such file or directory
>
> .. which is a bit strange as I've commented that section
> out in /etc/procmailrc, see below ..

That is not only a bit strange, that is very strange.

Where does that 'y-spam' come from?

Are you editing files in a DOS/Windows-environment? If so, compensate,
since CRLF-line-endings don't work in any procmailrc.

> /etc/procmailrc has created 'bounced' and 'etc-procmail.log'
> in /home/adam/Mail, but there is no sign of 'Trash' nor
> of the entities (files ? boxes ?) specified in
> /home/adam/.procmailrc

The recipe was:

  :0:
(Continue reading)


Gmane