On Sat, 2 Mar 2013, Ned Slider wrote:

On 02/03/13 01:40, John Hardin wrote:
 On Sat, 2 Mar 2013, Ned Slider wrote:
> > header __MANY_RECIPS ToCc =~ /(?:\@[^@]{5,30}){3}/ > > Can someone explain the regex and why it fails to fire for 7 recipients?

 If the username + domain name + inter-address punctuation is longer than
 30 chars it won't work.

 I don't see a good reason for the upper limit, or at least for one that
 restrictive. The To and Cc headers aren't going to be unboundedly long.

Thanks John (and others).

Yes, the limit of 30 looks too small. I just created a local rule upping the limit to 100 and it now fires as expected.

John - can we increase the limit?

Upped to 100. I was going to suggest something smaller, but realized that includes the user-visible-name part. 100 may not be enough given things like encoded UTF-8 display names, but this will improve things.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  So Microsoft's invented the ASCII equivalent to ugly ink spots that
  appear on your letter when your pen is malfunctioning.
         -- Greg Andrews, about Microsoft's way to encode apostrophes
-----------------------------------------------------------------------
 12 days until Albert Einstein's 134th Birthday

Reply via email to