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

Re: mail user agents [was: Re: Woody Impressions]



On Sat, Jan 12, 2002 at 11:11:14AM -0600, Charles Sebold wrote:
> On 28 Teveth 5762, raphaello-debianuser@altern.org wrote:
> 
> > At 3:48 -0800 21-05-2001, Ethan Benson wrote:
> >>all your mail are belong to mutt ;-)
> >>
> >>apt-get install mutt
> >>
> >>try it you will like it.
> > 
> > I tried, but it didn't go very far (no such packet).
> 
> Hmm...you could try setting up fetchmail to bring all your mail to
> your system noninteractively, procmail to split it to the 10 mailboxes
> you mention below, and then whatever client you like to read them.
> Mutt does work well in the console.
> 

I like mutt very much. It does need fetchmail if you have an isp, and
procmail if you want to split into mailboxes. (It doesn't try to take
on those functions itself). It has nice integration with gpg, and
plays well with other programs for reading html or other formats.

The hardest thing about mutt, IMHO, is getting a decent .muttrc set
up. To wit, mine is attached -- I don't claim authorship though, I
found the framework on the net after getting really frustrated with
the generic setup.



# specify alias file
source ~/.aliases
set alias_file=~/.aliases

#MAILBOXES, MY NAME, FOLDERS
set realname="Chris Tillman"
set folder="~/Mail"	             # where my mailboxes are
set postponed="~/Mail/postponed	     # where postponed stuff goes
set mbox=+mbox			     # mail from spool gets copied in here

mailboxes /var/spool/mail/toff	     # my mailboxes filtered by procmail
#sent mail should _not_ be defined as a mailbox
# mailboxes /home/toff/Mail/sent
mailboxes =save
mailboxes =todo

subscribe debian-boot
subscribe debian-doc
subscribe debian-powerpc

set editor=emacs		     # yay! emacs key bindings

#copies my sent mail to mailbox sent
set copy=yes				     # + is a mailbox shortcut.
set record=+sent			     # it expands to whatever you set in folder

set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --comment 'DebianMutt' --batch -v -o - --encrypt --textmode --armor --always-trust -- -r %r -- %f"

set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --comment 'DebianMutt' -v -o - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"

set pgp_verify_sig=no

#HOW STUFF LOOKS

#order of headers when i read mail
hdr_order Date: From: Organization: User-Agent: X-Mailer To: Cc: Reply-To: Subject:

# ignore all headers, then unignore the ones I wanna see 
# (h displays all headers whenever I want to see them)
ignore *
unignore Date: From: Organization: User-Agent: X-Mailer To: Cc: Reply-To: Subject: Mail-Followup-To:

set forward_format="Fwd: %s"		     # forwarded mail say this

#what the date format looks like
set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"

#what mailboxes/folders look like
set folder_format="%N %-8.8u %8s %d  %N %f"

set edit_headers			     # i like to see the headers when composing email
set pager_context=1			     # paging shows me one line leftover
set pager_stop				     # prevent pager from going to next message unlesss you say so
set nomarkers				     # no wrap around markers

#defaults for all folders are threaded w/ mini index of 11 lines "." means all mailboxes
folder-hook . set sort=threads
# i get to see the index and pager together when paging
folder-hook . set pager_index_lines=11	     

#these don't get sorted by threads
# folder-hook /var/spool/mail/toff set sort=date-received
folder-hook +mbox set sort=date-received
folder-hook +sent set sort=date-sent

#sets what folders look like, which fields go where, in what order, etc...
folder-hook . 'set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"'

#HOW MUTT BEHAVES
unset mark_old				     # unread old messages are still unread after quitting
set auto_tag				     # when tag articles, actions are default for all tagged messages
set quit=ask-yes			     # ask me to quit. default yes
unset confirmappend			     # don't ask me about appending messages to other boxes


#KEY BINDINGS
bind generic	"#"	tag-entry
bind generic 	<left>  previous-entry
bind generic 	<right> next-entry
bind index	"c"	copy-message
bind index   "\Cx\Cf" change-folder
bind pager	"c"	copy-message
bind pager	"#"	tag-message
bind pager	<up>     previous-line
bind pager	<down>   next-line
bind pager   "<"      top
bind pager   ">"      bottom
bind pager   <home>   top
bind pager   <end>    bottom
bind pager   "{"      previous-thread
bind pager   "}"      next-thread
bind pager   "\Cx\Cf"   change-folder
bind browser "e"	check-new

macro index S "|/usr/bin/razor-report"
macro index "\Cx\Cb" "<change-folder>?"	     # Folder list.
macro index "w" "<change-folder>?"	     # Folder list.
macro index "\Cx\Cs" "|cat > ~/"	     # Save message
macro pager S "|/usr/bin/razor-report"
macro pager "\Cx\Cb" "<change-folder>?"	     # Folder list.
macro pager "w" "<change-folder>?"	     # Folder list.
macro pager "\Cx\Cs" "|cat > ~/"	     # Save message


#COLORS
color normal default default
color hdrdefault brightcyan default
color signature green default
color attachment brightyellow default
color indicator brightblack  brightcyan
color quoted	cyan	default
color quoted1	white	default
color tilde	blue	default
color tree	brightred default
color quoted2	green	default
#color quoted3	white	default
#color quoted4	red	default
#color quoted5	green	default
#color quoted6	cyan	default
#color quoted7	white	default
#color quoted8	red	default
#color quoted9	green	default
color body brightcyan  default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
color body brightwhite  default "(http|ftp|news|telnet|finger)://[^ \">\t\r\n]*"
color body brightwhite  default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+";
color header brightmagenta default ^(Date):
color header brightyellow default ^Subject:
color body brightred default " [;:]-*[)>(<|]"	# :-) etc...

set pop_host=
set pop_user=
set pop_pass=
set from=tillman@azstarnet.com         # this interacts with your MTA, you may not want it
set pop_delete=yes




-- 
*------v--------- Installing Debian GNU/Linux 3.0 --------v------*
|      <http://www.debian.org/releases/woody/installmanual>      |
|   debian-imac (potato): <http://debian-imac.sourceforge.net>   |
|            Chris Tillman        tillman@azstarnet.com          |
|                   May the Source be with you                   |
*----------------------------------------------------------------*



Reply to: