Ludovic Bellier schrieb am Mon, Jan 14, 2002 at 01:17:43PM +0100:
> ok
> I used your perl command to generate a base64 password but ...
>
> > perl -e 'use
> MIME::Base64;$u=bellier;$p=tititoto;$r=encode_base64("$u\0$u\0$p");print
> "$r\n";'
> YmVsbGllcgBiZWxsaWVyAHRpdGl0b3Rv
>
> the string does not end with a =
>
> so timsieved does not want to let me in :
> > telnet localhost sieve
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> "IMPLEMENTATION" "Cyrus timsieved v1.0.0"
> "SASL" "PLAIN"
> "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
> regex"
> OK
> authenticate "plain" "YmVsbGllcgBiZWxsaWVyAGthbWk6bmlz"
> NO ("SASL" "internal error") "Authentication error"
>
> the error message is no longer the same
OK, sorry, I'm not as bright with base64 as I thought. You're right, it
does not end with a "=", this is seemingly not the case with all base64
user/passw encoded strings.
Anyway, the perl command above does result in a correct base64 string
which can be used for SMTP-AUTH (which we won't deal here with either,
I'm sorry for the confusion).
Maybe you try a simple encode_base64($pass) for auth with sieve?
Regards,
- Birger