| Version 1 (modified by atzm, 19 years ago) (diff) |
|---|
Gentoo で CourierIMAP
# emerge courier-imap # vim /etc/courier-imap/imapd IMAP_CAPABILITY に AUTH=CRAM-MD5 と AUTH=CRAM-SHA1 を加える # vim /etc/courier-imap/imapd-ssl IMAPDSSLSTART=YES IMAPDSTARTTLS=YES IMAP_TLS_REQUIRED=1 # vim /etc/courier-imap/imapd.cnf C=JP CN=emilia emailAddress=atzm@emilia # mkimapdcert # userdb atzm set home=/home/atzm mail=/home/atzm/Maildir uid=9801 gid=2000 # userdbpw -hmac-md5 | userdb atzm set imap-hmac-md5pw # makeuserdb # /etc/init.d/courier-imapd-ssl start
MH のメールを Maildir に変更
CourierIMAP では Maildir 形式のメールしか扱えない.MH を使いたい場合は uw-imap が良いやも.
$ sudo emerge nmh
$ install-mh
// ここで ~/.mh_profile の Path が旧 MH のディレクトリになるように
$ mkdir ~/mbox
$ cd ~/Mail
$ ls | xargs -i packf "+{}" -file ~/mbox/"{}" -mbox
$ cd
$ wget http://untroubled.org/mbox2maildir
$ chmod +x mbox2maildir
$ cd ~/mbox
$ ls | xargs -i ~/mbox2maildir "{}" ~/Maildir/."{}"
$ cd ~/Maildir
$ \ls -a | while read line; do ln -s $line `echo $line | perl -pe 's:\.+|cur|new|tmp::'`; done
// Wanderlust から直接見られるように
$ \ls | while read line
do
TMP="`echo $line | perl -pe 's:tmp|cur|new|courierimap.*::'`"
[ -n "$TMP" ] && echo inbox.$TMP
done > courierimapsubscribed
// courier-imap にフォルダ登録
