[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting the "From: field" in mutt



On Sun, Jul 02, 2000 at 01:15:46AM +0800, Wan Hing Wah wrote:
> How can I set the "From:" field in mutt to my email specified instead
> of myusername@myhostname ??

To be honest, I'm not sure how I do it in mutt.  :-)  I usually, however,
just manually edit the "From:" field when I want "foka@debian.org"
instead of "foka@ualberta.ca" (mutt starts an external editor, and
the header is right there for you to edit).  <--- Hey, wait a second,
為什麼我自己也只寫英文?呵呵。  :-p

  不過,因為我自己的電腦叫作 "lovelife.olvc.ab.ca"
(不用找了,網上的 DNS 沒有這個紀錄。 ^_^),不叫 ualberta.ca,
也不叫 debian.org,所以在 /etc/exim.conf 裏加了個 rewrite,
也就是把所有外出的 e-mail address 從 foka@lovelife.olvc.ab.ca
改為 foka@ualberta.ca,如下:

	######################################################################
	#                      REWRITE CONFIGURATION                         #
	######################################################################
	^(foka)@lovelife.olvc.ab.ca ${1}@ualberta.ca Ffr

> Instead of telnet to my school sun server to read mail,
> I wanna fetch the mail to my local side using fetchmail...
> and then read the mail in my local machine using mutt
> so that I can enter chinese...

  我也是。 ^_^

> moreover,how can I manage mailing list in mutt?
> my email box is full of message from mailing list of
> debian-chinese,debian-user-digest,gtk-list...etc.....

Answer: I don't.  :-)  我不懂用 mutt 的 list 功能。我一直都是用
exim 的 filter 功能。你用的是 exim 嗎?如果是,可以試試我的 ~/.forward。
裏面有好多 rules,我記不清哪個是給 Debian 的郵件列表用的了。  ^_^

				東東

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
foka@ualberta.ca, foka@debian.org    University of Alberta, Canada
Debian Chinese Project -- http://www.debian.org/international/chinese/
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/

# Exim Filter
if error_message then finish endif
logfile $home/filter.log 0600

if $header_Sender: matches "owner-(.+?)@"
then
   save $home/Mail/Incoming/$1
elif $header_X-Mailing-List: matches "^<(.+?)@"
then
    save $home/Mail/Incoming/$1
elif $header_Sender: contains "NEWMAN-L@AMERICAN.EDU"
then
   save $home/Mail/Incoming/Newman-L
elif $header_to: contains "kreeft-l@"
then
   save $home/Mail/Incoming/Kreeft-L
elif $header_Sender: contains "ADV-HTML@"
then
   save $home/Mail/Incoming/ADV-HTML
elif $header_Mailing-List: contains "lesstif@"
then
   save $home/Mail/Incoming/lesstif
elif $header_Errors-To: contains "e2compr@"
then
   save $home/Mail/Incoming/e2compr
elif $header_Delivered-To: contains "elug@elug.edmonton.ab.ca"
then
   save $home/Mail/Incoming/elug
elif $header_Sender: contains "CIVIL-L@"
then
   save $home/Mail/Incoming/Civil-L
elif $header_Sender: contains "yitiange-owner@linux.org.cn"
then
   save $home/Mail/Incoming/plinux
elif $header_Mailing-List: contains "beijing_linuxer-owner@egroups.com"
then
   save $home/Mail/Incoming/beijing_linuxer
elif $header_Fake-Sender: contains "owner-linux@mnf.nu"
then
   save $home/Mail/Incoming/Shanghai_LUG
elif $header_from: contains "owner-linux-kernel-digest@"
then
   pipe "/bin/sh -c 'formail +1 -ds >> $home/Mail/linux-kernel' "
elif $header_Mailing-List: contains "freshmeat-news-help@freshmeat.net"
then
   save $home/Mail/Incoming/freshmeat
#
#  FreeType mailing lists
#
elif $header_Mailing-List: contains "freetype-help@freetype.org"
then
   save $home/Mail/Incoming/freetype
elif $header_Mailing-List: contains "devel-help@freetype.org"
then
   save $home/Mail/Incoming/freetype-devel

#elif $header_ contains ""
#then
#   save $home/Mail/Incoming/
endif

Reply to: