[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: additional fetchmail/procmail questions
- To: Dale Kiefling <http://www.skywriterhosting.com/~dale>
- Subject: Re: additional fetchmail/procmail questions
- From: <http://dummy.us.eu.org/robert>
- Date: Thu, 24 May 2007 06:38:58 -0700 (PDT)
- Cc: http://www.gmail.com/~daleki
- Delivery-date: Thu, 24 May 2007 06:38:38 -0700
- Envelope-to: http://dummy.us.eu.org/robert
--- Dale Kiefling <http://www.skywriterhosting.com/~dale> wrote:
> Hi Robert,
> I am still seeing some issues when transferring mail from the old
> BayNVC server. The two biggest issues are:
>
> 1. Not all the mail comes over for any given user, maybe half? I can't
> see a pattern in what does not come over. I added the procmail commands
> you suggested regarding missing ids:
>
> .procmailrc:
> VERBOSE=on
> LOGFILE=procmail.log
>
> :0hwc
> |formail -D 200000 .messids
> LOG="$FILENO"
>
> :0fhw
> *!^message-id:
> |formail -a Message-ID:
>
> # duplicate case -- throw away
> :a
> /dev/null
This is not right. If you keep this, you need to move it up below the "formail
-D 200000 .messids" line. The "a" means "and", meaning "if the previous recipe
executed and executed successfully". This is probably throwing away any
message which doesn't have a Message-ID.
> :0w
> *^TO\/[a-zA-Z][a-zA-Z0-9]*@baynvc\.org
> {
> :0
> !$MATCH
> }
>
> :0
> !$LOGNAME
>
> Can you suggest any other strategies here? Can you take a look at the logs?
I couldn't find the logs. Could you please tell me where they are?
> 2. Fetchmail seems to fail now when I partially through processing
> another user:
>
> fetchmail: reading message http://www.baynvc.org/~http://www.email.baynvc.org/~erica:16 of 118
> (464 header octets) fetchmail: (34 body octets) procmail: [31649] Wed May
> 23 08:16:53 2007
> procmail: Assigning "LOGFILE=procmail.log"
> procmail: Opening "procmail.log"
> fetchmail: not flushed
> fetchmail: SIGPIPE thrown from an MDA or a stream socket error
> fetchmail: socket error while fetching from erica@http://www.email.baynvc.org/~baynvc.org
> fetchmail: Query status=2 (SOCKET)
34 body octets? That seems like an awfully short message. Why don't you try?:
# print messages which are tiny
:0w
*<500
{ LOG="`cat`
" }
Note: there is an intentional newline after the last backquote. This includes
a newline in the log file, so things don't get run together.
> Thanks for any help!
Good luck!
> Cheers,
> Dale Kiefling
> Skywriter Hosting, LLC
> http://skywriterhosting.com
> 415 699-0421