On Mon, Aug 16, 2004 at 08:56:58PM -0700, Dan Quinlan wrote: > > return 1 if grep(/^X-DCC-(?:[^:]+-)?Metrics:/ && /bulk/, @{$self->{msg}->= > > get_all_headers()}); > > If we can expand out the list of headers, we should just go with that.
Sure. I was reproducing the initial behavior, but if we know the list of headers, that'd be better. The issue, however, is: [...] DCC SMTP header lines are of the form: X-DCC-brand-Metrics: chost server-ID; bulk cknm1=count cknm2=count ... where brand is the "brand name" of the DCC server, such as "RHYOLITE". [...] So "brand" is open to how things are configured and which DCC server is being used. I think we have to do the get_all_headers() call there. > Actually, that test has to be done via get('ALL') because you can't get > the raw header name via get($header); Ah... You're right. I should learn not to respond to mails when I have 17 other things going on at the same time. <sigh> -- Randomly Generated Tagline: Life gets boring, someone invents another necessity, and once again we turn the crank on the screwjack of progress hoping that nobody gets screwed. -- Larry Wall in <[EMAIL PROTECTED]>
pgpkh9LTbj0Ie.pgp
Description: PGP signature