[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5 初期設定

Mew を起動するには、組織の設定ファイルか自分の "~/.emacs" に以下の設定 が必要です。

 
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)

;; Optional setup (Read Mail menu for Emacs 21):
(if (boundp 'read-mail-command)
    (setq read-mail-command 'mew))

;; Optional setup (e.g. C-xm for sending a message):
(autoload 'mew-user-agent-compose "mew" nil t)
(if (boundp 'mail-user-agent)
    (setq mail-user-agent 'mew-user-agent))
(if (fboundp 'define-mail-user-agent)
    (define-mail-user-agent
      'mew-user-agent
      'mew-user-agent-compose
      'mew-draft-send-message
      'mew-draft-kill
      'mew-send-hook))

Latin-1 のために、Emacs を –unibyte オプション付で起動しているか、環境 変数 EMACS_UNIBYTE と共に起動している場合、以下の設定を "~/.emacs" に入 れて下さい。

 
(set-language-environment "Latin-1")
(set-input-method "latin-1-prefix") ;; or "latin-1-postfix"

Latin-1 のために、以下のような設定をしているなら、削って下さい。これは Latin-1 にカスタマイズするための方法としては推奨されていませんし、この 設定では Mew は正しく動きません。

 
(standard-display-european 1)

Mew は起動時に、"~/.mew.el" を読み込みます。Mew に関する設定は、このファ イルに入れるとよいでしょう。

メールアドレスを指定するために、以下の設定が必要です。

 
;; (setq mew-name "your name") ;; (user-full-name)
;; (setq mew-user "user name of e-mail address") ;; (user-login-name)
(setq mew-mail-domain "domain of e-mail address")

SMTP を使ってメッセージを送信するためには、以下の設定が必要です。

 
(setq mew-smtp-server "your SMTP server")  ;; if not localhost

POP を使ってメッセージを受信する場合は、以下の設定が必要です。

 
;; (setq mew-pop-user "your POP account")  ;; (user-login-name)
(setq mew-pop-server "your POP server")    ;; if not localhost

メッセージの受信にローカルのメールボックスを利用したい場合は、以下のよ うな設定が必要です。

 
;; To use local mailbox "mbox" or "maildir" instead of POP
(setq mew-mailbox-type 'mbox)
(setq mew-mbox-command "incm")
(setq mew-mbox-command-arg "-u -d /path/to/mbox")
;; If /path/to/mbox is a file, it means "mbox".
;; If /path/to/mbox is a directory, it means "maildir".

IMAP を使ってメッセージを受信する場合は、以下の設定が必要です。

 
(setq mew-proto "%")
;; (setq mew-imap-user "your IMAP account")  ;; (user-login-name)
(setq mew-imap-server "your IMAP server")    ;; if not localhost

ニュースを読み書きする場合は、以下の設定が必要です。

 
;; (setq mew-nntp-user "your NNTP account")
(setq mew-nntp-server "your NNTP server")

[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by U-X61T\saito on October, 15 2008 using texi2html 1.78.