LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2007, 09:06 PM   #1
evilchild
Member
 
Registered: Sep 2003
Location: 127.0.0.1
Distribution: *bsd, solaris, gentoo
Posts: 86

Rep: Reputation: 15
Help with mutt/procmail/fetchmail configs


hello all,

I'm trying to set up mutt on my account, with fetchmail to pull email from my pop3 account, along with procmail to process it.

The problem is mutt can can see my mailbox files, but cannot read them for some reason.

Here are my configs.

.fetchmailrc
Code:
poll mx0.calpop.com protocol pop3 user "user@domain.com" password "password"
.procmailrc
Code:
MAILDIR=$HOME/MuttMail                ##you better make sure it exists
LOGFILE=$HOME/.procmaillog
LOGABSTRACT=no
#VERBOSE=on...is only used for debugging
VERBOSE=off
FORMAIL=/usr/bin/formail
NL="
"
##recipe lines begin with :0
##dont put comments on recipe lines
##disable a recipe with the false condition !
##condition lines begin with * and regex is your friend
##conditions are anded and everything after * is fed straight into egrep
##one action line follows the conditions, in this case it is a mailbox
name

#catch duplicates using formail
:0 Whc: .msgid.lock
| $FORMAIL -D 16384 .msgid.cache

:0 a
$MAILDIR/duplicates

#now flush some spam out
:0
* ^Subject:.*(Orders|cash|money|debt|sex|sale|loan)
$MAILDIR/spam

################################
# Last rule: mail that gets    #
# this far goes in default box #
################################
:0
* .*
default
.muttrc
Code:
set pager_context=1
set pager_index_lines=6                 #show a mini-index in pager
set menu_scroll
set pgp_verify_sig=no                   #dont show pgp in pager
set status_on_top                       #put status line at top
set sort=threads                        #sort by message threads in index

set status_format=" %r %b %f %n      Del %d      Msgs %m %l %> (%P)"
set pager_format="%-10.10i %[!%a %b %d %R]"
set date_format="!%H:%M %a %d %b     "
set index_format="%4C %Z %[%b%d] %-15.15F %s"
set folder_format="%2C %t %8s %d %N %f"

set record="$HOME/MuttMail/sent"        #sent mail is saved here
set delete=yes                          #delete without prompting
set include=yes                         #quote msg in reply
set fast_reply=yes                      #no prompting on reply
set beep=no                             #no noise
set markers=no                          #no + on wrapped lines
set confirmappend=no                    #no prompt for save to =keep
set to_chars=" +TCF"                    #no L for mail_list


set folder = $HOME/MuttMail
mailboxes = keep
mailboxes = spam
mailboxes = team
mailboxes = Orders
#mailboxes = server-index
#save-hook .* =keep


bind pager h display-toggle-weed        #toggle headers with h key

# simulate the old url menu
macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
#
 #run fetchmail by hitting key of G
macro index G "!fetchmail -a -m 'procmail -d %T'\r"
macro pager G "!fetchmail -a -m 'procmail -d %T'\r"
#
# #use to edit .muttrc and then source it...no restart necessary
macro generic ,sm ":source $HOME/.muttrc\r"
macro generic \cj "!rxvt -bg wheat -e joe $HOME/.muttrc\r"
 #use to edit .muttrc and then source it...no restart necessary
macro generic ,sm ":source $HOME/.muttrc\r"
macro generic \cj "!rxvt -bg wheat -e joe $HOME/.muttrc\r"
#
# default list of header fields to weed out when displaying mail
#ignore them all and then unignore what you want to see
ignore *
unignore  Date To From: Subject X-Mailer Organization User-Agent
hdr_order Date From To Subject X-Mailer User-Agent Organization
#
# ##your Mutt has to have some colors
# ##these are for four levels of quoted text
# ##they override the system settings in /etc/mutt/Muttrc
#
#color quoted green  default
color quoted1 magenta blue
#color quoted2 yellow default
#color quoted3 red default
#color signatur cyan cyan
#
#
# #this color setup is copied from /etc/mutt/Muttrc.color
# #comment it out if you want the default colors in /etc/mutt/Muttrc
# # Je vois la vie en rose :-)
color   hdrdefault      brightcyan      blue
color   header          brightwhite     blue "^from:"
color   header          brightwhite     blue   "^subject:"

color   quoted          brightgreen     blue
color   signature       brightwhite     blue

color   indicator       blue            green
color   error           red             black
mono    error           bold
color   status          black cyan
mono    status          bold
color   tree            yellow          blue

color   tilde           brightmagenta   blue
I'm able to read my mailbox files with less but for some reason mutt reports "error trying to view file". But mutt can see the sizes of these files.

Last edited by evilchild; 08-28-2007 at 09:12 PM.
 
Old 08-30-2007, 09:09 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
Have you tried set pager="less" in your .muttrc file?
Quote:
user "user@domain.com"
Probably not a problem since you said your able to view your mail mailbox with view, but normally the user account name is just the name without the @domain.com. At least, I've done it that way without problem. Oh, just read in the fetchmail manual that the user@domain.com is used for Microsoft NTLM authentication with Exchange server. I just learned something.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
config fetchmail,mutt,procmail,sendmail Tim Johnson Slackware 2 09-15-2006 03:20 PM
getmail, procmail and mutt in etch kel_en Debian 1 05-14-2006 07:37 AM
(xserver-xfree86 and xdm) (exim4, fetchmail, procmail & mutt) leamassiot Debian 5 12-18-2005 02:59 PM
Mutt + SpamAssassin + Procmail + other stuff rignes Linux - Software 0 11-23-2004 05:17 PM
email from the console (fetchmail/procmail/mutt/postfix) TedMaul Linux - Software 0 03-04-2004 01:07 PM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration