Re: how to strip tab character from subject line using postfix

2008-10-17 Thread Wietse Venema
Justin McAleer: > Victor Duchovni wrote: > > On Thu, Oct 16, 2008 at 07:28:57PM +0300, [EMAIL PROTECTED] wrote: > > > > Trying to index "pcre" tables. Don't do that. > > Would it be worth making postmap notice when someone is trying to index > one of the non-indexed table types, and give a more s

Re: how to strip tab character from subject line using postfix

2008-10-17 Thread Justin McAleer
Victor Duchovni wrote: On Thu, Oct 16, 2008 at 07:28:57PM +0300, [EMAIL PROTECTED] wrote: Trying to index "pcre" tables. Don't do that. Would it be worth making postmap notice when someone is trying to index one of the non-indexed table types, and give a more specific warning about bein

Re: how to strip tab character from subject line using postfix

2008-10-16 Thread Victor Duchovni
On Thu, Oct 16, 2008 at 07:28:57PM +0300, [EMAIL PROTECTED] wrote: > Thanks, > > I am still a bit lost with pcre syntax, and > > this complains something: > > postmap /etc/postfix/header_checks.pcre > postmap: warning: /etc/postfix/header_checks.pcre, line 20: expected > format: key whitespac

Re: how to strip tab character from subject line using postfix

2008-10-16 Thread eerov
Thanks, I am still a bit lost with pcre syntax, and this complains something: postmap /etc/postfix/header_checks.pcre postmap: warning: /etc/postfix/header_checks.pcre, line 20: expected format: key whitespace value and this too: postmap: fatal: unsupported map type: pcre but, this works:

Re: how to strip tab character from subject line using postfix

2008-10-16 Thread Victor Duchovni
On Thu, Oct 16, 2008 at 05:18:11PM +0200, mouss wrote: > > Big thanks, but looks a bit cryptic since I am not very familiar with > > regexps. > > > > Is there nice way to test this from commandline? > > you can use postmap -q. subject=$(printf "Subject: %s\t%s\t%s\t%s" testing 1 2 3) po

Re: how to strip tab character from subject line using postfix

2008-10-16 Thread mouss
[EMAIL PROTECTED] a écrit : > Lainaus Victor Duchovni <[EMAIL PROTECTED]>: > >> On Thu, Oct 16, 2008 at 05:11:00PM +0300, [EMAIL PROTECTED] wrote: >> >>> Is it possible to strip tab character from email message subject >>> header using postfix? how? >>> >>> This problem is caused by groupwise and

Re: how to strip tab character from subject line using postfix

2008-10-16 Thread eerov
Lainaus Victor Duchovni <[EMAIL PROTECTED]>: On Thu, Oct 16, 2008 at 05:11:00PM +0300, [EMAIL PROTECTED] wrote: Is it possible to strip tab character from email message subject header using postfix? how? This problem is caused by groupwise and thunderbird combination, so groupwise adds tabula

Re: how to strip tab character from subject line using postfix

2008-10-16 Thread Wietse Venema
Victor Duchovni: > /^(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*)$/ > REPLACE ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} > /^(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*)$/ > REPLACE ${1} ${2} ${3} ${4} ${5} ${6}

Re: how to strip tab character from subject line using postfix

2008-10-16 Thread Victor Duchovni
On Thu, Oct 16, 2008 at 05:11:00PM +0300, [EMAIL PROTECTED] wrote: > Is it possible to strip tab character from email message subject > header using postfix? how? > > This problem is caused by groupwise and thunderbird combination, so > groupwise adds tabulator characters in long subject line