diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/thunderbird_isp_hooks | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/ja/thunderbird_isp_hooks')
| -rw-r--r-- | files/ja/thunderbird_isp_hooks/index.html | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/files/ja/thunderbird_isp_hooks/index.html b/files/ja/thunderbird_isp_hooks/index.html new file mode 100644 index 0000000000..4396c5f2aa --- /dev/null +++ b/files/ja/thunderbird_isp_hooks/index.html @@ -0,0 +1,176 @@ +--- +title: Thunderbird ISP hooks +slug: Thunderbird_ISP_hooks +tags: + - Administration + - enterprise +translation_of: Mozilla/Projects/Thunderbird/Thunderbird_ISP_hooks +--- +<h3 id=".E3.82.A4.E3.83.B3.E3.83.88.E3.83.AD.E3.83.80.E3.82.AF.E3.82.B7.E3.83.A7.E3.83.B3" name=".E3.82.A4.E3.83.B3.E3.83.88.E3.83.AD.E3.83.80.E3.82.AF.E3.82.B7.E3.83.A7.E3.83.B3">イントロダクション</h3> +<p>ISP やウェブメールプロバイダから E メールにアクセスすることは、Thunderbird を使い始めようとする多くのユーザにとって大きな負担になります。ユーザは、POP または IMAP 受信サーバ名、認証方法、SSL/TLS などのセキュリティ設定、送信サーバ名などの固有の設定情報を知る必要があります。多くの ISP やウェブメールプロバイダは、様々な設定を持つ異なるメールクライアントでアカウント設定ができるように、ユーザを導くオンラインドキュメントを維持しなければなりません。</p> +<p>現在の Thunderbird には、ISP およびウェブメールのユーザが簡単にアカウントを作成できるようにする仕組みがあります。新規ユーザがアカウントに関連付けられた E メールアドレスを入力すると、Thunderbird は残りのアカウントの詳細を設定します。Thunderbird 2 は gmail および .mac アカウントの ISP 情報を搭載しています。追加の ISP 設定は拡張機能としてインストールすることができます。</p> +<p>このドキュメントでは、ISP 設定ファイルの書き方と Thunderbird 用の拡張機能としてバンドルする方法について説明します。</p> +<h3 id=".E4.BB.95.E7.B5.84.E3.81.BF" name=".E4.BB.95.E7.B5.84.E3.81.BF">仕組み</h3> +<p>考え方は至って簡単です。ISP やウェブメールプロバイダのためのアカウント設定は RDF または XML ファイルで指定されています。このファイルは、ユーザが拡張機能としてインストールすることができます。</p> +<p>Thunderbird はこれらの設定ファイルを探し、新しいアカウントの項目をアカウント作成ウィザードに追加します。ユーザは氏名とユーザ名を入力し、残りのアカウント設定は設定ファイルから自動的に設定されます。</p> +<p>以下の画像は、仮の ISP ファイルを追加したアカウント作成ウィザードのスクリーンショットです。</p> +<p><img alt="Image:ISPAccountwizard.png" class="internal" src="/@api/deki/files/1737/=ISPAccountwizard.png"></p> +<h3 id="ISP_.E8.A8.AD.E5.AE.9A.E3.83.95.E3.82.A1.E3.82.A4.E3.83.AB.E3.81.AE.E4.BD.9C.E6.88.90" name="ISP_.E8.A8.AD.E5.AE.9A.E3.83.95.E3.82.A1.E3.82.A4.E3.83.AB.E3.81.AE.E4.BD.9C.E6.88.90">ISP 設定ファイルの作成</h3> +<p>設定ファイルは、メールアカウント (IMAP, News, POP3, movemail) および (適切な場合は) 送信サーバのデフォルト設定が書かれた、文字コードが UTF-8 の単純なテキストファイルです。</p> +<h4 id=".E5.AE.9F.E4.BE.8B" name=".E5.AE.9F.E4.BE.8B">実例</h4> +<p>こちらに、テンプレートとして利用できる ISP 設定ファイルの実例があります。</p> +<ul> + <li>{{ Source("mailnews/base/ispdata/gmail.rdf") }}</li> + <li>{{ Source("mailnews/base/ispdata/dotmac.rdf") }}</li> + <li><a class="external" href="http://infosec.ufl.edu/tbird/Gatorlink.rdf" rel="freelink">http://infosec.ufl.edu/tbird/Gatorlink.rdf</a></li> +</ul> +<h4 id=".E3.82.A2.E3.82.AB.E3.82.A6.E3.83.B3.E3.83.88.E5.B1.9E.E6.80.A7.E3.81.AE.E8.BF.BD.E5.8A.A0" name=".E3.82.A2.E3.82.AB.E3.82.A6.E3.83.B3.E3.83.88.E5.B1.9E.E6.80.A7.E3.81.AE.E8.BF.BD.E5.8A.A0">アカウント属性の追加</h4> +<p>メールアカウントには、それに関連付けられたいくつかのオブジェクトがあります。受信サーバ、送信 (SMTP) サーバ、そしてユーザ情報です。各オブジェクトは、設定ファイルの中で指定できる固有の設定を持っています。</p> +<ul> + <li>設定ファイル内に記述する一般的な受信サーバに関するタグは、{{ Source("mailnews/base/public/nsIMsgIncomingServer.idl", "nsIMsgIncomingServer.idl") }} で指定されている属性に合わせます。(タグは、この IDL ファイルの「<code>attribute</code>」としてリストされているすべてのオブジェクトに自動的にマッピングされます)</li> + <li>ユーザ情報に関するタグも、同じように {{ Source("mailnews/base/public/nsIMsgIdentity.idl", "nsIMsgIdentity.idl") }} で指定されている属性に合わせます。</li> + <li>送信サーバに関するタグも、同じように {{ Source("mailnews/compose/public/nsISmtpServer.idl", "nsISmtpServer.idl") }} で指定されている属性に合わせます。</li> +</ul> +<p>注: 受信サーバの種類は文字列で、<code>imap</code>、<code>pop3</code>、<code>nntp</code> のいずれかです。以下は POP サーバを定義した例です。</p> +<pre><!-- POP3 サーバ情報 --> +<NC:incomingServer> + <NC:nsIMsgIncomingServer> + <NC:prettyName>Mozilla ISP</NC:prettyName> + <NC:hostName>pop.example.net</NC:hostName> + <NC:type>pop3</NC:type> + <!-- + Thunderbird 3 では、以下の設定が "TypeError: dest.setBoolAttribute is not a function" + を引き起こし、作成されるアカウントが不正なものとなってしまいます。 + <NC:rememberPassword>true</NC:rememberPassword> + --> + </NC:nsIMsgIncomingServer> +</NC:incomingServer> +</pre> +<p><code>NC:type</code> を <code>pop3</code> から <code>imap</code> に変えると、IMAP サーバのアカウントを作成できます。</p> +<p>{{ Source("mailnews/base/public/nsIMsgIncomingServer.idl", "nsIMsgIncomingServer.idl") }} を見ると、<code>port</code> という一般的な属性があります。ISP は、nsIMsgIncomingServer にポート属性を導入することで、サーバに非標準のポートを指定することができます:</p> +<pre><NC:incomingServer> + <NC:nsIMsgIncomingServer> + .. + <NC:port>555</NC:port> + .. + </NC:nsIMsgIncomingServer> +</NC:incomingServer> +</pre> +<p><code>nsIMsgIncomingServer</code> に含まれている、ISP がよく設定したいと考えるもうひとつの一般的な属性は <code>socketType</code> です。この値には、<code>0</code> (標準のソケット)、<code>1</code> (可能であれば TLS を使用)、<code>2</code> (常に TLS を使用)、<code>3</code> (SSL を使用) のいずれかを指定できます。</p> +<p><code>nsIMsgIncomingServer</code> に含まれている一般的な属性はすべてこの設定ファイルで指定できます。ユーザ情報と送信サーバの設定についても同様です。</p> +<h5 id=".E7.89.B9.E5.AE.9A.E3.81.AE.E3.82.B5.E3.83.BC.E3.83.90.E5.90.91.E3.81.91.E3.81.AE.E5.B1.9E.E6.80.A7" name=".E7.89.B9.E5.AE.9A.E3.81.AE.E3.82.B5.E3.83.BC.E3.83.90.E5.90.91.E3.81.91.E3.81.AE.E5.B1.9E.E6.80.A7">特定のサーバ向けの属性</h5> +<p>一般的な属性に加えて、一部の属性は特定の種類の受信サーバにのみ適用されます。これらをサーバ情報内のセクションに分けて指定してください。この例は IMAP サーバ用です:</p> +<pre><NC:ServerType-imap> + <NC:nsIImapIncomingServer> + <NC:cleanupInboxOnExit>true</NC:cleanupInboxOnExit> + </NC:nsIImapIncomingServer> +</NC:ServerType-imap> +</pre> +<p>これらのタグに一致する属性は次のコードで定義されています:</p> +<ul> + <li>{{ Source("mailnews/imap/public/nsIImapIncomingServer.idl", "nsIImapIncomingServer.idl") }} : IMAP 向け</li> + <li>{{ Source("mailnews/local/public/nsIPop3IncomingServer.idl", "nsIPop3IncomingServer.idl") }} : POP3 サーバ向け</li> + <li>{{ Source("mailnews/local/public/nsIMovemailIncomingServer.idl", "nsIMovemailIncomingServer.idl") }} : movemail サーバ向け</li> + <li>{{ Source("mailnews/news/public/nsINntpIncomingServer.idl", "nsINntpIncomingServer.idl") }} : news サーバ向け</li> +</ul> +<h5 id=".E3.83.89.E3.83.A1.E3.82.A4.E3.83.B3.E3.82.92.E5.BF.85.E8.A6.81.E3.81.A8.E3.81.99.E3.82.8B.E3.83.A6.E3.83.BC.E3.82.B6.E5.90.8D" name=".E3.83.89.E3.83.A1.E3.82.A4.E3.83.B3.E3.82.92.E5.BF.85.E8.A6.81.E3.81.A8.E3.81.99.E3.82.8B.E3.83.A6.E3.83.BC.E3.82.B6.E5.90.8D">ドメインを必要とするユーザ名</h5> +<p>一部の ISP やウェブメールプロバイダでは、受信サーバや送信サーバのユーザ名の後にドメイン名を追加する必要があります。これは、設定ファイル内で次のタグでを使用して指定することができます: <code>incomingServerUserNameRequiresDomain</code> および <code>smtpUserNameRequiresDomain</code>。</p> +<p>この例は、ユーザ名にドメイン名が追加されたものを必要とする SMTP サーバ の例です。<code>smtpUserNameRequiresDomain</code> タグが <code>smtp</code> 要素を閉じた後に書かれていることに注意してください。</p> +<pre><NC:smtp> + <NC:nsISmtpServer> + <NC:hostname>smtp.mozilla.org</NC:hostname> + <NC:port>465</NC:port> + <NC:trySSL>3</NC:trySSL> + <NC:description>Moco</NC:description> + </NC:nsISmtpServer> +</NC:smtp> + +<NC:smtpUserNameRequiresDomain>true</NC:smtpUserNameRequiresDomain> +<NC:smtpRequiresUsername>true</NC:smtpRequiresUsername> +<NC:smtpCreateNewServer>true</NC:smtpCreateNewServer> +<NC:smtpUsePreferredServer>true</NC:smtpUsePreferredServer> +</pre> +<h3 id=".E8.A8.AD.E5.AE.9A.E3.83.95.E3.82.A1.E3.82.A4.E3.83.AB.E3.81.AE.E4.BE.8B" name=".E8.A8.AD.E5.AE.9A.E3.83.95.E3.82.A1.E3.82.A4.E3.83.AB.E3.81.AE.E4.BE.8B">設定ファイルの例</h3> +<p>これは gmail をサポートするために私たちが生成した RDF ファイルです。この例をコピーする場合は、about 属性を "domain:gmail.com" から変更することを忘れないでください。</p> +<pre><?xml version="1.0"?> +<!DOCTYPE RDF> +<RDF:RDF + xmlns:NC="http://home.netscape.com/NC-rdf#" + xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> + + <RDF:Description about="NC:ispinfo"> + <NC:providers> + <NC:nsIMsgAccount about="domain:gmail.com"> + <!-- pop3 server info --> + <NC:incomingServer> + <NC:nsIMsgIncomingServer> + <NC:prettyName>Gmail</NC:prettyName> + <NC:hostName>pop.gmail.com</NC:hostName> + <NC:type>pop3</NC:type> + <NC:ServerType-pop3> + <NC:nsIPopIncomingServer> + <NC:leaveMessagesOnServer>true</NC:leaveMessagesOnServer> + <NC:deleteMailLeftOnServer>false</NC:deleteMailLeftOnServer> + </NC:nsIPopIncomingServer> + </NC:ServerType-pop3> + <NC:loginAtStartUp>true</NC:loginAtStartUp> + <NC:downloadOnBiff>true</NC:downloadOnBiff> + <!-- + Thunderbird 3 では、以下の設定が "TypeError: dest.setBoolAttribute is not a function" + を引き起こし、作成されるアカウントが不正なものとなってしまいます。 + <NC:rememberPassword>true</NC:rememberPassword> + --> + <NC:port>995</NC:port> + <NC:socketType>3</NC:socketType> + </NC:nsIMsgIncomingServer> + </NC:incomingServer> + + <!-- smtp server info --> + <NC:smtp> + <NC:nsISmtpServer> + <NC:hostname>smtp.gmail.com</NC:hostname> + <NC:port>587</NC:port> + <NC:trySSL>2</NC:trySSL> + <NC:description>Gmail</NC:description> + </NC:nsISmtpServer> + </NC:smtp> + <NC:smtpRequiresUsername>true</NC:smtpRequiresUsername> + <NC:smtpCreateNewServer>true</NC:smtpCreateNewServer> + <NC:smtpUsePreferredServer>true</NC:smtpUsePreferredServer> + + <!-- identity defaults --> + <NC:identity> + <NC:nsIMsgIdentity> + </NC:nsIMsgIdentity> + </NC:identity> + + <!-- other options --> + <NC:wizardSkipPanels>true</NC:wizardSkipPanels> + <NC:wizardShortName>Gmail</NC:wizardShortName> + <NC:wizardLongName>Gmail</NC:wizardLongName> + <NC:wizardShow>true</NC:wizardShow> + <NC:wizardPromote>true</NC:wizardPromote> + <NC:emailProviderName>Gmail</NC:emailProviderName> + <NC:sampleEmail>example@gmail.com</NC:sampleEmail> + <NC:sampleUserName>example</NC:sampleUserName> + <NC:emailIDDescription>Gmail Username:</NC:emailIDDescription> + <NC:showServerDetailsOnWizardSummary>true</NC:showServerDetailsOnWizardSummary> + </NC:nsIMsgAccount> + </NC:providers> + </RDF:Description> +</RDF:RDF> +</pre> +<h3 id=".E3.83.86.E3.82.B9.E3.83.88.E3.81.99.E3.82.8B" name=".E3.83.86.E3.82.B9.E3.83.88.E3.81.99.E3.82.8B">テストする</h3> +<p>ISP 設定ファイルの作成時に、拡張機能としてインストールせずに、すばやく設定をテストすることができる方法があります。まず設定ファイルのコピーを <path to thunderbird.exe>\isp\ に置きます。gmail.rdf および rss.rdf がすでにその場所にあるはずです。Thunderbird を再起動すると、あなたのアカウント項目がアカウント作成ウィザードに記載されるでしょう。</p> +<h3 id=".E9.85.8D.E5.B8.83" name=".E9.85.8D.E5.B8.83">配布</h3> +<p>これで、ISP やウェブメールプロバイダのための設定ファイルの作成が完了しました。次はこれを配布しましょう。</p> +<p>配布には 2 つの方法があります: 拡張機能として配布、またはカスタムビルドを配布します。</p> +<h4 id=".E6.8B.A1.E5.BC.B5.E6.A9.9F.E8.83.BD" name=".E6.8B.A1.E5.BC.B5.E6.A9.9F.E8.83.BD">拡張機能</h4> +<p>設定ファイルは、Mozilla の拡張機能システムを使って Thunderbird 2 にインストールできます。拡張機能は <a class="link-https" href="https://addons.mozilla.org/thunderbird/extensions/">Mozilla Add-ons</a> に登録することもできます。</p> +<p>拡張機能には isp という名前のサブディレクトリ内に設定ファイルを含める必要があります。Thunderbird 2.0.0.x は有効な拡張機能の一覧から isp という名前のディレクトリを探します。アカウントウィザードは、これらの場所に見つかった RDF または XML 設定ファイルを読み込みます。</p> +<h5 id=".E6.8B.A1.E5.BC.B5.E6.A9.9F.E8.83.BD.E3.81.AE.E3.82.B5.E3.83.B3.E3.83.97.E3.83.AB" name=".E6.8B.A1.E5.BC.B5.E6.A9.9F.E8.83.BD.E3.81.AE.E3.82.B5.E3.83.B3.E3.83.97.E3.83.AB">拡張機能のサンプル</h5> +<p>テンプレートとして使用できる拡張機能の例があります: <a href="/@api/deki/files/1723/=Example-isp.xpi" title="File:ja/Media_Gallery/Example-isp.xpi">Media:Example-isp.xpi</a> をダウンロードしてください。XPI ファイルは、WinZIP のような ZIP プログラムを使用して展開できる、ただの ZIP ファイルです。</p> +<h4 id=".E3.82.AB.E3.82.B9.E3.82.BF.E3.83.A0.E3.83.93.E3.83.AB.E3.83.89" name=".E3.82.AB.E3.82.B9.E3.82.BF.E3.83.A0.E3.83.93.E3.83.AB.E3.83.89">カスタムビルド</h4> +<p>カスタマイズ版の Thunderbird 2 を配布されている場合は、<code>$INSTALLFOLDER/isp/</code> に RDF または XML ファイルを追加するだけです。<code>$INSTALLFOLDER</code> は <code>thunderbird.exe</code> があるフォルダです。Thunderbird はこれらの RDF ファイルを、このフォルダ内で探します。</p> +<p>注: Thunderbird 1.5.0.x では、この指定の場所は <code>$INSTALLFOLDER/defaults/isp</code> にしなければなりません。</p> +<p>{{ languages( { "en": "en/Thunderbird_ISP_hooks" } ) }}</p> |
