<<< Date Index >>>     <<< Thread Index >>>

Re: Threading bugs reports



Re: mauro in <20051111102501.87773.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> I would like to know how I can thread automatically
> generated bugs reports from a mailing list.
> 
> The subjects are the same but they are not as reply to
> previous messages.

Use procmail:

# group tracker items
:0fh
* ^From: .*noreply@xxxxxxxxxxxxxxx
* ^Subject: .*-\/[0-9]+
* !^References:
| formail -i"References: <$MATCH@xxxxxxxxxxxxxxx>"

# group CVS changes
:0
* ^From: .*@users.sourceforge.net
* ^To: pisg-commits@xxxxxxxxxxxxxxxxxxxxx
* ^Date: \/.*
* !^References:
{
  DATE=`date -d "$MATCH" '+%Y%m%d%H%M'`
  :0fh
  | formail -i"References: <pisg-commits-$DATE@xxxxxxxxxxxxxxx>"
}

The first recipe uses some header bit to create a fake References:
line, the second uses the time to group related commit messages.

Christoph
-- 
cb@xxxxxxxx | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature