* Cygwin/Procmail stops working after setup.exe upgrade
@ 2002-10-22 5:41 Thomas Baker
2002-10-22 5:50 ` Jason Tishler
2002-10-22 6:56 ` Greg Matheson
0 siblings, 2 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-22 5:41 UTC (permalink / raw)
To: Cygwin
On a platform of Cygwin over WIN2000, I have happily used
Fetchmail to call Procmail, and this has worked brilliantly
for the past few months. However, since running setup.exe
and updating my Cygwin installation several days ago, Procmail
has stopped working. After extensive searches through email
archives, man pages, and various experiments, I still cannot
get Procmail to write a log, so I am still unsure whether
the problem lies with Cygwin, Fetchmail, or Procmail:
At first I got messages about a "suspicious rcfile" for
Procmail, and in accordance with the man page instructions
managed to tweak the permissions and ownership of the following
files (e: is $HOME):
-rwxrwxrwx 1 tbaker None 335 Oct 22 11:08 e:/.fetchmailrc
-rw-r--r-- 1 tbaker None 333 Oct 22 10:12 e:/.procmailrc
This put an end to the error message about the "suspicious
rcfile" -- without, however, making Procmail spring into
action. Rather, everything just floods into my default
mailbox. As before, my $HOME/.fetchmail says:
| set daemon 10
| set logfile /cygdrive/e/u/config/fetchmail.log
| set invisible
| set no bouncemail
| poll [**ADDRESS DELETED FOR THE POSTING**]
| protocol: pop3
| username: [**DELETED FOR THE POSTING**]
| password: [**DELETED FOR THE POSTING**]
| nokeep
| fetchall
| mda "/usr/bin/procmail -d %T" # pass message to the local MDA
And my e:/.procmailrc says:
| VERBOSE=yes
| LOGABSTRACT=all
| MAILDIR=$HOME/uc
| PMDIR=$HOME/u/procmail
| DEFAULT=$MAILDIR/MBOX2
| LOGFILE=$PMDIR/procmail.log
| INCLUDERC=$PMDIR/procmailrc.lists
|
| :0:
| $MAILDIR/mbox
According to the above, Procmail should at least be writing
a log file at e:/u/procmail/procmail.log -- as it always did
before -- but there is no log activity at all, and the file
has not even been initialized.
For starters, can anyone out there say whether the problem
lies with Cygwin (permissions), Fetchmail, or Procmail?
Thanks,
Tom Baker
P.S. I use:
|procmail v3.22 2001/09/10
|...
|Locking strategies: dotlocking, fcntl()
|Default rcfile: $HOME/.procmailrc
|Your system mailbox: /var/spool/mail/tbaker
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-22 5:41 Cygwin/Procmail stops working after setup.exe upgrade Thomas Baker
@ 2002-10-22 5:50 ` Jason Tishler
2002-10-23 2:21 ` Thomas Baker
2002-10-22 6:56 ` Greg Matheson
1 sibling, 1 reply; 30+ messages in thread
From: Jason Tishler @ 2002-10-22 5:50 UTC (permalink / raw)
To: cygwin, Thomas Baker
Thomas,
On Tue, Oct 22, 2002 at 01:48:20PM +0200, Thomas Baker wrote:
> For starters, can anyone out there say whether the problem
> lies with Cygwin (permissions), Fetchmail, or Procmail?
My WAG is that your problem is due to incorrect file permissions.
Recall that the latest Cygwin DLL now defaults to ntsec *on*.
I would check the permissions of $PMDIR, $PMDIR/procmail.log, and your
entire $MAILDIR tree.
A quick test would be to shutdown all Cygwin processes and set
CYGWIN=nontsec to see if procmail starts to function properly again.
If this "fixes" the problem, then turn ntsec back on and fix your
permissions problem for real.
Jason
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-22 5:50 ` Jason Tishler
@ 2002-10-23 2:21 ` Thomas Baker
2002-10-23 2:37 ` Olaf Foellinger
0 siblings, 1 reply; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 2:21 UTC (permalink / raw)
To: cygwin
On Tue, Oct 22, 2002 at 08:14:52AM -0400, Jason Tishler wrote:
> On Tue, Oct 22, 2002 at 01:48:20PM +0200, Thomas Baker wrote:
> > For starters, can anyone out there say whether the problem
> > lies with Cygwin (permissions), Fetchmail, or Procmail?
>
> My WAG is that your problem is due to incorrect file permissions.
> Recall that the latest Cygwin DLL now defaults to ntsec *on*.
Hmm, have been trying to get my head around that one... The
Procmail man page doesn't have much on "permission" and
"ntsec" -- am I looking in the right place?
> I would check the permissions of $PMDIR, $PMDIR/procmail.log, and your
> entire $MAILDIR tree.
The binaries:
-rwxr-xr-x 1 tbaker None 61952 Aug 19 16:41 /bin/procmail
-rwxr-xr-x 1 tbaker None 61952 Aug 19 16:41 /usr/bin/procmail
$MAILDIR:
drwxr-xr-x 23 tbaker None 32768 Oct 23 10:44 e:/uc
$PMDIR:
drwxr-xr-x 2 tbaker None 4096 Oct 23 10:44 e:/u/procmail
Are these permissions set as they should be?
> A quick test would be to shutdown all Cygwin processes and set
> CYGWIN=nontsec to see if procmail starts to function properly again.
> If this "fixes" the problem, then turn ntsec back on and fix your
> permissions problem for real.
I closed all bash windows, put "export CYGWIN=nontsec" in
the profile, opened a bash window, verified with "echo $CYGWIN"
that it was indeed "nontsec", and tried Fetchmail again -- and,
as before, no Procmail log was initialized in $PMDIR, nor were
the recipes applied.
Before doing this test, however, I had captured the following
permissions for the binaries:
-rwxrwxrwx 1 Administ 61952 Aug 19 16:41 /bin/procmail
-rwxrwxrwx 1 Administ 61952 Aug 19 16:41 /usr/bin/procmail
..showing them to belong to Administ instead of tbaker.
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:21 ` Thomas Baker
@ 2002-10-23 2:37 ` Olaf Foellinger
2002-10-23 2:39 ` Thomas Baker
0 siblings, 1 reply; 30+ messages in thread
From: Olaf Foellinger @ 2002-10-23 2:37 UTC (permalink / raw)
To: cygwin; +Cc: Thomas Baker
On Wed, Oct 23, 2002 at 10:56:48AM +0200, Thomas Baker wrote:
> I closed all bash windows, put "export CYGWIN=nontsec" in
> the profile, opened a bash window, verified with "echo $CYGWIN"
AFAIR this setting should be set outside from cygwin so profile might be
the wrong place. I have this setting as an envirnment setting in w2k.
Gruss Olaf Föllinger
--
Olaf Föllinger
Berater
S.E.S.A. Software und Systeme AG
Alt-Moabit 91a
D-10559 Berlin
Germany
Tel: +49 30 390722 -291
Fax: +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:37 ` Olaf Foellinger
@ 2002-10-23 2:39 ` Thomas Baker
2002-10-23 2:47 ` Olaf Foellinger
0 siblings, 1 reply; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 2:39 UTC (permalink / raw)
To: cygwin
On Wed, Oct 23, 2002 at 11:06:50AM +0200, Olaf Foellinger wrote:
> On Wed, Oct 23, 2002 at 10:56:48AM +0200, Thomas Baker wrote:
> > I closed all bash windows, put "export CYGWIN=nontsec" in
> > the profile, opened a bash window, verified with "echo $CYGWIN"
>
> AFAIR this setting should be set outside from cygwin so profile might be
> the wrong place. I have this setting as an envirnment setting in w2k.
Hmm, could try for diagnostic purposes, but I had the impression from
Jason that it is generally a bad idea to turn ntsec off?
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:39 ` Thomas Baker
@ 2002-10-23 2:47 ` Olaf Foellinger
0 siblings, 0 replies; 30+ messages in thread
From: Olaf Foellinger @ 2002-10-23 2:47 UTC (permalink / raw)
To: cygwin; +Cc: Thomas Baker
On Wed, Oct 23, 2002 at 11:11:30AM +0200, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 11:06:50AM +0200, Olaf Foellinger wrote:
> > On Wed, Oct 23, 2002 at 10:56:48AM +0200, Thomas Baker wrote:
> > > I closed all bash windows, put "export CYGWIN=nontsec" in
> > > the profile, opened a bash window, verified with "echo $CYGWIN"
> >
> > AFAIR this setting should be set outside from cygwin so profile might be
> > the wrong place. I have this setting as an envirnment setting in w2k.
>
> Hmm, could try for diagnostic purposes, but I had the impression from
> Jason that it is generally a bad idea to turn ntsec off?
IMHO it's better to turn it on too. Indeed I have turmed it on in the
place described above. I wanted to point at the right place for this
setting not for the right value. I hope I haven't confused you to much.
Gruss Olaf Föllinger
--
Olaf Föllinger
Berater
S.E.S.A. Software und Systeme AG
Alt-Moabit 91a
D-10559 Berlin
Germany
Tel: +49 30 390722 -291
Fax: +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-22 5:41 Cygwin/Procmail stops working after setup.exe upgrade Thomas Baker
2002-10-22 5:50 ` Jason Tishler
@ 2002-10-22 6:56 ` Greg Matheson
2002-10-23 2:47 ` Thomas Baker
1 sibling, 1 reply; 30+ messages in thread
From: Greg Matheson @ 2002-10-22 6:56 UTC (permalink / raw)
To: Cygwin; +Cc: Thomas Baker
On Tue, 22 Oct 2002, Thomas Baker wrote:
> I still cannot
> get Procmail to write a log, so I am still unsure whether
> the problem lies with Cygwin, Fetchmail, or Procmail:
Can you run it from the command line? You can pipe messages in
mutt to "procmail -m .procmailrc"
--
Greg Matheson Learning: How do I get there from here?
Chinmin College Teaching: Where do I have to be to get
there from here?
Taiwan Penpals Archive <URL: http://penpals.chinmin.edu.tw/>
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-22 6:56 ` Greg Matheson
@ 2002-10-23 2:47 ` Thomas Baker
2002-10-23 2:53 ` Olaf Foellinger
` (2 more replies)
0 siblings, 3 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 2:47 UTC (permalink / raw)
To: cygwin
Greg,
On Tue, Oct 22, 2002 at 09:26:39PM +0800, Greg Matheson wrote:
> On Tue, 22 Oct 2002, Thomas Baker wrote:
> > I still cannot
> > get Procmail to write a log, so I am still unsure whether
> > the problem lies with Cygwin, Fetchmail, or Procmail:
>
> Can you run it from the command line? You can pipe messages in
> mutt to "procmail -m .procmailrc"
Aha, this is helpful -- I think. When I run "cat test.mbox |
procmail -m e:/.procmailrc", I get:
| procmail: [1432] Wed Oct 23 11:00:53 2002
| procmail: Assigning "LOGABSTRACT=all"
| procmail: Assigning "MAILDIR=/home/tbaker/uc"
| procmail: Couldn't chdir to "/home/tbaker/uc"
| procmail: Assigning "MAILDIR=."
| procmail: Assigning "PMDIR=/home/tbaker/u/procmail"
| procmail: Assigning "DEFAULT=./MBOX2"
| procmail: Assigning "LOGFILE=/home/tbaker/u/procmail/procmail.log"
| procmail: Opening "/home/tbaker/u/procmail/procmail.log"
| procmail: Error while writing to "/home/tbaker/u/procmail/procmail.log"
| procmail: Match on "^Subject:.*TEST"
| procmail: Locking "TEST.lock"
| procmail: Assigning "LASTFOLDER=TEST"
| procmail: Opening "TEST"
| procmail: Acquiring kernel-lock
| procmail: Unlocking "TEST.lock"
| From tbaker Wed Oct 23 10:44:40 2002
| Subject: TEST
| Folder: TEST 958
..even though "echo $HOME" in a Bash window confirms that
$HOME is "/cygdrive/e".
So I edited .procmailrc, changing
| MAILDIR=$HOME/uc
| PMDIR=$HOME/u/procmail
to
| MAILDIR=/cygdrive/e/uc
| PMDIR=/cygdrive/e/u/procmail
And running "cat test.mbox | procmail -m e:/.procmailrc" again, I got:
| procmail: [2044] Wed Oct 23 11:12:28 2002
| procmail: Assigning "LOGABSTRACT=all"
| procmail: Assigning "MAILDIR=/cygdrive/e/uc"
| procmail: Assigning "PMDIR=/cygdrive/e/u/procmail"
| procmail: Assigning "DEFAULT=/cygdrive/e/uc/MBOX2"
| procmail: Assigning "LOGFILE=/cygdrive/e/u/procmail/procmail.log"
| procmail: Opening "/cygdrive/e/u/procmail/procmail.log"
..and the procmail.log showed everything as it should.
However, incoming messages are still not directed to files
as called for in the recipes...
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:47 ` Thomas Baker
@ 2002-10-23 2:53 ` Olaf Foellinger
2002-10-23 3:19 ` Thomas Baker
2002-10-23 5:21 ` Jason Tishler
2002-10-23 3:15 ` Greg Matheson
2002-10-23 5:35 ` Jason Tishler
2 siblings, 2 replies; 30+ messages in thread
From: Olaf Foellinger @ 2002-10-23 2:53 UTC (permalink / raw)
To: cygwin; +Cc: Thomas Baker
On Wed, Oct 23, 2002 at 11:15:34AM +0200, Thomas Baker wrote:
> ..even though "echo $HOME" in a Bash window confirms that
> $HOME is "/cygdrive/e".
AFAIK cygwin takes the home directory from /etc/passwd.
Gruss Olaf Föllinger
--
Olaf Föllinger
Berater
S.E.S.A. Software und Systeme AG
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:53 ` Olaf Foellinger
@ 2002-10-23 3:19 ` Thomas Baker
2002-10-23 3:47 ` Bjoern Kahl AG Resy
2002-10-23 5:21 ` Jason Tishler
1 sibling, 1 reply; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 3:19 UTC (permalink / raw)
To: cygwin
On Wed, Oct 23, 2002 at 11:20:59AM +0200, Olaf Foellinger wrote:
> On Wed, Oct 23, 2002 at 11:15:34AM +0200, Thomas Baker wrote:
> > ..even though "echo $HOME" in a Bash window confirms that
> > $HOME is "/cygdrive/e".
>
> AFAIK cygwin takes the home directory from /etc/passwd.
Oho, indeed it does, and "/home/tbaker" doesn't (yet) exist!
Any reason I shouldn't just "vi /etc/passwd" to reset HOME to
"/cygdrive/e"?
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 3:19 ` Thomas Baker
@ 2002-10-23 3:47 ` Bjoern Kahl AG Resy
2002-10-23 4:11 ` Thomas Baker
0 siblings, 1 reply; 30+ messages in thread
From: Bjoern Kahl AG Resy @ 2002-10-23 3:47 UTC (permalink / raw)
To: Thomas Baker; +Cc: cygwin
Hallo !
On Wed, 23 Oct 2002, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 11:20:59AM +0200, Olaf Foellinger wrote:
> > On Wed, Oct 23, 2002 at 11:15:34AM +0200, Thomas Baker wrote:
> > > ..even though "echo $HOME" in a Bash window confirms that
> > > $HOME is "/cygdrive/e".
> >
> > AFAIK cygwin takes the home directory from /etc/passwd.
>
> Oho, indeed it does, and "/home/tbaker" doesn't (yet) exist!
>
> Any reason I shouldn't just "vi /etc/passwd" to reset HOME to
> "/cygdrive/e"?
Hmm. hacking araound in passwd is not the best thing to do.
Next time you run "mkpasswd" your changes may get lost.
I think its better to use mount the map /home/tbaker to the
place your files life.
If you have multiple accouts. its even better to map /home to a
place, where all user have a directory with there username.
Hope that helps
Bjoern Kahl
--
+---------------------------------------------------------------------+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de |
+---------------------------------------------------------------------+
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 3:47 ` Bjoern Kahl AG Resy
@ 2002-10-23 4:11 ` Thomas Baker
2002-10-23 4:43 ` beginner Florian Litot
2002-10-23 4:51 ` Cygwin/Procmail stops working after setup.exe upgrade Bjoern Kahl AG Resy
0 siblings, 2 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 4:11 UTC (permalink / raw)
To: Bjoern Kahl AG Resy; +Cc: cygwin
On Wed, Oct 23, 2002 at 11:47:27AM +0200, Bjoern Kahl AG Resy wrote:
> > > On Wed, Oct 23, 2002 at 11:15:34AM +0200, Thomas Baker wrote:
> > > > ..even though "echo $HOME" in a Bash window confirms that
> > > > $HOME is "/cygdrive/e".
> > >
> > > AFAIK cygwin takes the home directory from /etc/passwd.
> >
> > Oho, indeed it does, and "/home/tbaker" doesn't (yet) exist!
> >
> > Any reason I shouldn't just "vi /etc/passwd" to reset HOME to
> > "/cygdrive/e"?
>
> Hmm. hacking araound in passwd is not the best thing to do.
> Next time you run "mkpasswd" your changes may get lost.
Sounds wise...
> I think its better to use mount the map /home/tbaker to the
> place your files life.
>
> If you have multiple accouts. its even better to map /home to a
> place, where all user have a directory with there username.
Yikes... just when I was getting used to ntsec/permissions,
yet another WIN32/Unix oddity to contend with...!
Looks like it might be easier just to spell out "/cygdrive/e"
in my .procmailrc instead of using the $HOME variable
there...??
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* beginner
2002-10-23 4:11 ` Thomas Baker
@ 2002-10-23 4:43 ` Florian Litot
2002-10-23 5:58 ` beginner Andrew Ellerton
2002-10-23 4:51 ` Cygwin/Procmail stops working after setup.exe upgrade Bjoern Kahl AG Resy
1 sibling, 1 reply; 30+ messages in thread
From: Florian Litot @ 2002-10-23 4:43 UTC (permalink / raw)
To: cygwin
hi
i would like to launch a request via cygwin how i can do this
i try to use
psql -a 1.sql
but i have got this error
psql: FATAL 1: Database "1.sql" does not exist in the system catalog.
how i can resolve this error thanks
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 4:11 ` Thomas Baker
2002-10-23 4:43 ` beginner Florian Litot
@ 2002-10-23 4:51 ` Bjoern Kahl AG Resy
1 sibling, 0 replies; 30+ messages in thread
From: Bjoern Kahl AG Resy @ 2002-10-23 4:51 UTC (permalink / raw)
To: Thomas Baker; +Cc: cygwin
Hallo !
On Wed, 23 Oct 2002, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 11:47:27AM +0200, Bjoern Kahl AG Resy wrote:
> > > > On Wed, Oct 23, 2002 at 11:15:34AM +0200, Thomas Baker wrote:
> > > > > ..even though "echo $HOME" in a Bash window confirms that
> > > > > $HOME is "/cygdrive/e".
> > > >
> > > > AFAIK cygwin takes the home directory from /etc/passwd.
> > >
> > > Oho, indeed it does, and "/home/tbaker" doesn't (yet) exist!
> > >
> > > Any reason I shouldn't just "vi /etc/passwd" to reset HOME to
> > > "/cygdrive/e"?
> > I think its better to use mount the map /home/tbaker to the
> > place your files life.
> >
> > If you have multiple accouts. its even better to map /home to a
> > place, where all user have a directory with there username.
> Looks like it might be easier just to spell out "/cygdrive/e"
> in my .procmailrc instead of using the $HOME variable
> there...??
For this sepical case, yes that is the quick solution.
But there may exist other programs that wil get upset
with a non-existing/wrong "home" entry in /etc/passwd.
So, sooner or later, you better fix the root-problem,
(making $HOME and "home"-entry in passwd work) than
patching a lot of other scripts or tools.
Have fun!
Bjoern Kahl
--
+---------------------------------------------------------------------+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de |
+---------------------------------------------------------------------+
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:53 ` Olaf Foellinger
2002-10-23 3:19 ` Thomas Baker
@ 2002-10-23 5:21 ` Jason Tishler
1 sibling, 0 replies; 30+ messages in thread
From: Jason Tishler @ 2002-10-23 5:21 UTC (permalink / raw)
To: cygwin, Thomas Baker
On Wed, Oct 23, 2002 at 11:20:59AM +0200, Olaf Foellinger wrote:
> On Wed, Oct 23, 2002 at 11:15:34AM +0200, Thomas Baker wrote:
> > ..even though "echo $HOME" in a Bash window confirms that
> > $HOME is "/cygdrive/e".
>
> AFAIK cygwin takes the home directory from /etc/passwd.
Actually, in this case it is procmail the is using your /etc/passwd
entry to set HOME. From the procmail man page, we have the following:
FILES
/etc/passwd to set the recipient's LOGNAME,
HOME and SHELL variable defaults
Jason
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:47 ` Thomas Baker
2002-10-23 2:53 ` Olaf Foellinger
@ 2002-10-23 3:15 ` Greg Matheson
2002-10-23 4:08 ` Thomas Baker
2002-10-23 5:35 ` Jason Tishler
2 siblings, 1 reply; 30+ messages in thread
From: Greg Matheson @ 2002-10-23 3:15 UTC (permalink / raw)
To: cygwin
On Wed, 23 Oct 2002, Thomas Baker wrote:
> And running "cat test.mbox | procmail -m e:/.procmailrc" again, I got:
> | procmail: [2044] Wed Oct 23 11:12:28 2002
> | procmail: Assigning "LOGABSTRACT=all"
..
> However, incoming messages are still not directed to files
> as called for in the recipes...
You have to pipe individual messages, not a mailbox. Something
like
formail -s procmail < test.mbox
might work, but I've forgotten.
See the man pages.
--
Greg Matheson Anyone who doesn't make mistakes
Chinmin College isn't trying hard enough.
-- Wess Roberts
Taiwan Penpals Archive <URL: http://penpals.chinmin.edu.tw/>
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 3:15 ` Greg Matheson
@ 2002-10-23 4:08 ` Thomas Baker
0 siblings, 0 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 4:08 UTC (permalink / raw)
To: cygwin
On Wed, Oct 23, 2002 at 05:47:09PM +0800, Greg Matheson wrote:
> On Wed, 23 Oct 2002, Thomas Baker wrote:
> > And running "cat test.mbox | procmail -m e:/.procmailrc" again, I got:
>
> > | procmail: [2044] Wed Oct 23 11:12:28 2002
> > | procmail: Assigning "LOGABSTRACT=all"
> ..
> > However, incoming messages are still not directed to files
> > as called for in the recipes...
>
> You have to pipe individual messages, not a mailbox. Something
> like
> formail -s procmail < test.mbox
> might work, but I've forgotten.
> See the man pages.
Hmm -- on my quick reading of the formail man page, the
command looks to be well-formed, but when I ran this it
did not register an event in the procmail.log or show any
other visible result.
However, in this case "test.mbox" is exactly one message
long anyway, so "cat test.mbox | procmail -m e:/.procmailrc"
alone should presumably have yielded the sought-for result?
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 2:47 ` Thomas Baker
2002-10-23 2:53 ` Olaf Foellinger
2002-10-23 3:15 ` Greg Matheson
@ 2002-10-23 5:35 ` Jason Tishler
2002-10-23 5:49 ` Thomas Baker
2 siblings, 1 reply; 30+ messages in thread
From: Jason Tishler @ 2002-10-23 5:35 UTC (permalink / raw)
To: cygwin, Thomas Baker
Thomas,
On Wed, Oct 23, 2002 at 11:15:34AM +0200, Thomas Baker wrote:
> So I edited .procmailrc, changing
>
> | MAILDIR=$HOME/uc
> | PMDIR=$HOME/u/procmail
>
> to
>
> | MAILDIR=/cygdrive/e/uc
> | PMDIR=/cygdrive/e/u/procmail
>
> And running "cat test.mbox | procmail -m e:/.procmailrc" again, I got:
>
> | procmail: [2044] Wed Oct 23 11:12:28 2002
> | procmail: Assigning "LOGABSTRACT=all"
> | procmail: Assigning "MAILDIR=/cygdrive/e/uc"
> | procmail: Assigning "PMDIR=/cygdrive/e/u/procmail"
> | procmail: Assigning "DEFAULT=/cygdrive/e/uc/MBOX2"
> | procmail: Assigning "LOGFILE=/cygdrive/e/u/procmail/procmail.log"
> | procmail: Opening "/cygdrive/e/u/procmail/procmail.log"
>
> ..and the procmail.log showed everything as it should.
> However, incoming messages are still not directed to files
> as called for in the recipes...
What *exactly* does procmail.log indicate happened to the misfiled
messages?
Jason
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 5:35 ` Jason Tishler
@ 2002-10-23 5:49 ` Thomas Baker
2002-10-23 6:10 ` Jason Tishler
0 siblings, 1 reply; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 5:49 UTC (permalink / raw)
To: cygwin
On Wed, Oct 23, 2002 at 07:16:14AM -0400, Jason Tishler wrote:
> > And running "cat test.mbox | procmail -m e:/.procmailrc" again, I got:
> >
> > | procmail: [2044] Wed Oct 23 11:12:28 2002
> > | procmail: Assigning "LOGABSTRACT=all"
> > | procmail: Assigning "MAILDIR=/cygdrive/e/uc"
> > | procmail: Assigning "PMDIR=/cygdrive/e/u/procmail"
> > | procmail: Assigning "DEFAULT=/cygdrive/e/uc/MBOX2"
> > | procmail: Assigning "LOGFILE=/cygdrive/e/u/procmail/procmail.log"
> > | procmail: Opening "/cygdrive/e/u/procmail/procmail.log"
> >
> > ..and the procmail.log showed everything as it should.
> > However, incoming messages are still not directed to files
> > as called for in the recipes...
>
> What *exactly* does procmail.log indicate happened to the misfiled
> messages?
Attached is the entire procmail.log -- i.e., the log
captures the file tested with "cat test.mbox | procmail -m
e:/.procmailrc" (above), but does not register any of the
incoming mail that is constantly arriving, which all simply
goes to the default /var/spool/mail/tbaker.
Tom
procmail: Match on "^Subject:.*TEST"
procmail: Locking "TEST.lock"
procmail: [1944] Wed Oct 23 11:06:38 2002
procmail: Assigning "LASTFOLDER=TEST"
procmail: Opening "TEST"
procmail: Acquiring kernel-lock
procmail: Unlocking "TEST.lock"
From tbaker Wed Oct 23 10:44:40 2002
Subject: TEST
Folder: TEST 958
procmail: Match on "^Subject:.*TEST"
procmail: Locking "TEST.lock"
procmail: Assigning "LASTFOLDER=TEST"
procmail: Opening "TEST"
procmail: Acquiring kernel-lock
procmail: Unlocking "TEST.lock"
From tbaker Wed Oct 23 10:44:40 2002
Subject: TEST
Folder: TEST 958
procmail: Match on "^Subject:.*TEST"
procmail: Locking "TEST.lock"
procmail: Assigning "LASTFOLDER=TEST"
procmail: Opening "TEST"
procmail: Acquiring kernel-lock
procmail: Unlocking "TEST.lock"
From tbaker Wed Oct 23 10:44:40 2002
Subject: TEST
Folder: TEST 958
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 5:49 ` Thomas Baker
@ 2002-10-23 6:10 ` Jason Tishler
2002-10-23 7:10 ` Thomas Baker
0 siblings, 1 reply; 30+ messages in thread
From: Jason Tishler @ 2002-10-23 6:10 UTC (permalink / raw)
To: cygwin, Thomas Baker
Tom,
On Wed, Oct 23, 2002 at 01:43:19PM +0200, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 07:16:14AM -0400, Jason Tishler wrote:
> > What *exactly* does procmail.log indicate happened to the misfiled
> > messages?
>
> Attached is the entire procmail.log -- i.e., the log
> captures the file tested with "cat test.mbox | procmail -m
> e:/.procmailrc" (above), but does not register any of the
> incoming mail that is constantly arriving, which all simply
> goes to the default /var/spool/mail/tbaker.
See below...
On Wed, Oct 23, 2002 at 10:56:48AM +0200, Thomas Baker wrote:
> On Tue, Oct 22, 2002 at 08:14:52AM -0400, Jason Tishler wrote:
> > I would check the permissions of $PMDIR, $PMDIR/procmail.log, and
> > your entire $MAILDIR tree.
>
> [snip]
>
> $PMDIR:
> drwxr-xr-x 2 tbaker None 4096 Oct 23 10:44 e:/u/procmail
>
> Are these permissions set as they should be?
Is fetchmail running under the LocalSystem account? If so, then perform
the following:
chmod 777 e:/u/procmail
Can procmail write to e:/u/procmail/procmail.log when driven by
fetchmail now? If so, does it indicate why procmail can't write to your
mail folders?
If fetchmail is running under your account, then I'm at a loss to explain
your observed behavior.
Jason
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 6:10 ` Jason Tishler
@ 2002-10-23 7:10 ` Thomas Baker
2002-10-23 7:25 ` Jason Tishler
2002-10-23 7:31 ` Cygwin/Procmail stops working after setup.exe upgrade Greg Matheson
0 siblings, 2 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 7:10 UTC (permalink / raw)
To: cygwin
Jason,
> If fetchmail is running under your account, then I'm at a loss to explain
> your observed behavior.
I always start fetchmail by hand as "tbaker" (my account)
in a console window with the command "fetchmail --nodetach".
My .fetchmailrc says (using ***** to block out the names
and passwords):
| set daemon 10
| set logfile /cygdrive/e/u/config/fetchmail.log
| set invisible # suppress "Received:" line fetchmail adds
| set no bouncemail
| poll *******
| protocol: pop3
| username: ******
| password: ******
| nokeep
| fetchall
| # messages
| mda "/usr/bin/procmail -d %T" # pass message to the local MDA
This last line worked just fine for several months, until the
latest upgrade. The command executed is:
-rwxr-xr-x 1 tbaker None 61952 Aug 19 16:41 /usr/bin/procmail
> Is fetchmail running under the LocalSystem account? If so, then perform
> the following:
>
> chmod 777 e:/u/procmail
I don't think it is running under a LocalSystem account,
but I tried the above anyway and it did not work.
In short, fetchmail is fetching the mail but something seems
to be wrong with the handover to Procmail and everything
is simply landing in the default /var/spool/mail/tbaker.
I assume Procmail is not getting the mail at all because if it
were there should be some record of that in the procmail.log.
Moreover, I know that Procmail itself is working because
"procmail -m" successfully processed the recipes there and
recorded that success in the file procmail.log.
Tom
On Wed, Oct 23, 2002 at 08:25:23AM -0400, Jason Tishler wrote:
> On Wed, Oct 23, 2002 at 01:43:19PM +0200, Thomas Baker wrote:
> > On Wed, Oct 23, 2002 at 07:16:14AM -0400, Jason Tishler wrote:
> > > What *exactly* does procmail.log indicate happened to the misfiled
> > > messages?
> >
> > Attached is the entire procmail.log -- i.e., the log
> > captures the file tested with "cat test.mbox | procmail -m
> > e:/.procmailrc" (above), but does not register any of the
> > incoming mail that is constantly arriving, which all simply
> > goes to the default /var/spool/mail/tbaker.
>
> See below...
>
> On Wed, Oct 23, 2002 at 10:56:48AM +0200, Thomas Baker wrote:
> > On Tue, Oct 22, 2002 at 08:14:52AM -0400, Jason Tishler wrote:
> > > I would check the permissions of $PMDIR, $PMDIR/procmail.log, and
> > > your entire $MAILDIR tree.
> >
> > [snip]
> >
> > $PMDIR:
> > drwxr-xr-x 2 tbaker None 4096 Oct 23 10:44 e:/u/procmail
> >
> > Are these permissions set as they should be?
>
> Is fetchmail running under the LocalSystem account? If so, then perform
> the following:
>
> chmod 777 e:/u/procmail
>
> Can procmail write to e:/u/procmail/procmail.log when driven by
> fetchmail now? If so, does it indicate why procmail can't write to your
> mail folders?
>
> If fetchmail is running under your account, then I'm at a loss to explain
> your observed behavior.
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 7:10 ` Thomas Baker
@ 2002-10-23 7:25 ` Jason Tishler
2002-10-23 8:05 ` Thomas Baker
2002-10-23 7:31 ` Cygwin/Procmail stops working after setup.exe upgrade Greg Matheson
1 sibling, 1 reply; 30+ messages in thread
From: Jason Tishler @ 2002-10-23 7:25 UTC (permalink / raw)
To: cygwin, Thomas Baker
Tom,
On Wed, Oct 23, 2002 at 02:39:51PM +0200, Thomas Baker wrote:
> | mda "/usr/bin/procmail -d %T" # pass message to the local MDA
The above .fetchmailrc line invokes procmail differently than "procmail
-m". Since fetchmail is invoking procmail without the "-m" option,
procmail is looking for $HOME/.procmailrc. My WAG is that procmail
can't find your .procmailrc file. Hence, procmail defaults to sending
all messages to /var/spool/mail/tbaker without any logging. Note that
recent posts indicate an incorrect tbaker /etc/passwd entry.
Jason
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 7:25 ` Jason Tishler
@ 2002-10-23 8:05 ` Thomas Baker
2002-10-23 8:43 ` Bjoern Kahl AG Resy
` (2 more replies)
0 siblings, 3 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 8:05 UTC (permalink / raw)
To: cygwin
On Wed, Oct 23, 2002 at 09:02:39AM -0400, Jason Tishler wrote:
> On Wed, Oct 23, 2002 at 02:39:51PM +0200, Thomas Baker wrote:
> > | mda "/usr/bin/procmail -d %T" # pass message to the local MDA
>
> The above .fetchmailrc line invokes procmail differently than "procmail
> -m". Since fetchmail is invoking procmail without the "-m" option,
> procmail is looking for $HOME/.procmailrc. My WAG is that procmail
> can't find your .procmailrc file. Hence, procmail defaults to sending
> all messages to /var/spool/mail/tbaker without any logging. Note that
> recent posts indicate an incorrect tbaker /etc/passwd entry.
That's it!!!
I created the directory /home/tbaker and copied e:/.procmail
there, and suddenly everything works again!
Bjoern suggested I map /home/tbaker to /cygdrive/e with
"mount". Would this allow me to delete the redundant copy
/home/tbaker/.procmailrc and just use /cygdrive/e/.procmailrc?
Would this "mount" command go into my .bash_profile? (Any
particular flags to use?)
Many thanks!
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 8:05 ` Thomas Baker
@ 2002-10-23 8:43 ` Bjoern Kahl AG Resy
2002-10-23 9:07 ` Jason Tishler
2002-10-24 3:01 ` "mount" versus "ln" (was Re: Cygwin/Procmail stops working) Thomas Baker
2 siblings, 0 replies; 30+ messages in thread
From: Bjoern Kahl AG Resy @ 2002-10-23 8:43 UTC (permalink / raw)
To: Thomas Baker; +Cc: cygwin
Hallo Thomas!
On Wed, 23 Oct 2002, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 09:02:39AM -0400, Jason Tishler wrote:
> > On Wed, Oct 23, 2002 at 02:39:51PM +0200, Thomas Baker wrote:
> > > | mda "/usr/bin/procmail -d %T" # pass message to the local MDA
> >
> > The above .fetchmailrc line invokes procmail differently than "procmail
> > -m". Since fetchmail is invoking procmail without the "-m" option,
> > procmail is looking for $HOME/.procmailrc. My WAG is that procmail
> > can't find your .procmailrc file. Hence, procmail defaults to sending
> > all messages to /var/spool/mail/tbaker without any logging. Note that
> > recent posts indicate an incorrect tbaker /etc/passwd entry.
>
> That's it!!!
> Bjoern suggested I map /home/tbaker to /cygdrive/e with
> "mount". Would this allow me to delete the redundant copy
> /home/tbaker/.procmailrc and just use /cygdrive/e/.procmailrc?
> Would this "mount" command go into my .bash_profile? (Any
> particular flags to use?)
It depends :-)
I would suggest to run the mount-command only once in a bash
using the "-s" switch to the mount command. That way,
"/cygdrive/e" will be your cygwin-home dir (*not* install-dir,
just *your* (t.baker's) home-dir (if you are not familiar with
unix in general, I suggest to read a good introduction to any
unix or linux)) for all applications and all time.
With such a mounted hoem, you can delete the redundant copy.
(delete it before you create the mount.)
mounts using "-s" are stored in the registry, so they survive
reboots.
As a hint: "mount -s -b 'e:\' /home/tbaker" should work.
Please note the single-quotes, which prevent the shell from
playing games with the backslash. The "-b" forces a binary
mount. That stops cygwin from doing "crlf <-> lf" translations.
It is somewhat a mater of taste to use "-b" or not.
Have fun!
Bjoern Kahl
--
+---------------------------------------------------------------------+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de |
+---------------------------------------------------------------------+
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 8:05 ` Thomas Baker
2002-10-23 8:43 ` Bjoern Kahl AG Resy
@ 2002-10-23 9:07 ` Jason Tishler
2002-10-24 3:01 ` "mount" versus "ln" (was Re: Cygwin/Procmail stops working) Thomas Baker
2 siblings, 0 replies; 30+ messages in thread
From: Jason Tishler @ 2002-10-23 9:07 UTC (permalink / raw)
To: cygwin, Thomas Baker
Tom,
On Wed, Oct 23, 2002 at 04:07:16PM +0200, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 09:02:39AM -0400, Jason Tishler wrote:
> > The above .fetchmailrc line invokes procmail differently than
> > "procmail -m". Since fetchmail is invoking procmail without the
> > "-m" option, procmail is looking for $HOME/.procmailrc. My WAG is
> > that procmail can't find your .procmailrc file. Hence, procmail
> > defaults to sending all messages to /var/spool/mail/tbaker without
> > any logging. Note that recent posts indicate an incorrect tbaker
> > /etc/passwd entry.
>
> That's it!!!
>
> I created the directory /home/tbaker and copied e:/.procmail there,
> and suddenly everything works again!
I'm glad that you finally fixed your problem.
> Bjoern suggested I map /home/tbaker to /cygdrive/e with "mount".
The above is a very good suggestion, please follow it.
If you stick with your unconventional directory structure, then use the following:
$ mount -s -b e:/ /home/tbaker
However, IMO, a much more general and useful approach is the following:
$ mkdir X:/home
$ mount -s -b X:/home /home
where "X" is some drive letter.
Note that the above will work for all users not just tbaker.
> Would this allow me to delete the redundant copy
> /home/tbaker/.procmailrc and just use /cygdrive/e/.procmailrc?
Yes.
> Would this "mount" command go into my .bash_profile?
No, you just need to execute it once. Cygwin's mount table is persisted
in the Windows registry.
> (Any particular flags to use?)
See above.
Jason
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* "mount" versus "ln" (was Re: Cygwin/Procmail stops working)
2002-10-23 8:05 ` Thomas Baker
2002-10-23 8:43 ` Bjoern Kahl AG Resy
2002-10-23 9:07 ` Jason Tishler
@ 2002-10-24 3:01 ` Thomas Baker
2002-10-24 5:25 ` Thomas Baker
2 siblings, 1 reply; 30+ messages in thread
From: Thomas Baker @ 2002-10-24 3:01 UTC (permalink / raw)
To: cygwin
On Wed, Oct 23, 2002 at 04:07:16PM +0200, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 09:02:39AM -0400, Jason Tishler wrote:
> > On Wed, Oct 23, 2002 at 02:39:51PM +0200, Thomas Baker wrote:
> > > | mda "/usr/bin/procmail -d %T" # pass message to the local MDA
> >
> > The above .fetchmailrc line invokes procmail differently than "procmail
> > -m". Since fetchmail is invoking procmail without the "-m" option,
> > procmail is looking for $HOME/.procmailrc. My WAG is that procmail
> > can't find your .procmailrc file. Hence, procmail defaults to sending
> > all messages to /var/spool/mail/tbaker without any logging. Note that
> > recent posts indicate an incorrect tbaker /etc/passwd entry.
>
> That's it!!!
>
> I created the directory /home/tbaker and copied e:/.procmail
> there, and suddenly everything works again!
>
> Bjoern suggested I map /home/tbaker to /cygdrive/e with
> "mount". Would this allow me to delete the redundant copy
> /home/tbaker/.procmailrc and just use /cygdrive/e/.procmailrc?
> Would this "mount" command go into my .bash_profile? (Any
> particular flags to use?)
This solution reminded me that I had a
similar problem with Procmail before (see
http://sources.redhat.com/ml/cygwin/2002-06/msg00545.html)
which I solved by removing a subdirectory
/home/Administrator and recreating it as a
"simulink" to e:/ (as per Jason House's suggestion in
http://sources.redhat.com/ml/cygwin/2002-05/msg01882.html).
Unfortunately, my log book does not record exactly how I did
this, but in my best recollection, I believe I used "ln".
Bjoern has now suggested one could do this via "mount".
Are both approaches okay, or is one more advisable than
the other?
More generally, I'm wondering whether there should perhaps
be a note in the FAQ alerting users to the difference between
setting the value of HOME WIN2000-system-wide, as I do through
Control Panel -> System; as opposed to setting it in .bashrc;
as opposed to getting the value from /etc/passwd. I find
this confusing, though I'm relieved at least to know where
the problem resides.
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: "mount" versus "ln" (was Re: Cygwin/Procmail stops working)
2002-10-24 3:01 ` "mount" versus "ln" (was Re: Cygwin/Procmail stops working) Thomas Baker
@ 2002-10-24 5:25 ` Thomas Baker
0 siblings, 0 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-24 5:25 UTC (permalink / raw)
To: cygwin
Two previous posts actually answer this question, but I
didn't see them because Procmail quietly started doing its
job again (because the solution worked) and didn't arrive in
my mailbox...
Apologies, and many thanks,
Tom
On Thu, Oct 24, 2002 at 10:51:43AM +0200, Thomas Baker wrote:
> On Wed, Oct 23, 2002 at 04:07:16PM +0200, Thomas Baker wrote:
> > On Wed, Oct 23, 2002 at 09:02:39AM -0400, Jason Tishler wrote:
> > > On Wed, Oct 23, 2002 at 02:39:51PM +0200, Thomas Baker wrote:
> > > > | mda "/usr/bin/procmail -d %T" # pass message to the local MDA
> > >
> > > The above .fetchmailrc line invokes procmail differently than "procmail
> > > -m". Since fetchmail is invoking procmail without the "-m" option,
> > > procmail is looking for $HOME/.procmailrc. My WAG is that procmail
> > > can't find your .procmailrc file. Hence, procmail defaults to sending
> > > all messages to /var/spool/mail/tbaker without any logging. Note that
> > > recent posts indicate an incorrect tbaker /etc/passwd entry.
> >
> > That's it!!!
> >
> > I created the directory /home/tbaker and copied e:/.procmail
> > there, and suddenly everything works again!
> >
> > Bjoern suggested I map /home/tbaker to /cygdrive/e with
> > "mount". Would this allow me to delete the redundant copy
> > /home/tbaker/.procmailrc and just use /cygdrive/e/.procmailrc?
> > Would this "mount" command go into my .bash_profile? (Any
> > particular flags to use?)
>
> This solution reminded me that I had a
> similar problem with Procmail before (see
> http://sources.redhat.com/ml/cygwin/2002-06/msg00545.html)
> which I solved by removing a subdirectory
> /home/Administrator and recreating it as a
> "simulink" to e:/ (as per Jason House's suggestion in
> http://sources.redhat.com/ml/cygwin/2002-05/msg01882.html).
>
> Unfortunately, my log book does not record exactly how I did
> this, but in my best recollection, I believe I used "ln".
>
> Bjoern has now suggested one could do this via "mount".
>
> Are both approaches okay, or is one more advisable than
> the other?
>
> More generally, I'm wondering whether there should perhaps
> be a note in the FAQ alerting users to the difference between
> setting the value of HOME WIN2000-system-wide, as I do through
> Control Panel -> System; as opposed to setting it in .bashrc;
> as opposed to getting the value from /etc/passwd. I find
> this confusing, though I'm relieved at least to know where
> the problem resides.
>
> Tom
>
> --
> Dr. Thomas Baker Thomas.Baker@bi.fhg.de
> Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
> Fraunhofer-Gesellschaft work +49-30-8109-9027
> 53754 Sankt Augustin, Germany fax +49-2241-144-2352
>
> --
> 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/
>
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 7:10 ` Thomas Baker
2002-10-23 7:25 ` Jason Tishler
@ 2002-10-23 7:31 ` Greg Matheson
2002-10-23 8:07 ` Thomas Baker
1 sibling, 1 reply; 30+ messages in thread
From: Greg Matheson @ 2002-10-23 7:31 UTC (permalink / raw)
To: cygwin; +Cc: Thomas Baker
On Wed, 23 Oct 2002, Thomas Baker wrote:
> My .fetchmailrc says (using ***** to block out the names
> | mda "/usr/bin/procmail -d %T" # pass message to the local MDA
> This last line worked just fine for several months, until the
> latest upgrade. The command executed is:
> -rwxr-xr-x 1 tbaker None 61952 Aug 19 16:41 /usr/bin/procmail
The procmail man page says about the -d flag:
-d recipient ...
This turns on explicit delivery mode, delivery will
be to the local user recipient. This, of course,
only is possible if procmail has root privileges.
I wonder if the default ntsec setting means he doesn't have the
permissions to run procmail in this mode?
There is more about the permissions requirements for explicit
delivery mode in the man page. User has to be in /etc/passwd etc.
--
Greg Matheson If you're not making any mistakes,
Chinmin College you must be making some mistake.
Taiwan Penpals Archive <URL: http://penpals.chinmin.edu.tw/>
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Cygwin/Procmail stops working after setup.exe upgrade
2002-10-23 7:31 ` Cygwin/Procmail stops working after setup.exe upgrade Greg Matheson
@ 2002-10-23 8:07 ` Thomas Baker
0 siblings, 0 replies; 30+ messages in thread
From: Thomas Baker @ 2002-10-23 8:07 UTC (permalink / raw)
To: cygwin
On Wed, Oct 23, 2002 at 09:19:55PM +0800, Greg Matheson wrote:
> > This last line worked just fine for several months, until the
> > latest upgrade. The command executed is:
>
> > -rwxr-xr-x 1 tbaker None 61952 Aug 19 16:41 /usr/bin/procmail
>
> The procmail man page says about the -d flag:
>
> -d recipient ...
> This turns on explicit delivery mode, delivery will
> be to the local user recipient. This, of course,
> only is possible if procmail has root privileges.
>
> I wonder if the default ntsec setting means he doesn't have the
> permissions to run procmail in this mode?
It seems to work now -- perhaps because "tbaker" is part of the
Administrator group (it is just my own PC, not a group server).
> There is more about the permissions requirements for explicit
> delivery mode in the man page. User has to be in /etc/passwd etc.
Tom
--
Dr. Thomas Baker Thomas.Baker@bi.fhg.de
Institutszentrum Schloss Birlinghoven mobile +49-171-408-5784
Fraunhofer-Gesellschaft work +49-30-8109-9027
53754 Sankt Augustin, Germany fax +49-2241-144-2352
--
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/
^ permalink raw reply [flat|nested] 30+ messages in thread
end of thread, other threads:[~2002-10-24 11:22 UTC | newest]
Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-22 5:41 Cygwin/Procmail stops working after setup.exe upgrade Thomas Baker
2002-10-22 5:50 ` Jason Tishler
2002-10-23 2:21 ` Thomas Baker
2002-10-23 2:37 ` Olaf Foellinger
2002-10-23 2:39 ` Thomas Baker
2002-10-23 2:47 ` Olaf Foellinger
2002-10-22 6:56 ` Greg Matheson
2002-10-23 2:47 ` Thomas Baker
2002-10-23 2:53 ` Olaf Foellinger
2002-10-23 3:19 ` Thomas Baker
2002-10-23 3:47 ` Bjoern Kahl AG Resy
2002-10-23 4:11 ` Thomas Baker
2002-10-23 4:43 ` beginner Florian Litot
2002-10-23 5:58 ` beginner Andrew Ellerton
2002-10-23 4:51 ` Cygwin/Procmail stops working after setup.exe upgrade Bjoern Kahl AG Resy
2002-10-23 5:21 ` Jason Tishler
2002-10-23 3:15 ` Greg Matheson
2002-10-23 4:08 ` Thomas Baker
2002-10-23 5:35 ` Jason Tishler
2002-10-23 5:49 ` Thomas Baker
2002-10-23 6:10 ` Jason Tishler
2002-10-23 7:10 ` Thomas Baker
2002-10-23 7:25 ` Jason Tishler
2002-10-23 8:05 ` Thomas Baker
2002-10-23 8:43 ` Bjoern Kahl AG Resy
2002-10-23 9:07 ` Jason Tishler
2002-10-24 3:01 ` "mount" versus "ln" (was Re: Cygwin/Procmail stops working) Thomas Baker
2002-10-24 5:25 ` Thomas Baker
2002-10-23 7:31 ` Cygwin/Procmail stops working after setup.exe upgrade Greg Matheson
2002-10-23 8:07 ` Thomas Baker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).