umlaut/8bit chars in sieve vacations?

Palle Girgensohn girgen at pingpong.net
Wed Jul 21 10:45:52 EDT 2004


Thanks, indeed sievec requires utf-8. Work slike a charm.

I filed a bug report and patch to the websieve project site at sourceforge 
(our scripts where mostly created using websieve).

<https://sourceforge.net/tracker/index.php?func=detail&aid=995277&group_id=34008&atid=409932>

--On onsdag, juli 21, 2004 08.18.44 +0200 Simon Matter 
<simon.matter at ch.sauter-bc.com> wrote:

>> Hi!
>>
>> I just updated a cyrus-imapd from 2.0.x to 2.2.6, and realized that the
>> sievec compiler does not eat 8bit characters. Perhaps it shouldn't do it
>
> You have to encode the scripts with UTF-8.
> In my rpms I use a bash function like this on upgrade:
>
># cvt_to_utf8 [file]
> cvt_to_utf8() {
>   target="$1"
>   if [ -s "$target" ]; then
>     if ! $sievec "$target" "${target}.sievec"; then
>       iconv --from-code=ISO-8859-1 --to-code=UTF-8
> --output="${target}.UTF-8" "$target"
>       if [ -s "${target}.UTF-8" ]; then
>         # preserve timestamp
>         touch --reference="$target" "${target}.UTF-8"
>         mv -f "${target}.UTF-8" "$target"
>       else
>         ERRVAL=$[ $ERRVAL + 1 ]
>       fi
>     fi
>     rm -f "${target}.sievec"
>   fi
> }
>
>
> Regards,
> Simon
>
>> without knowing the character set, but I really need to enter 8bit
>> characters in the vacation messages... Before sievec, it worked fine,
>> albeit there was perhaps no charset info in the mail...
>>
>> Ideas?
>>
>> /Palle
>>
>> ---
>> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>
>>
>




---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list