Re: cvs commit: CVSROOT modules

From: Jeremy Chadwick <koitsu_at_FreeBSD.org>
Date: Wed, 9 Jul 2008 21:16:17 -0700
On Wed, Jul 09, 2008 at 11:58:04PM -0400, Philip M. Gollucci wrote:
> Peter Jeremy wrote:
>> On 2008-Jul-09 22:15:54 -0400, "Philip M. Gollucci" <pgollucci_at_p6m7g8.com> wrote:
>>> For example a recent cvs-ports mail process with my ~/.procmailrc 
>>> which invokes cvsmail.  Your commits to CVSROOT/modules contain no 
>>> such diff in the e-mail.
>>
>> The original mail sent from FreeBSD.org does not contain any patches.
>> The actual commit message looks normal so the problem would appear
>> to be that your local configuration is not correctly parsing the
>> commit message.  One way in which it is different to the update you
>> reported is that it relates to a CVSROOT file - possibly you are not
>> correctly handling CVSROOT commits.
>>
> Anything wrong with this ?
>
> :0
> * ^Sender:.owner-cvs-\/[^_at_]+_at_FreeBSD.ORG
> {
>     LISTNAME=${MATCH}
>     :0
>     * LISTNAME??^\/[^_at_]+
>     | /usr/local/bin/cvsmail -d -c -g -f freebsd.org/cvs-${MATCH}
> }
>
> :0
> * ^Sender:.owner-freebsd-\/[^_at_]+_at_FreeBSD.ORG
> {
>     LISTNAME=${MATCH}
>     :0
>     * LISTNAME??^\/[^_at_]+
>     freebsd.org/${MATCH}
> }

The lack of file locking on your delivery rules is a bit disheartening
for starters (unless you use Maildir, which I don't believe you do,
since there's no trailing "/" on your delivery boxes).

The rule I've used for quite some time, at least for lists:

:0
* ^List-Id:.*<\/[^.]+\.freebsd.org>
{
  LISTNAME=${MATCH}

  :0:
  * LISTNAME ?? ^\/[^.]+
  freebsd/${MATCH}
}

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |
Received on Thu Jul 10 2008 - 04:26:47 UTC