Home | Mirror | Search

第 2 章 mail user agent (MUA)

目錄

1. mutt - text-based mailreader supporting MIME, GPG, PGP and threading
1.1. 發送郵件
2. alpine - Text-based email client, friendly for novices but powerful
3. fetchmail - SSL enabled POP3, APOP, IMAP mail gatherer/forwarder
4. GPG4WIN
5. Evolution

1. mutt - text-based mailreader supporting MIME, GPG, PGP and threading

install

		
$ sudo apt-get install mutt
		
		

how to use the Maildir format with the Mutt

		
$ vim ~/.muttrc

alias rooty Cron Daemony <root@netkiller>
set mbox_type=Maildir
set folder="~/Maildir"
set mask="!^\\.[^.]"
set mbox="~/Maildir"
set record="+.Sent"
set postponed="+.Drafts"
set spoolfile="~/Maildir"

mailboxes `echo -n "+ "; find ~/Maildir -maxdepth 1 -type d -name ".*" -printf "+'%f' "`
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
macro compose A "<attach-message>?<toggle-mailboxes>" "attach message(s) to this message"

		
		

1.1. 發送郵件

同時攜帶附件.

mutt -s "helloworld" user@example.com -a /opt/backup/file.tar.gz
			
comments powered by Disqus