Re: fetchmail, procmail, mutt

2010-04-21 Thread Robert Holtzman

On Tue, 20 Apr 2010, Matthew Coulliette wrote:


Hi everyone,

I am trying to setup fetchmail to get my email from the server, procmail to 
sort my email, and mutt to read my email. So far, fetchmail appears to work. 
It gets the mail and puts it in /var/mail/username. I believe that the next 
step is to have procmail sort it into mailboxes. I have created a .mail dir 
in my home dir. I attached a copy of the .procmailrc file that I have 
written. It does not appear to work. Can someone tell me what is wrong with 
the config file. Any other comments or suggestions are also welcome.


My .fetchmailrc file looks like this:

poll pop.west.cox.net
protocol pop3
username xx
password xx
mimedecode
mda /usr/bin/procmail -f -


Note the call to procmail. You didn't say which mailbox format you 
wanted. This will deliver mail in mbox format. If you want the maildir 
format the URL in the other reply might be what you want. Don't know. 
There are advantages and disadvantages to both formats.


In your .procmailrc file MAILDIR=/home/matthewmpp/.mail doesn't work. I 
learned that the hard way. It will always revert to the default mailbox. 
You had it right with DEFAULT=/home/matthewmpp/.mail/all. Is there a 
reason you got away from that? The relevant part of my procmailrc file 
is:


#MAILDIR=/var/mail
#MAILDIR=/var/spool/mail
DEFAULT=$HOME/mail/INCOMING  

--
Bob Holtzman
Key ID: 8D549279
If you think you're getting free lunch,
 check the price of the beer
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


Re: fetchmail, procmail, mutt

2010-04-21 Thread Robert Holtzman

On Tue, 20 Apr 2010, wta wrote:


Hi Matthew

your file looks ok, so far, you need to check your fechmail config, because
if is working, but it is not calling procmail. you need something like

mda /usr/bin/procmail -m /directory/to/procmail.conf


I tried that about a week ago when I was attempting to use an 
alternate .procmailrc file and it was a disaster. I don't have the error 
message handy as it's on my laptop which is at Red7 for repair.




check here for reference
http://www.ioncannon.net/system-administration/97/using-fetchmail-and-procmail-for-maildir-style-storage-from-a-pop3-account/



The reference in the above site to CORRECTHOME confuses me. Running a 
search on it turns up nothing that tells me *how it works.


--
Bob Holtzman
Key ID: 8D549279
If you think you're getting free lunch,
 check the price of the beer
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


Re: fetchmail, procmail, mutt

2010-04-21 Thread wta
CORRECTHOME=is your maildir
try this as .procmailrc USERHOME=CORRECTHOME and then check the logs

USERHOME=/home/matthewmpp/.mail
MAILDIR=$USERHOME/maildir/

LOGFILE=$USERHOME/procmail.log
VERBOSE=on

:0
Mail/


On Wed, Apr 21, 2010 at 12:05 AM, Robert Holtzman hol...@cox.net wrote:

 On Tue, 20 Apr 2010, wta wrote:

  Hi Matthew

 your file looks ok, so far, you need to check your fechmail config,
 because
 if is working, but it is not calling procmail. you need something like

 mda /usr/bin/procmail -m /directory/to/procmail.conf


 I tried that about a week ago when I was attempting to use an alternate
 .procmailrc file and it was a disaster. I don't have the error message handy
 as it's on my laptop which is at Red7 for repair.



 check here for reference

 http://www.ioncannon.net/system-administration/97/using-fetchmail-and-procmail-for-maildir-style-storage-from-a-pop3-account/


 The reference in the above site to CORRECTHOME confuses me. Running a
 search on it turns up nothing that tells me *how it works.


 --
 Bob Holtzman
 Key ID: 8D549279
 If you think you're getting free lunch,
  check the price of the beer
 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

re: fetchmail, procmail, mutt

2010-04-21 Thread gm5729
 Message: 6
 Date: Wed, 21 Apr 2010 00:04:56 -0700 (MST)
 From: Robert Holtzman hol...@cox.net
 Subject: Re: fetchmail, procmail, mutt
 To: Main PLUG discussion list plug-discuss@lists.plug.phoenix.az.us
 Message-ID: alpine.deb.2.00.1004202343460.31...@localhost
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

 On Tue, 20 Apr 2010, Matthew Coulliette wrote:

 Hi everyone,

 I am trying to setup fetchmail to get my email from the server, procmail to
 sort my email, and mutt to read my email. So far, fetchmail appears to work.
 It gets the mail and puts it in /var/mail/username. I believe that the next
 step is to have procmail sort it into mailboxes. I have created a .mail dir
 in my home dir. I attached a copy of the .procmailrc file that I have
 written. It does not appear to work. Can someone tell me what is wrong with
 the config file. Any other comments or suggestions are also welcome.

 My .fetchmailrc file looks like this:

     poll pop.west.cox.net
     protocol pop3
     username xx
     password xx
     mimedecode
     mda /usr/bin/procmail -f -


 Note the call to procmail. You didn't say which mailbox format you
 wanted. This will deliver mail in mbox format. If you want the maildir
 format the URL in the other reply might be what you want. Don't know.
 There are advantages and disadvantages to both formats.

 In your .procmailrc file MAILDIR=/home/matthewmpp/.mail doesn't work. I
 learned that the hard way. It will always revert to the default mailbox.
 You had it right with DEFAULT=/home/matthewmpp/.mail/all. Is there a
 reason you got away from that? The relevant part of my procmailrc file
 is:

 #MAILDIR=/var/mail
 #MAILDIR=/var/spool/mail
 DEFAULT=$HOME/mail/INCOMING  

 --
 Bob Holtzman
 Key ID: 8D549279
 If you think you're getting free lunch,
  check the price of the beer


Oh boy these are all fun to setup... :)  I run fetchmail, procmail,
mutt and msmtp. In my ~ there is a ~/.mutt/  which contains all my
formatting. In my ~ there is also a folder ~/.MuttMail which contains
all my mailboxes. MBox was easier as was pop3 for me than Maildir and
Imap. Do note with MBox you MUST have /tmp /curr and /new directory in
your ~/.MuttMail folder

cat .fetchmailrc

poll pop.gmail.com protocol pop3 user XXX


cat .procmailrc
PATH=/bin;/usr/bin;/usr/local/bin
MAILDIR=$HOME/.MuttMail##you better make sure it exists
DEFAULT=$MAILDIR/INBOX
LOGFILE=$MAILDIR/.procmail_log
LOGABSTRACT=no
VERBOSE=on  ##only used for debugging
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
#$MAILDIR/duplicates


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

#no more html messages
:0
*^Content-Type:.*html
$MAILDIR/junk

#now put my mail lists into mailboxes
:0
*^List-Id:.*wftl-lug
$MAILDIR/wftl-lug


:0
*^List-Id:.* plug-discuss
$MAILDIR/plug-discuss


:0
*^List-Id:.*arch-linux
$MAILDIR/arch-linux

:0
*^List-Id:. *nlug-talk
$MAILDIR/nlug-talk

:0
*^List-Id:. *tclug
$MAILDIR/tclug


# Last Rule: Hamm
#
:0
*.*
$DEFAULT

#EOF
#



cat .muttrc
# vim:syn=muttrc
# auto login to this mailbox at startup

#Vim Settings for interfacing with Mutt
set editor='vim -c set tw=72 '

###
# ~/.muttrc
#
# *updated --again-- to remove options that simply duplicate defaults*
#
###

# directories and commands

set move=yes
source /etc/Muttrc.gpg.dist
source /$HOME/.mutt/gpg
set sendmail=/usr/bin/msmtp

  set query_command   = /$HOME/.abook/addressbook '%s'  #
alias file with abook
  set alias_file  = /$HOME/.MuttMail/alias#alias file
# set certificate_file= ~/.mutt/certificates  #
where to store certs
  set header_cache= /$HOME/.MuttMail/headers  #
where to store headers
  set message_cachedir= /$HOME/.MuttMail/cache/bodies #
where to store bodies
  set mailcap_path= /$HOME/.MuttMail/mailcap  #
entrys for filetypes
  set signature   = /$HOME/.mutt/signature# my
signature file
  set tmpdir  =  /$HOME/.MuttMail/tmp #
where to keep temp files
 set ispell  = aspell -e -c# use
aspell as ispell
# set query_command   = mutt_vc_query '%s'  #
query rolo's vCards
  set print_command   = enscript -p - | psselect -r | lp#
print email in reverse page order

# maildir settings
  set mbox_type   = Maildir   # mailbox type
  set folder  =/$HOME/.MuttMail

fetchmail, procmail, mutt

2010-04-20 Thread Matthew Coulliette

Hi everyone,

I am trying to setup fetchmail to get my email from the server, procmail 
to sort my email, and mutt to read my email. So far, fetchmail appears 
to work. It gets the mail and puts it in /var/mail/username. I believe 
that the next step is to have procmail sort it into mailboxes. I have 
created a .mail dir in my home dir. I attached a copy of the .procmailrc 
file that I have written. It does not appear to work. Can someone tell 
me what is wrong with the config file. Any other comments or suggestions 
are also welcome.


MatthewMPP
#procmailrc file by MatthewMPP, 04-18-10
#routes incoming mail to appropriate mail boxes

#ASSIGNMENTS
PATH=/usr/bin:/usr/local/bin #this is where it looks for programs.
#MAILDIR=/var/mail/matthewmpp #this is where fetchmail put my email.
MAILDIR=/home/matthewmpp/.mail
#DEFAULT=/home/matthewmpp/.mail/all
LOGFILE=/home/matthewmpp/.procmail.log #this is where it should put the log.
SHELL=/bin/sh #this is the shell
VERBOSE=yes

#RECIPES
#Put mail into mailboxes
:0
* ^To:.*matthew...@cox.net
all

---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss