Mail Archives: cygwin/2001/12/17/01:26:08
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 -