Subject: FAQ of elm

From: [email-masked] (Tsay Yuh Dean)
Date: 6 Mar 1994 12:38:42 GMT

elm中文FAQ(Frequently Asked Questions)
Version: 0.1
Editor: [email-masked]

 /* 版權沒有,喜歡就好 */
 /* Any comments, please mail to [email-masked]   */
 
1.  如何使elm去讀除了"/usr/local/mail/<user>"的mailbox呢? 

    elm是根據"MAIL"這個環境變數來讀取正確的mailbox,所以如果想
    讀取其它的mailbox只須type "setenv MAIL another-mailbox".
    
2.  如何存一個message而可以不用在save之後把它刪除呢?

    按 C)opy(大寫的C)來存,而不要按 s)aving來存.    
   
3.  如何造出簽名檔(signature)?

    請在您的home directory造一個`.signature`的新檔,編輯自己所
    喜愛的signature,然後在edit .elm/elmrc這個file如下:
    # remote ".signature" file to append to appropriate messages...
    remotesignature = ~/.signature
    localsignature = ~/.signature
    sigdashes = ON 
    
4.  如何同時寄信給一大群人?

    type "fastmail -b `cat recipients` -s "subject" messages"
    
    recipients裡放收信人的 full email addresses.
    
5.  如何確定寄出的信件是否被對方收到?

    請在$HOME/.elm底下造`elmheaders`這個file,並放進以下的內容:
    
     Return-Receipt-To: your email address
     
    這樣所寄出的信件被對方系統收到以後,就會送一封回函給您. 
    
6.  如何設定自動回信(Autoreplying)?

    執行`vacation`這個程式即可(這是一個interactive program),
    取消自動回信只須把`$HOME/.forward`這個file拿掉即可.
    
7.  include他人的信件時,系統設定是前面會加上">",如何改成其它的字元?     

    修改`$HOME/.elm/elmrc`中"prefix"這個變數即可.
    
8.  在reply信件時,可否加上一小段引言讓收信人曉得原信是由發出的呢?

    修改`$HOME/.elm/elmrc`,加上:
    # attribution string for replies ('%s' is the author of original
    # message)
    attribution = In our previous episode, %s said: 
    
9.  如何造出/使用"alias"?

    9.1 User Aliases
    
     	編輯"$HOME/.elm/aliases.text"這個file,檔案內容由三個部份
     	組成:
     	
     	aliasname = user real name = email address
     	
     	e.g.
     	# Mail aliases for Tsay Yuh Dean
     	sycheng = Cheng Hsiao Yang = [email-masked]
     	ching = Li Ching = [email-masked]
     	
    9.2 Group Aliases
    
     	編輯"$HOME/.elm/aliases.text"這個file,檔案內容由三個部份
     	組成: 
     	
     	aliasname = group name = email addresses (以","分隔)
     	
     	e.g.
     	ta = TAs of CSIE = skhuang, chenjl, cmwang, jjyang
     
    9.3 Installing New Aliases
    
      	當"$HOME/.elm/aliases.text"這個file編輯完成之後,請
      	下"newalias"來安裝它.
      	
    9.4 Using Aliases
    
        在elm的主功能表底下按 a)lias, 然後再按 m)ail to alias 即可.
        
10. 習慣使用"mail"的我,是否能把".mailrc"轉成".elm/aliases.text",
    然後改用"elm"而不必重建alias呢?
    
    有的,提供您以下的程式:                                                                                                                                    

              An awk Script for Translating Aliases
              from a Berkeley Mail .mailrc File
              to an Elm .elm/aliases.text File

BEGIN { print "# Elm .elm/aliases.text file, from a .mailrc file..."
     print ""
     }
next_line == 1 {
     next_line = 0;
     group = ""
     for (i = 1; i <= NF; i++) {
       if (i == NF && $i == "\\") sep = ""
       else                       sep = ", "
       if ($i == "\\") {
         group = sprintf("%s,", group)
         next_line = 1;
       }
       else if (length(group) > 0)
         group = sprintf("%s%s%s", group, sep, $i);
       else
         group = $i;
       }
       print "\t" group
     }
$1 ~ /[Aa]lias | [Gg]roup/ {
     if ( NF == 3)
       print $2 " = user alias = " $3;
     else {
       group = ""
       for (i = 3; i <= NF; i++) {
         if (i == NF && $i == "\\") sep = ""
         else        sep = ", "
         if ($i == "\\") {
           group = sprintf("%s,", group)
           next_line = 1;
         }
         else if (length(group) > 0)
           group = sprintf("%s%s%s", group, sep, $i);
         else
           group = $i;
         }
         print $2 " = group alias = " group;
       }
     }

--

Yuh-Dean Tsay ( 蔡 育 典 )
--------------------------
Email: [email-masked]
Phone: 886-035-712121 ext:3707,3708,3709(office)
			  3745454545(lab)
       886-08-8322997(home)
------------------------------------------------
: