Sunday, May 14, 2006

fetchyahoo

今天來搞定 yahoo 轉寄的問題
看起來 Debian 可以越來越方便了
首先安裝 fetchyahoo
apt-get install fetchyahoo
Debian 會搞定相依性
然候 copy .fetchyahoorc
cp /usr/share/doc/fetchyahoo/examples/fetchyahoorc.gz ~
解壓縮後改成
~/.fetchyahoorc
修改檔案:

# FetchYahoo configuration file
#改這幾行
username = YAHOO-USER-NAME
password = PASSWORD
spool = /home/chieh/.thunderbird/ukg0ak1l.phyton/Mail/fetchyahoo
use-forward = 1
mail-host = smtp.gmail.com
send-to = GMAIL-USER-NAME@gmail.com
send-from = GMAIL-USER-NAME@gmail.com
use-sendmail = 1
sendmail = /usr/sbin/sendmail
max-messages = 20 #應該十五分鐘內不會有超過20封信吧XD
no-delete = 1 #我一向不刪信的....


其中我還是搞不定 gmail 的 smtp ,不過反正用 sendmail 就可以轉寄了,而且很舒服XD


然候編輯crontab
crontab -e
加入這一行
0,15,30,45 * * * * fetchyahoo
每十五分鐘轉一次給 gmail
大功告成!!

No comments: