procmail
[Top] [All Lists]

Re: hex value in condition

1997-08-06 16:35:00
era eriksson <era(_at_)iki(_dot_)fi> wrote:

<snip>

era>  > Did I clarify the question?
era> 
era> Yes. Can't you just put those four bytes there? There is no notation
era> for using octal/hexadecimal/whatever codes in place of real
era> characters. (If you want that, you can write a preprocessor of some
era> sort which would create your .procmailrc from your own proprietary
era> source file.)

Yes, I could just put 4 bytes, 
HOWEVER it could be tricky to put EUC code chars (seldom used on my PC)
in an environment where I have to deal with at least three kinds of
code system to handle my own language;-<
So, I came up with following solution:

HENSHIN=`perl -e 'print"\xca\xd6\xbf\xae"`
:0
* $ B ?? .*\/$HENSHIN
  { 
    :0
    | echo "$MATCH" > henshin
  } 
  
This way, it's much easier to handle and "stable" so to speak.
Thank you for response.
_/_/_/      Mitsuru FURUKAWA      _/_/_/
_/_/_/        Tokyo, Japan        _/_/_/
_/_/_/     mailto:furu(_at_)009(_dot_)com    _/_/_/
_/_/_/  http://www.009.com/furu/  _/_/_/

<Prev in Thread] Current Thread [Next in Thread>