Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mutt, procmail, and fetchmail
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Wed Nov 06, 2002 3:51 am    Post subject: mutt, procmail, and fetchmail Reply with quote

I am having some problems getting the 3 to work frienly. When procmail filters mail into a new folder(the first time i get mail) mutt says that it isn't a valid mailbox. My fcc-hook works fine and i can view the sent folder. AFAIK i am using maildir style mail directory's, i have mbox_type=Maildir set in my .muttrc and my mailbox is ~/.maildir
Another problem i am ahving is before when this did work none of my emails were marked as unread. Every single one was marked as read. having alot of email made it difficult to figure out which stuff i havent read yet, especially in long threads. Here are copy's of my .muttrc, .fetchmailrc, and .procmailrc


.muttrc

Code:

set folder=~/.maildir
set sendmail="/usr/bin/nbsmtp -d qwest.net -f snoogans@qwest.net -h pop.phnx.qwest.net"
set alias_file=~/.mutt.aliases
source ~/.mutt.aliases
my_hdr From: BoBB <snoogans@qwest.net>
set autoedit
folder-hook . set sort=threads
folder-hook . set sort_aux=reverse-date-sent
folder-hook . set pager_index_lines=11
set mark_old=yes
set delete=yes
set edit_headers
set fast_reply
set abort_nosubject=no
set abort_unmodified=yes
set include=yes
set indent_str="> "
set realname="BoBB"
set editor="vim '+:5'"
set index_format="%4C %S %[!%d/%m] %-17.17F (%3l) %s"
set mbox_type=Maildir
hdr_order Date: From: Organization: User-Agent: X-Mailer To: Cc: Reply-To: Subject:
ignore *
unignore Date: From: Organization: User-Agent: X-Mailer: To: Cc: Reply-To: Subject:
macro index G "!fetchmail\r"invoke fetchmail"
macro pager G "!fetchmail\r" "invoke fetchmail"
fcc-hook .*. "~/.maildir/sent"
set folder_format="%F %d %8s %N %f"
set to_chars="+TCFL"
bind pager L list-reply
bind pager   <up>    previous-line
bind pager   <down>  next-line
bind pager   <left>  exit
bind pager   <right> view-attachments
bind attach  <left>  exit
bind attach  <right> view-attach
bind index   <right> display-message
macro index  <left>  "c?"
bind browser <right> select-entry
bind browser <left>  exit

color attachment white     blue
color body      cyan       default  "ftp://[^ ]*"
color body     brightgreen default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:
]]"
color body      cyan       default  "<URL:[^ ]*>"
color bold      green      default
color error     red        default

color header    yellow     default  "^from"
color header    green      default  "^from:"
color header    green      default  "^to:"
color header    green      default  "^cc:"
color header    green      default  "^date:"
color header    yellow     default  "^reply-to:"
color header    brightcyan default  "^subject:"
color header    yellow     default  "^x-mailer:"
color header    yellow     default  "^Organization:"
color header    yellow     default  "^User-Agent:"

color indicator white      blue
color markers   red        default
color message   white      blue

## ==================================================
## Colorizing the body of messages (ie in the pager)
## ==================================================


color normal    white     default  # pager body

#  Coloring quoted text - coloring the first 7 levels:
color quoted    cyan      default
color quoted1   yellow    default
color quoted2   red       default
color quoted3   green     default
color quoted4   cyan      default
color quoted5   yellow    default
color quoted6   red       default
color quoted7   green     default

color signature blue           default
color status    white          blue
color tilde     blue           default
color tree      green          default
color underline yellow         default
color body      green          default  "[;:]-[)/(|D]"  # colorise smileys
color body      green          default  "[;:][)/(|D]"
#color body      brightblue     default  "(http|https|ftp|news|telnet|finger)://[^ ]*"
color body      brightblue     default  "\\b[^ ]+://[^ ]*"

# color index     cyan           default  ~L
color index     yellow         default  ~N      # New
color index     yellow         default  ~O      # Old
color index     brightgreen    default  '~p'    # mail to myself
color index     brightcyan     default  '~P'    # mail from myself
color index     magenta        default  ~F      # Flagged
color index     blue           default  ~T      # Tagged
color index     red            default  ~D      # Deleted
alternative_order text/plain
lists gentoo-user@gentoo.org
lists plug-discuss@lists.plug.phoenix.az.us
subscribe gentoo-user@gentoo.org
subscribe plug-discuss@lists.plug.phoenix.az.us


Most of that i got from other peoples .muttrc's(like the colorizing) but i looked at all the options in the manual and set what i thought i needed/wanted

.fetchmailrc

Code:

poll pop.phnx.qwest.net with proto POP3 user snoogans password ******
user 'snoogans' there with password '******' is 'bob' here
mda "/usr/bin/procmail"


.procmailrc

Code:

VERBOSE=no
LOGFILE=$HOME/.pmlog
MAILDIR=$HOME/.maildir
DEFAULT=$MAILDIR/inbox

:0
* ^(To|Cc).*gentoo-user@gentoo.org*
gentoo-user

:0
* ^(To|Cc).*gentoo-desktop@gentoo.org*
gentoo-desktop

:0
* ^(To|Cc).*gentoo-announce@gentoo.org*
gentoo-announce

:0
* ^(To|Cc).*plug-discuss@lists.plug.phoenix.az.us*
plug

:0
$DEFAULT
Back to top
View user's profile Send private message
mark_p
n00b
n00b


Joined: 03 Nov 2002
Posts: 24

PostPosted: Wed Nov 06, 2002 4:30 am    Post subject: Reply with quote

Hi
Try and use mda "procmail -d %T" in your .fetchmailrc.
That should work.

Mark
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Wed Nov 06, 2002 4:46 am    Post subject: Reply with quote

I had it like that before and i thought maybee that was why the emails werent bgeing markes as unread. Any idea why it might be doing that? This is a huge problem it makes reading mail damn near impossible.
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Wed Nov 06, 2002 9:29 am    Post subject: Reply with quote

Okay i have everything working fine now. i was using the wrong mailbox type. Have a new problem though. im using maildir type mailbox but when im in the folder view it doesn't show me when a folder has new messages in it. And yes it is set correctly in .muttrc. Does anyone know why? I would much appreciate it because as of right now this is my last problem with mutt :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum