[exim] Doc suggestion: mimencode example

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Olivier
Data:  
Para: exim-users
Asunto: [exim] Doc suggestion: mimencode example
Hi,

Here http://www.exim.org/exim-html-current/doc/html/spec_html/ch33.html ,
you can read :

If you have the *mimencode* command installed, another way to do produce
base64-encoded strings is to run the command

echo -e -n `\0user\0password' | mimencode

The *-e* option of *echo* enables the interpretation of backslash escapes in
the argument, and the *-n* option specifies no newline at the end of its
output. However, not all versions of *echo* recognize these options, so you
should check your version before relying on this suggestion.

Would it be possible to add a small example, so that readers can be certain
their version of echo recognize these options ?
I was thinking of :

echo -e -n '\0abc\0def' | mimencode
AGFiYwBkZWY=

Best regards