[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] Can I use --regexness add charset ??


From Gilles LAMIRAL <gilles dot lamiral at laposte dot net>
Subject Re: [imapsync] Can I use --regexness add charset ??
Date Fri, 30 Mar 2012 14:42:44 +0200

Hi Wong,

> Please see the result from my test. Thanks alot.
> 
> I try to use this two command for filler but fail.
> --regexmess "s{\A(.*?(?! ^$))^Content-Type:
> text\/plain(.*?)$}{$1Content-type:
> text\/plain;charset=\"big5\"$2}gxms"
> 
> --regexmess "s{\A(.*?(?! ^$))^X-Authentication-Warning:
> hkgs01(.*?)$}{$1X-Authentication-Warning: hkgs01$2\nContent-type:
> text\/plain;charset=\"big5\"}gxms"
> 
> Work command but this have issue is cannot define the host from hkgs01
> --regexmess "s{\A(.*?(?!
> ^$))^X-Authentication-(.*?)$}{$1X-Authentication-$2\nContent-type:
> text\/plain;charset=\"big5\"}gxms"

Look at my solution, try it and restart from it, I removed
the x in the end of the expression "...}gxms"

>> I found the following might work:
>>>
>>>   --regexmess 's{\A(.*?(?!^$))^(Received: from hkgdsd5.xxx.com.*?)$}{$1Content-Type: text/plain; charset="big5"\n$2}gms'


-- 
Au revoir,                             09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06