From: Dan Copeland dcopeland47@onebox.com
To: CB todd@mrball.net
Cc: World Domination svlug@svlug.org
Subject: Re: [svlug] Using mutt
User-Agent: Mutt/1.2.5i
Date: Tue, 10 Apr 2001 12:36:22 -0700

On Mon, Apr 09, 2001 at 10:11:07PM -0700, CB wrote:
> Now, I need to figure out how to get fetchmail to put it into the
> folders. I'm guessing just from eavesdropping on y'all that I need to
> do some configuring with procmail. So do I use procmail to filter all
> the mail from /var/spool/mail/todd to ~/nsmail/{folder_name}? Or does
> fetchmail do all this on its own? That's the part I don't even know
> where to begin.


On my system I run sendmail, which is configured to use procmail for
local mail delivery. Fetchmail runs in daemon mode and just passes
messages off to sendmail.

Procmail finds the .procmailrc in my home directory which tells it
where to store all the mail. Actually the .procmailrc just points
to a number of smaller files in a directory for the sake of
organization.

I really wish I could remember which Howto told me how to set all
this up - if I can find it I'll let you know.

- Dan

From: Seth David Schoen schoen@loyalty.org
To: World Domination svlug@svlug.org
Cc: CB todd@mrball.net
Subject: Re: [svlug] Using mutt
User-Agent: Mutt/1.2.5i
Date: Thu, 12 Apr 2001 16:11:57 -0700

Dan Copeland writes:

> On Mon, Apr 09, 2001 at 10:11:07PM -0700, CB wrote:
> > Now, I need to figure out how to get fetchmail to put it into the
> > folders. I'm guessing just from eavesdropping on y'all that I need to
> > do some configuring with procmail. So do I use procmail to filter all
> > the mail from /var/spool/mail/todd to ~/nsmail/{folder_name}? Or does
> > fetchmail do all this on its own? That's the part I don't even know
> > where to begin.
>
>
> On my system I run sendmail, which is configured to use procmail for
> local mail delivery. Fetchmail runs in daemon mode and just passes
> messages off to sendmail.
>
> Procmail finds the .procmailrc in my home directory which tells it
> where to store all the mail. Actually the .procmailrc just points
> to a number of smaller files in a directory for the sake of
> organization.
>
> I really wish I could remember which Howto told me how to set all
> this up - if I can find it I'll let you know.

Run fetchmail with the option

--mda 'procmail -d yourusername'

and then make a ~/.procmailrc according to the procmail documentation
or according to someone else's example. This causes fetchmail to use
procmail for delivery, rather than going through SMTP. And procmail
will filter mail according to procmailrc rules if any are given.

--
Seth David Schoen schoen@loyalty.org | And do not say, I will study when I
Temp. http://www.loyalty.org/~schoen/ | have leisure; for perhaps you will
down: http://www.loyalty.org/ (CAF) | not have leisure. -- Pirke Avot 2:5

From: Eric Gray egray@sitesmith.com
To: CB todd@mrball.net
Cc: Dan Copeland dcopeland47@onebox.com,
World Domination svlug@svlug.org
Subject: Re: [svlug] Using mutt
User-Agent: Mutt/1.2.5i
Date: Fri, 13 Apr 2001 12:45:26 -0700

On Fri, Apr 13, 2001 at 11:58:30AM -0700, CB wrote:
>
> Fetchmail works from the command line. It uses pop to get mail and
> passes all output to procmail for filtering. I just need to figure out
> a) if I can get mutt to call procmail in this manner
> b) how to do it.
>

You can make mutt run fetchmail (ctrl-F in this case) with:

index \cf "!fetchmail\r"

But why not just run fetchmail in daemon mode so you don't have to
manually download your mail. I use the following alias for reading mail
and it works great for my purposes:

fetchmail && mutt && clear && fetchmail -q

I have fetchmail configured to run in daemon mode. Then when I am done
with my mail reading session, fetchmail exits. I prefer to have the
mail queue on the server until I am ready to read it.

>
> In the following link, there's a screenshot of a mutt session with
> colors and multiple windows open. That's another goal to get mine like
> that. I have figured out the colors thing thanks to his sample
> .muttrc. But the multiple windows open (a message list with message
> status and a window viewing the actual message) I've yet to figure out.
> http://www.linux.ucla.edu/guides/mailguide.php3

Try this:
set pager_index_lines=8


I also use the following, because I like to go back to the index after
deleting or saving a message. I don't like automatically opening the
next message in the list.

macro pager d "<exit><delete-message>"
macro pager s "<exit><save-message>"

And I prefer to use j and k in the pager:

bind pager k previous-line
bind pager j next-line

If you're using vim as your editor, you might want to use:

set editor = "vim -c 'set tw=72'"

As you are finding out, mutt has a bit of a learning curve. It's worth
the time to do some research and customize it to your liking. Then you
will really enjoy it.

I learned a lot from Sven Guckes' site:
http://www.math.fu-berlin.de/~guckes/mutt/

HTH.

Eric