You are not logged in.

#1 2006-11-12 21:05:19

JhonnyBoy
Member
Registered: 2006-10-11
Posts: 33

getmail

I installed mutt with the wiki's howto.
But when I receve mail with getmail and open mutt.
Mutt doesn't diplay them and just say that mail/inbox is not a mailbox.
This file contain all my mail together.
How can I fix it?

Is there any way that getmail leave the mail reachable by another pop3 client on gmail?

Offline

#2 2006-11-13 09:16:55

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: getmail

To leave email on the server:

[options]
delete = false

Post your ./getmail/???.rc file with the username and passwords blanked out. I use getmail to dump into "maildir" mailboxes for kmail. Getmail also supports mbox mailboxes. Which format does mutt expect?

Offline

#3 2006-11-13 21:42:04

JhonnyBoy
Member
Registered: 2006-10-11
Posts: 33

Re: getmail

here is my getmail

[retriever]
type = SimplePOP3SSLRetriever
server = pop.gmail.com
username = something@gmail.com
port = 995
password = another_something

#[destination]
#type = Maildir
#path = ~/mail/

[destination]
type = MDA_external
path = /usr/bin/procmail

don't know what mutt use in the man they are talking about spool mailbox

Offline

#4 2006-11-14 09:25:09

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: getmail

The Arch mutt wiki sets up email in maildir format. You can decide which is best for you as mutt supports lots of mailbox formats.

Now getmail would normally store in "maildir" format which is a directory for each folder and a file for each message BUT instead of getmail dumping emails directly that "[destination]" has been commented out and emails are passed to procmail.

However after procmail has finally dumped them, you say mutt is telling you "mail/inbox is not a mailbox" and you say "This file contain all my mail together" which sounds like procmail has written them in "mbox" format (which is a file contains many emails stuck together, each file is treated like an email folder) in which case there's something wrong with your .procmailrc, ormaybe you've received local email (e.g. from cron jobs) that have setup/overridden ~/mail/

To test, cut out procmail altogether and try this in getmail

[destination]
type = Maildir
path = ~/mymail/

set up fresh, separate maildir structure

mkdir -p ~/mymail/{cur,new,tmp}

and point mutt inbox to "mymail" with maildir format.

Do you actually need the procmail stage?

Offline

#5 2006-11-15 13:28:52

JhonnyBoy
Member
Registered: 2006-10-11
Posts: 33

Re: getmail

I already tried this (as you can see I commented it in my getmailrc.
As I don't care of my procmail's filter for the moment I comment procmail and uncomment what you said.
So i think the problem come from my nuttrc :

set realname='bruce'

set sendmail="/usr/bin/msmtp"

set edit_headers=yes
set folder=/home/bruce/mail
set mbox=+mbox
set spoolfile=+inbox
set record=+sent
set postponed=+drafts
set mbox_type=Maildir

mailboxes +inbox

note : when I don't use procmail there is no inbox file in /mail, just singles files in /mail/new

Offline

#6 2007-04-17 21:25:54

vladuz976
Member
From: Venice, CA
Registered: 2005-11-04
Posts: 108

Re: getmail

Below is my getmailrc. I set "delete=false" but getmail still deletes all messages on the server. Any idea what might be going on?

[options]
verbose = 1
delete = false

[retriever]
type = SimplePOP3SSLRetriever
server = mail.ucla.edu
username = username
password = password

[destination]
type = MDA_external
path = /usr/bin/procmail
unixfrom = True

Offline

#7 2007-04-17 23:38:33

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: getmail

Please note that, if you use procmail as a destination, the format of the mailbox is determined by .procmailrc, not by .getmailrc.


Mortuus in anima, curam gero cutis

Offline

#8 2007-04-19 16:59:54

junglepeanut
Member
From: California
Registered: 2007-01-24
Posts: 145
Website

Re: getmail

Also I think your settings mean you need a new,cur, and temp directory inside your Mail directory.

Offline

Board footer

Powered by FluxBB