delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/17/01:26:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 17 Dec 2001 14:24:51 +0800
From: Greg Matheson <lang AT ms DOT chinmin DOT edu DOT tw>
To: cygwin AT cygwin DOT com
Subject: Re: procmail cannot write to local directories
Message-ID: <20011217142451.B16440853@IBM973237G>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4 DOT 3 DOT 1 DOT 2 DOT 20011210150238 DOT 021f7520 AT pop DOT ma DOT ultranet DOT com> <029d01c181b8$8df788e0$738ffe0c AT pwork> <4 DOT 3 DOT 1 DOT 2 DOT 20011210161541 DOT 021f8768 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <4.3.1.2.20011210161541.021f8768@pop.ma.ultranet.com>; from lhall@rfk.com on Mon, Dec 10, 2001 at 16:16:44 -0500

On Mon, 10 Dec 2001, Larry Hall (RFK Partners, Inc) wrote:

> I would agree.  Oh well, maybe it's time to debug...

I had the same problem, and it seems to be because my .procmailrc was in
dos format. In vim, I ran :set ff=unix and the problem went away.

> At 03:23 PM 12/10/2001, C. Porter Bassett wrote:
> >I don't think that's the problem.  Here's what I get when I run mount:

> > > Don't know for sure but judging by the missing quotes and first letter
> > > from many of your messages, I'm guessing your running with text mounts.
> > > Try binary mounts instead and see if anything is better.

> > > At 02:47 PM 12/10/2001, C. Porter Bassett wrote:
> > > >I downloaded cygwin-compiled procmail from
> > > >http://www.dd.iij4u.or.jp/~madokam/.  Right now, I am trying to use it to
> > > >filter an existing test mailbox that has two messages in it by running
> > > >  $ cat testspool |procmail

I think you need to pipe messages individually to procmail, not
as a folder.

> > > >Here's my super-simple .procmailrc which should do nothing put put all
> > > >messages into ~/Mail/inbox and write its log to ~/.procmail/log:
> > > >     PATH=/usr/bin:/bin
> > > >     SHELL=/bin/sh
> > > >     VERBOSE=no
> > > >     MAILDIR=$HOME/Mail
> > > >     DEFAULT=$MAILDIR/inbox
> > > >     PMDIR=$HOME/.procmail
> > > >     LOGFILE=$PMDIR/log

> > > >:0
> > > >$DEFAULT


> > > >When I try to do this, procmail gives me all kinds of odd errors.  Here's
> > > >what procmail puts into stderr:

> > > >     ~/Mail$ cat testspool |procmail
> > > >     "rocmail: Error while writing to "/home/porter/.procmail/log
> > > >     "rocmail: Skipped "
> > > >     "rocmail: Skipped "
> > > >     "rocmail: Error while writing to "/home/porter/Mail/inbox
> > > >     "rocmail: Skipped "
> > > >     .lock"il: Lock failure on "/home/porter/Mail/inbox
> > > >     "rocmail: Error while writing to "/home/porter/Mail/inbox


> > > >I have no idea why it cannot write to /home/porter/.procmail/log or
> > > >/home/porter/Mail/inbox.  I can modify both of them.  I also have no idea
> > > >why it keeps saying Skipped ".

Probably it is skipping the ^M.

I seemed to be having problems with mailbox corruption with the
sample fetchmailrc at the site above, so I used

mda "/usr/bin/procmail -f %F -m /home/lang/.procmailrc -d %T"
# mda "/usr/bin/procmail -d %T"   # pass message to the local MDA
                                  # (Procmail in this case.)

The -f flag to rewrite the ^From line, and the -m one to quiet the
"not able to write /var/spool/mail/lang" message.

But before doing this, I had been moving the messages around my
mail folders with procmail so, perhaps the sample fetchmailrc does
work.

-- 
Greg Matheson
Chinmin College Taiwan

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019