Next Previous Contents

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


Next Previous Contents