Explained how hooks now can get data, documented attachment hook and data
[squirrelmail.git] / doc / README.russian_apache
CommitLineData
8c086db6 1HOW TO CONFIGURE SQUIRREL-MAIL WITH RUSSIAN APACHE
2--------------------------------------------------
3
223bb718 4This text is available in Russian at
5http://www.mricon.com/SM/russian_apache.html
6
a48fbf9b 7*****
8NOTE: Russian Apache will recode all attachments, even if they
9are binary, thus corrupting them. To fix this problem, refer to
10Russian Apache FAQ: http://apache.lexa.ru/faq.html#5
11*****
12
8c086db6 13This howto is for people who are using Russian Apache and
14who use charsets other than koi8-r for their source documents.
15If you _do_ use KOI8-R as default encoding for all your source
16documents, you don't need to do anything. Otherwise, here's
17a very simple way to make this work.
18
19The general idea is to tell Russian Apache that everything
20residing in the squirrel-mail directory is in koi8-r. This
21way all input submitted by users will be automagically
22converted by mod_charset from anything into koi8-r.
23Squirrel-Mail will then correctly stamp it with
24"Charset=koi8-r" and send off without any additional
25conversion.
26
27There are two equally efficient ways to do it:
28
29
301. THE HTTPD.CONF WAY.
31-----------------------
32
33In your httpd.conf, add the following declaration for the
34server that handles the squirrel-mail:
35
36<Directory /path/to/your/squirrel-mail>
37CharsetSourceEnc koi8-r
38</Directory>
39
40Warning: If you use CharsetByExtension elsewhere, it will
41override the CharsetSourceEnc directive. In that case you will
42have to put this directive instead of the above:
43
44<Directory /path/to/your/squirrel-mail>
45CharsetByExtension koi8-r .php
46</Directory>
47
48It is advised to use the CharsetSourceEnc declaration instead
49of the other one. Use the CharsetByExtension only if the
50other fails.
51
522. THE .HTACCESS WAY (PREFERRED).
53----------------------------------
54
55Create a .htaccess file in your squirrel-mail directory. In it,
56simply put this line:
57
58CharsetSourceEnc koi8-r
59
60That's it. Note the warning about the ChatsetByExtension directive
61in the previous section. If you used CharsetByExtension declaration
62elsewhere and it's active for this server, then you will have to
63put this line in your .htaccess instead:
64
65CharsetByExtension koi8-r .php
66
67But again, this is only if the CharsetSourceEnc fails.
68
69I mark this method "Preferred" simply because you don't have to
70restart your server if you use .htaccess. However, if you've
71specified "AllowOverride None" in your Server config, then you
72will have to go with "the httpd.conf way".
73
74
75If you have any questions or problems, please address them to
76the squirrelmail-list@lists.sourceforge.net to have them
77promptly answered. ;)
78
79--
80Konstantin Riabitsev (a.k.a. Graf)
81graf@relhum.org