Portál AbcLinuxu, 12. května 2025 21:53

Dotaz: postfix maily utf8

geon avatar 15.10.2007 12:20 geon | skóre: 18 | blog: bavaria
postfix maily utf8
Přečteno: 273×
Odpovědět | Admin
CHtěl bych, abych zprávy od crona, které chodí mailem, jako report o zpracování zálohování, byly hezky česky. Myslím, chybí v hlavičce kodovani utf8: '/var/samba/disk_h/Písemné práce'

Někde jsem četl, že postfix s kodovanim nemá nic společného. Kde tedy v cronu/taru nastavit utf8?

Děkuji.
Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

15.10.2007 12:28 outsider
Rozbalit Rozbalit vše Re: postfix maily utf8
Odpovědět | | Sbalit | Link | Blokovat | Admin
Z manualove stranky man 5 crontab (nezkousel jsem :-)):

By default, cron will send mail using the mail 'Content-Type:' header of 'text/plain' with the 'charset=' parameter set to the charmap / codeset of the locale in which crond(8) is started up - ie. either the default system locale, if no LC_* environment variables are set, or the locale specified by the LC_* environment variables ( see locale(7)). You can use different character encodings for mailed cron job output by setting the CONTENT_TYPE and CONTENT_TRANSFER_ENCODING variables in crontabs, to the correct values of the mail headers of those names.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.