My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
README for LeopardNSPreferredCharset.mailbundle

See
http://code.google.com/p/leopard-preferred-mail-charset-fix/
for informations not mentioned in this file.

== Prerequisites
This plugin is Only for Mail.app on Leopard.

== How to install
Be sure Mail.app is not running.

Copy Leopard LeopardNSPreferredCharset.mailbundle into one of directories
~/Library/Mail/Bundles/
or
/Library/Mail/Bundles/.

Then enter commands in Terminal.app
(Launch /Application/Utilities/Terminal.app.)
defaults write com.apple.mail EnableBundles -bool true
defaults write com.apple.mail BundleCompatibilityVersion 3

Launch Mail.app.
If you are succeeded in installation process, you will see a console message
"PreferredCharset initialized.".
(Launch /Application/Utilities/Console.app, then select "Console Messages" in the left pain.)

Open a new message window of Mail.app, you will see a line like that in Console.app

11/09/05 9:29:48 Mail[621] setPreferredEncoding: 0x8000100

When you change "Text Encoding" from "Message" menu you will see like that:

11/09/05 9:44:39 Mail[745] setPreferredEncoding: 0x201

(This time I choose "Western (ISO Latin 1)")
This value is required to build an encoding customized version.

== Customization for your charset (encoding)
Make sure you installed Xcode on Leopard

Checkout the source code of this project by following instruction:
http://code.google.com/p/leopard-preferred-mail-charset-fix/source/checkout

Replace the value of your preferred encoding to "PreferredCharset.m"

[self setPreferredEncoding: 0x8000100]; // UTF-8

Save the source file and build the project.

Copy newly built LeopardNSPreferredCharset.mailbundle into the place I described Installation section of this document.

Restart Mail.app and wish good luck for it.


== Version history
0.2 2011-09-05
* Hard coded charset is changed from ISO-2022-JP to UTF-8

0.1 2008
* First release

== References and Acknowledgement
Apple's official support information about NSPreferredMailCharset.
http://docs.info.apple.com/article.html?artnum=301986-en

James Eagan
His tutorial and the ASP.mailbundle help me to understand of mailbundle. Thanks.
http://www.bazza.com/~eaganj/weblog/2006/03/29/demystifying-mail-app-plugins/
http://www.bazza.com/~eaganj/weblog/code/mail-plugin/

Makoto Kinosita
This article explains how to inject applications code at runtime (Sorry, but in Japanese).
http://journal.mycom.co.jp/column/objc/029/index.html

The class-dump tool
I got latest interface of MVMailBundle with the tool.
http://www.codethecode.com/projects/class-dump/

Isaac
You give me a chance of releasing version 0.2 ;)

Change log

r8 by hiroshi3110 on Sep 4, 2011   Diff
Hard coded charset is change from
ISO-2022-JP to UTF-8. Print out choosed
charset on console
Go to: 
Project members, sign in to write a code review

Older revisions

r7 by hiroshi3110 on Jan 20, 2008   Diff
Add the section for References and
Acknowledgement
r6 by hiroshi3110 on Jan 20, 2008   Diff
add README and Makefile
All revisions of this file

File info

Size: 2646 bytes, 81 lines
Powered by Google Project Hosting