TkRat »¡©ú¤å¥ó Dave Whitinger, [1]dave@whitinger.net v1.1, 2 ¤G¤ë 1998 _________________________________________________________________ ³o¬O¤@¥÷ TkRat ªº»¡©ú¤å¥ó³o¥÷¤å¥ó¬Oµ¹¥ô¦ó·Q¥Î¥L­Ìªº Linux ¨Ó¦¬µo Internet ¹q¤l¶l¥óªº¤H _________________________________________________________________ 1. ²¤¶ 2. ¦w¸Ë TkRat 3. ¤U¸ü§Aªº E-Mail 4. ³]©w TkRat 5. ¨Ï¥Î TkRat 6. ¦Û°Ê±N«H¥ó±Æ§Ç¨ì«H¥ó§¨ùØ 7. µÛ§@Åv 8. ­PÁ _________________________________________________________________ 1. ²¤¶ ³o¥÷¤å¥ó¥Ñ Dave Whitinger ( [2]dave@whitinger.net). ©ÒºûÅ@ªº¡DÃö©ó³o¥÷ ¤å¥ó¦³¥ô¦óªº°ÝÃD©Î¬O·Qªk¥i¥H±H«Hµ¹§Ú ³o¥÷¤å¥ó¹Á¸Õ»¡©ú¤U­±³o¥|­Ó³¡¥÷: 1. ¦w¸Ë TkRat ¹q¤l¶l¥ó³nÅé 2. ±qºô»Úºô¸ôªA°È·~ªÌ¤U¸ü«H¥ó 3. Ū¨ú,Àx¦s,©M°e«H 4. Àx¦s«H¥ó¨ìÀɮק¨ ³o­Ó¤å¥ó°²³]§A¤v¸g¦w¸Ë¤F Linux ¨Ã¥B¦b¤W­±°õ¦æ X µøµ¡¨t²Î, ¦P®É§A¤]¤w¸g ³s¤W¤@­Óºô»Úºô¸ôªA°È·~ªÌ, ¨Ã¥B¾Ö¦³¤@­Ó³o®a»Úºô¸ôªA°È·~ªÌ©Ò´£¨Ñªº POP ±b ¸¹, ±óÅvÁn©ú: ªu¥Î©Ò¦³¤@¯ëªº±óÅvÁn©ú¡D§@ªÌ¤£¬°¥ô¦ó¦]¨Ï¥Î (»~¥Î) ³o¥÷¤å ¥ó©Ò³y¦¨ªºµ²ªG­t³d¡A³o¥÷¤å¥ó¨Ã¤£¥ø¹Ï¦b¥ô¦ó¤è­±¬O§¹¥þ¥¿½Tªº. §@ªÌ¬O¸q°È ©Êªº±q¦U­Ó§@ªÌ©Ò¥i¯à°Ñ»Pªº¶µ¥Ø¨Ó«Ø¥ß³o¥÷¤å¥ó¡DŪ¤F³o¥÷¤å¥ó¡Aªí¥Ü§A¦P·N ¤£³y¦¨§@ªÌªº´dµh©Î³Â·Ð :) 2. ¦w¸Ë TkRat §Ú·Q­n±j½Õªº¬O Linux ¤W¦³«Ü¦h«Ü´Îªº¹q¤l¶l¥ó³nÅé¡A¿ï¾Ü¨º¤@ºØ¨Ó¨Ï¥Î§¹¥þµø ­Ó¤H³ß¦n¦Ó©w¡D ¤]´N¬O»¡¡A§Ú·|§i¶D§A²{¦b§Ú¤w¸g¨Ï¥Î¤@­Ó¥s "TkRat" ªº³nÅé ªñ¤@¦~¤F¡A§Ú«Ü³ßÅw¥¦¡A¥¦¬O¤@­Ó¹Ï§Î¤¶­±ªº³nÅé¡A¥¦¦³©Ò¦³§A©Ò´Á±æ°ª«~½è¶l ¥ó³nÅ骺¯S¦â¡A¥¦«Ü®e©ö¾Ç·|«ç»ò¨Ï¥Î¡A¦Ó¥B¥\¯à±j¤j¡A¦Ó¥B¬O§K¶Oªº¡D¬°¤F³o ¨Ç­ì¦]¡A¦b³o¥÷¤å¥óùاڥu´£¨ì TkRat ²Ä¤@¥ó¨Æ§A©Ò»Ý­n°µªº´N¬O¤U¸ü TkRat¡D §A¥i¥H¿ï¾Ü¤U¸ü­ì©lµ{¦¡¨Ó½sĶ©Î¬O¤U¸ü¥i°õ¦æªº¤G¶i¦ìÀÉ¡D ³oùئ³¤@¨Ç³o³nÅé ªº¡@URLs * Red Hat 5.0 ªº¤G¶i¦ìÀɦb [3]http://www.ntlug.org/~dave/sw/tkrat/rh5/tkrat-1.1-1.i386.rpm ¥i ¥H§ä¨ì * Red Hat 4.x ªº¤G¶i¦ìÀɦb [4]http://www.ntlug.org/~dave/tkrat/sw/rh4/tkrat-1.1-1.i386.rpm ¥i ¥H§ä¨ì * ­ì©lµ{¦¡½X¦b [5]http://www.ntlug.org/~dave/sw/src/tkrat-1.1-1.src.rpm ¥i¥H§ä¨ì * ³Ì«á, tar.gz ªº­ì©lµ{¦¡½X¦b [6]http://www.ntlug.org/~dave/sw/src/tkrat-1.1.tar.gz ¥i¥H§ä¨ì ·í§A¦³¤W­±¨ä¤¤¤@­Ó³nÅé®É, §A¤]·Ç³Æ¦n­n¦w¸Ë¨ì§Aªº¨t²Î¤W¤F. «ö·Ó¤U­±¨â­Ó «ü¥Üªº¨ä¤¤¤@­Ó¨Ó¦w¸Ë * ¨Ï¥Î Red Hat Linux (©Î¬O¨ä¥L¦³¤ä´© RPM ªºª©¥»®M¥ó) _____________________________________________________________ rpm -Uvh tkrat-1.1-1.rpm _____________________________________________________________ * ­n¦w¸Ë tar.gz ªº­ì©lµ{¦¡, ¥Î¤U­±ªº©R¥O _____________________________________________________________ tar -zcvpf tkrat-1.1.tar.gz cd tkrat-1.1 ./configure make make install _____________________________________________________________ ¦pªG¦³¥ô¦ó¿ù»~,¥i¥H¬d¬Ý¦b tkrat-1.1 ¥Ø¿ý¤Uªº INSTALL ©M README ÀÉ®× ®¥³ß-TkRat ²{¦bÀ³¸Ó¤w¸g¦w¸Ë¦b§Aªº¨t²Î¤W¤F 3. ¤U¸ü§Aªº E-Mail ¬°¤FŪ E-Mail, ³Ì¦nªº¤U¸ü«H¥óªº¤èªk¬O¥Î¤@­Óµ{¦¡¥s "fetchmail". ¤U­±ªº«ü ¥Ü ¦b version 2.2 ¤W¤u§@ªº«Ü¦n ¨ä¥¦ª©¥»¤]À³¸Ó¥i¥H¾A¥Î (µù: Fetchmail ´X ¥G¥i¥H½T©w¤w¦w¸Ë¦b§Aªº¨t²Î¤W, ´N§Ú©Òª¾¹Dªº¥¦¤w¸g¥]§t¦b©Ò¦³ªº Linux ¦w¸Ë ®M¥óùØ, ¦pªG¥ô¦ó¤Hª¾¹D¤£¬O¯uªº,½ÐÅý§Úª¾¹D «ö·Ó¤U­±ªº¨BÆJ: _________________________________________________________________ echo "server pop.com protocol pop3 username dave password foo" > ~/.fetchmailrc ½T©w¥Î§A¦Û¤wªººô¸ôªA°È·~ªÌªº POP ¦øªA¾¹ªº¥D¾÷¦WºÙ¥N´« "pop.com" ¥Î§A¦Û¤vªº¨Ï¥ÎªÌ¦WºÙ¥N´« "foo" _________________________________________________________________ ²{¦b,¨C·í§A­nÀˬd¦³¨S¦³§Aªº E-Mail, §A¥u»Ý¦b´£¥Ü²Å¸¹«áÁä¤J "fetchmail". Fetchmail ¶}©l°õ¦æ¨Ã¥B¤U¸ü©Ò¦³§Aªº«H¥óÀx¦s¦b§Aªº¥»¦a«H¥ó§¨ 4. ³]©w TkRat ¦b´£¥Ü¦r¤¸«áÁä¤J "tkrat" µM«á«ö Enter Áä ¦b "Create" ¤W«ö¤@¤U Ū¥¦©ÒÅ㠥ܪº°T®§,µM«á«ö¤U "Continue" ¦¹®É,§A´N¶i¤J¤F TkRat ªº¥D­nµ{¦¡.²Ä¤@¥ó§A À³¸Ó­n°µªº´N¬O®Ú¾Ú§Aªº¥»¦a¨t²Î³]©w¥¦ 1. ¨ì Admin ¿ï³æ, µM«á¿ï Preferences 2. «ö¤U "Compose" 3. ¦b "Default Reply-To" Äæ¦ì¿é¤J§Aªº E-mail ¦ì§} 4. ¦b "Apply" «ö¤@¤U 5. ¦b "Sending" «ö¤@¤U 6. ¦b "User From Address" Äæ¦ì¿é¤J§Aªº E-Mail ¦ì§}, «á­± ¿é¤J§Aªº¯u¹ê ©m¦W¨Ã¥Î¬A¸¹¬A°_¨Ó , ¨Ò¦p, §Úªº¬Ý°_¨Ó´N¹³¬O "dave@whitinger.net (Dave Whitinger)" 7. ¦b "Domain" Äæ¦ì¿é¤J§Aªººô°ì¦WºÙ, °²¦p§Aªº E-mail ¦ì§}¬O "user@xyz.com" §AÀ³¸Ó¿é¤J "xyz.com" 8. ¦b "Send Via" ¿ï¾Ü "SMPT" 9. ¦b SMTP host: ³o¤@Äæ¿é¤J§Aºô»Úºô¸ôªA°È¨ÑÀ³°Óªº SMTP ¦øªA¾¹ªº¦ì§} ( ¥L­ÌÀ³¸Ó¯à°÷´£¨Ñ§A³o¨Ç¸ê°T) 10. «ö¤U "Apply" , µM«á«ö "Dismiss" 5. ¨Ï¥Î TkRat ¤@±Ò°Ê TkRat, §A´N·|ª`·N¨ì§A¥¿¦b¤@­Ó¥s "INBOX" ªº«H¥ó§¨¸Ì, ¥Î fetchmail ¨Ó¤U¸ü¥ô¦ó·sªº«H¥ó, °²¦p§A¦³¥ô¦óªº«H¥ó,¥¦·|¥X²{¦b§Aªº INBOX «H¥ó§¨ TkRat ¦³¤@­Óª½Ä±¤Æªº¤¶­±, ¿Ã¹õªº¤W¥b³¡¦C¥X¤F§A¦³ªº«H¥ó (¨C¤@¦æ³£ ¬O¤@«Ê E-mail) ¿Ã¹õ¤U¥b³¡Åã¥Ü«H¥óªº¤º®e §A¥i¥H¦b©Ò¦C¥Xªº«H¥ó¤W«ö¤@¤U´N ¥i¥HŪ E-mail ·í§AŪ§¹¤@«Ê«H¥ó,§A¥i¥H²¾¨ì¤U¤@«Ê«H¥ó,¦^Âгo¤@«Ê«H,¼g¤@«Ê ·sªº«H,©Î¬O²¾°Ê³o«Ê«H¨ì¨ä¥¦ªº«H¥ó§¨ «H¥ó§¨¬O¤@ºØÀx¦s E-mail ¨ì¤£¦Pªº«H ¥ó§¨ªº¤è¦¡, ³o¼Ë§A¥i¥H«O«ù¦n´X­Ó«H¥ó§¨¦s©ñ§A©Ò¦¬¨ì¤£¦P¥DÃDªº«H¥ó «ö·Ó¤U ­±ªº¨BÆJ¨Ó«Ø¥ß«H¥ó§¨ 1. «ö¤U Admin, µM«á New/Edit «H¥ó§¨ 2. §A·|¬Ý¨ì¤@­Ó¦³ "INBOX" «H¥ó§¨ªº²°¤l,¦b¨º­Ó²°¤lùØ«ö·Æ¹«¥ªÁä 3. §A·|¬Ý¨ì¤@­Ó¿ï³æ,©Ò¥H¿ï "New File Folder" 4. µM«á·|¥X²{¤@­Ó¹ï¸Ü²°°Ý¤@¨Ç¸ê°T 5. ¦b²Ä¤@­Ó¤å¦r²° - ¿é¤J¤@­Óµ¹«H¥ó§¨ªº¦W¦r 6. ¦b²Ä¤G­Ó¤å¦r²° - ¿é¤J¤@­Ó§A·|¥Î¨ÓÀx¦s«H¥óªºÀɮצWºÙ (´£¥Ü: ¥Î¹³¬O³o ¼Ëªº /home/username/mail/name_of_folder ¦W¦r) ©Ò¥H,°²¦p²Ä¤@­ÓÄæ¦ì¬O "Personal" , ²Ä¤G­ÓÄæ¦ì´NÀ³¸Ó¹³¬O "/home/dave/mail/personal" (°²³] §Aªº¨Ï¥ÎªÌ¦WºÙ¬O dave) 7. «ö OK. §A·|ª`·N¨ì§Aªº·sªº«H¥ó§¨¥X²{¦b«H¥ó§¨¦CùØ, µM«á¦^¨ì "Window" ,¿ï "Close" §A²{¦b¥i¥H·h²¾«H¥ó¨ì·sªº«H¥ó§¨ - §A¥i¥H¦b "Folders" ¿ï³æ¤U¿ï«H¥ó§¨ªº¦W ºÙ¨Ó¤Á´««H¥ó§¨ °e«H¤]«D±`®e©ö, «ö¤U "Compose", ¿é¤J¦¬«H¤Hªº E-Mail ¦ì §}, ¿é¤J¥DÃD, µM«á¼g«H¥óªº¥»¤å ·í§A§¹¦¨®É, «ö "Send" 6. ¦Û°Ê±N«H¥ó±Æ§Ç¨ì«H¥ó§¨ùØ °²¦p§A¹³§Ú¤@¼Ë,¨C¤Ñ¦³¤j¬ù 1,5000 «Ê«H. ¨C¦¸§A¤U¸ü§Aªº«H¥ó«á,§A¥²¶·­n¦b ©Ò¦³ªº«H¥ó¤¤§ä§A¯S§O¦³¿³½ìªº«H¥ó ¦³¤F Procmail ,³o¦A¤]¤£·|¬O¤@­Ó°ÝÃD¤F Procmail ªº¥\¥Î¹³¬O³o¼Ë: Procmail À˵ø¨C¤@«Ê©Ò¤U¸üªº«H¥ó,µM«á®Ú¾Ú§A©Ò©w ªº³W«h°µ¤@³s¦êªº³B²z, Á|¨Ò»¡©ú,°²­Y»¡§Ú¨C¤Ñ³£±q¤@­Ó«H¥ó¦ê¦C¦¬¨ì 200 «Ê «H (¦b³o­Ó¨Ò¤l¤¤,§Ú¥¿¦b¨Ï¥Î linux-foo «H¥ó¦ê¦C) §Ú¹çÄ@³o¨Ç«H³Q¦Û°Ê¹LÂo «á¤À¨ì foo-list ªº«H½c¤]¤£Ä@¥þ³¡³£ª½±µ¶i¥D­nªº«H½c ²Ä¤@¨B¬O±q«H¥ó«H¦ê¦C ¤¤§ä¤@«Ê«H·í§@¼Ë¥»,¨Ã¥B À˵ø«H¥óªº¼ÐÀY, §Ú¶}©lª`·N¨ì¤@­Ó¦r¦ê,¨C­Ó±q«H¥ó ¦ê¦C¨Óªº«H¥ó³£¦³³o¼Ëªº¤@¦æ, Sender: owner-linux-foo@bar.foogers.com ²{ ¦b§Ú¯à§i¶D procmail §â¨C«Ê§t¦³³o¤@¦æªº«H¥ó©ñ¶i¯S©wªº«H¥ó§¨ ³z¹L¤@­Ó¥s ".procmailrc" ªºÀÉ®×¥i¥H¹F¦¨¥H¤Wªº¤èªk. §Ú·|¥Î§Ú°¾¦nªº¤å¦r½s¿è¾¹¦b§Úªº ¥Ø¿ý¤U¶}¤@­Ó·sªº¤å¦rÀÉ¥s ".procmailrc", ³o­ÓÀɮ׬ݰ_¨Ó¹³¬O³o¼Ë: _________________________________________________________________ LOGFILE=$HOME/.pmlog MAILDIR=$HOME/mail VERBOSE # linux-foo list :0 Hw * ^.*[Ss]ender: owner-linux-foo@bar.foogers.edu foo-list # if it got to this point, put it in my new mail folder :0 Hw newmail _________________________________________________________________ À˵ø "[Ss]ender" ³o¦æ, §A·|ª`·N¨ì¨º¦æ¬O©Ò¦³±q«H¥ó¦ê¦C¨Óªº«H¥ó©Ò¦@¦P¾Ö¦³ ªº¯S¼x ³o¤@¬q¸¨¬O¦b»¡©ú procmail ¬Ý¨ì¤@«Ê¦³¹³¬O¤W­±©Ò»¡ªº«HÀY,·|§â¥¦©ñ ¶i "foo-list" ªº«H¥ó§¨ùØ ¤U¤@¬q¬O»¡©ú°²¦p³o«Ê«H¥ó¤ñ¹ï¤£¨ì¤W­±ªº³W«h,´N §â¥¦©ñ¶i newmail, ²{¦b,¨C·í§Ú¦¬¨ì§Úªº¦nªB¤Í EJ ªº¨Ó«H®É, §Ú­n§â¥¦©ñ¨ì¤@ ­Ó«H¥ó§¨¥s "EJ" §Ú·|¦b§Úªº procmailrc ÀÉùثإߤ@­Ó·sªº¬q¸¨,¹³¬O¤U­±³o ¼Ë: _________________________________________________________________ LOGFILE=$HOME/.pmlog MAILDIR=$HOME/mail VERBOSE # linux-foo list :0 Hw * ^.*[Ss]ender: owner-linux-foo@bar.foogers.edu foo-list # Message from EJ! :0 Hw * ^.*[Ff]rom: ej@mypal.com ej # if it got to this point, put it in my new mail folder :0 Hw newmail _________________________________________________________________ ª`·N¨ì¬° EJ ©Ò¥[·sªº³o¬q, ·í¤@«Ê«H¥ó¦b From ªºÄæ¦ì¦³³o¼Ëªº E-Mail address ,¥¦·|¦Û°Êªº©ñ¶i§Úªº "ej" ªº«H¥ó§¨ ²{¦b,°²³]¦³¤@¨Ç«U°Õ¤£Â_ªº±H E-Mail ¨Ó·Ð§Ú­Ì, §Ú¤@ÂI¤]¤£·Q¦¬¨ì³o¨Ç«H¥ó, ¦ý«U°Õ«Ü°í«ù, procmail ¦A¤@ ¦¸ªº¤S±Ï¤F§Ú­Ì ©Ò¥H,°²³]»¡§Ú¦A¤]¤£·Q¬Ý¨ì¥ô¦ó Bill Gates ±H¨Óªº«H, §Ú­Ì ¥i¥H³]©w¤@­Ó¤èªk¨Ó§R°£©Ò¦³¥L±H¨Óªº«H,ª`·N§Úªº·sªº procmailrc: _________________________________________________________________ LOGFILE=$HOME/.pmlog MAILDIR=$HOME/mail VERBOSE # Is it coming from Bill Gates? If yes, DELETE IT!!! :0 Hw * ^.*[Ff]rom: bgates@microsoft.com /dev/null # linux-foo list :0 Hw * ^.*[Ss]ender: owner-linux-foo@bar.foogers.edu foo-list # Message from EJ! :0 Hw * ^.*[Ff]rom: ej@mypal.com ej # if it got to this point, put it in my new mail folder :0 Hw newmail _________________________________________________________________ ²{¦b§Ú¦³¤@­Ó¬Û·í´Îªº procmailrc ÀÉ¡A§Ú­Ì¨ÓÀ˵ø procmail¡@¦b¨C¤@«Ê«H¶i¨Ó ªº®É­Ô°µ¤F¤°»ò¡D ­º¥ý¡A¥¦Àˬd³o«Ê«H¥ó¬Ý¬Ý¥¦¬O¤£¬O±q ¡@"bgates@microsoft.com" ©Ò±H¨Óªº¡D¡@°²­Y¬Oªº¸Ü¡A§R°£¥¦¡A§¹¤u °²¦p³o«Ê «H¥ó³q¹L¤F²Ä¤@­ÓÀˬd¡A¥¦·|¬Ý¬Ý«H¥ó¬O¤£¬O¦b«HÀY¦³³o¦ê¦r "owner-linux-foo@bar.foogers.edu" ¦pªG¬Oªº¸Ü¡A¥¦·|§â«H©ñ¨ì "foo-list" «H¥ó§¨ùØ¡A´N§¹¤u¤F¡D °²¦p³o«Ê«H¥óÁÙ¬O³q¹L¤F¡A¥¦·|Àˬd«H¬O¤£¬OEJ ±H¨Óªº ¡D¦pªG¬O¥¦·|§â«H©ñ¨ì "ej" «H¥ó§¨ùØ¡D ²{¦b¡A¦pªG³o«Ê«H³q¹L¤F©Ò¦³ªºÀˬd¡A «H·|³Q©ñ¨ì§Úªº newmail «H¥ó§¨ ¤@¥¹§A¦³¤F³o¨Ç«H¥ó§¨¨Ã¥B procmail¡@¤]¾A·íªº¹LÂo³o¨Ç«H¥ó¡A§A¯à¦^¨ì TkRat, "Admin - New/Edit Folder" µM«á¬°¨C¤@Àɫإߤ@­Ó«H¥ó§¨¡D¥¦­Ì¬O¦ì©ó /home/username/mail/foldername 7. µÛ§@Åv ³o¥÷ HOWTO ¤å¥óªºµÛ§@ÅvÄÝ©ó Dave Whitinger 1998, ¬O¤@¥÷§¹¥þ§K¶Oªº¤å¥ó, §A¥i¥H¦b¦³§K¶O³nÅé°òª÷·| GNU ¤@¯ë¤½¥Î¤½¶}³\¥i¤§¤U¦bºô¸ô¤W¥ô·N´²¼½ , ¤£ ½×¬O²Ä¤Gª©©Î¥H«áªº¥ô¦óª©¥» 8. ­PÁ ¯S§O·PÁ Martin Forsse'n (maf@dtek.chalmers.se) , ¥L½s¼g¤F TkRat «H¥ó¨Ï ¥ÎªÌ¥N²zµ{¦¡ ¬õ´U³nÅé - ¨Ï§Ú­Ìªº¥Í¬¡¦p¦¹ªº«K§Q ¤]·PÁÂ¥_¼w¦{¹F©Ô´µªº Linux ¨Ï¥ÎªÌ¤p²Õ , §Ú¬O¨ä¤¤¤@­û, ¬°¦¹§Ú¼g¤F³o¥÷¤å¥ó. References 1. mailto:dave@whitinger.net 2. mailto:dave@whitinger.net 3. http://www.ntlug.org/~dave/sw/tkrat/rh5/tkrat-1.1-1.i386.rpm 4. http://www.ntlug.org/~dave/sw/tkrat/rh4/tkrat-1.1-1.i386.rpm 5. http://www.ntlug.org/~dave/sw/src/tkrat-1.1-1.src.rpm 6. http://www.ntlug.org/~dave/sw/src/tkrat-1.1.tar.gz