What are your opinions on pcre vs regexp for header_, body_, and mime_checks in Postfix? I looked at the regexp_table and prce_table man pages, and see almost no difference other than the available flags. Miark
On Mon, Dec 03, 2007, Miark wrote:>What are your opinions on pcre vs regexp for header_, body_, and >mime_checks in Postfix? > >I looked at the regexp_table and prce_table man pages, and see >almost no difference other than the available flags.The main difference is that pcre uses the same regular expression syntax as perl and python. I consider this an advantage as I've been using this syntax for the better part of 20 years, and don't have to remember how other systems handle REs (which is a major part of my reason for starting to use perl in the late '80s). Bill -- INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Good luck to all you optimists out there who think Microsoft can deliver 35 million lines of quality code on which you can operate your business. -- John C. Dvorak
On Dec 3, 2007 4:11 PM, Miark <mlist at gardnerbusiness.com> wrote:> What are your opinions on pcre vs regexp for header_, body_, and > mime_checks in Postfix? > > I looked at the regexp_table and prce_table man pages, and see > almost no difference other than the available flags.It's been a while since I've used the setup, but I've always used pcre since it is the same regex as perl. More familiarity and, at the time I used it, more documentation (at least readily available). YMMV. -- Curt Micol "Fear is winning, refuse to be terrorized, people." -- Bruce Schneier
Miark wrote:> What are your opinions on pcre vs regexp for header_, body_, and > mime_checks in Postfix? > > I looked at the regexp_table and prce_table man pages, and see > almost no difference other than the available flags.whenever you can, use pcre. it has a "better" syntax. it's also faster but since you shouldn't abuse header_checks, this is not important. see http://en.wikipedia.org/wiki/PCRE