[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 |
Tue, 27 Mar 2012 23:57:37 +0200 |
Hi Wong,
I add this answer to the public list because your issue may interest other users,
tell me if you disagree and add it too if you agree.
> Please check the below message header sample. I want use "Received:
> from hkgs19b.xxx.com" for search if match then add the Content-Type:
> text/plain;
> charset="big5"}gxms' on next line. But use dry and no any result for
> match. Thanks alot
>
> Return-Path: <xtddsds at xxxx dot com>
> Received: from hkgdsd5.xxx.com ([10.10.10.10])
> by hkgmp02.arahk.com (MOS 3.10.8-GA)
> with ESMTP id AIY00469;
> Mon, 26 Mar 2012 13:08:19 +0800 (HKT)
> Received: from hkgara95 ([127.0.0.1]) by hkgara95.xxx.com with
Ok. 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