Hi.

I had a need to use pop to retrieve messages left in a subfolder of a
Maildir. I wrote a patch to the pop3d program in 0.38, and had no problems
for aobut a year... now after upgrading some of my servers I'm moving over
those users - I whip out my trusty patch and BANG - it doesn't apply, so I
go and create SIMILAR mods to the new file, and it doesn't work...

Does someone who knows more about the inner workings of this program have
ANY insight as to what I've missed?

Originally I had this patch:

--- pop3dserver.c.ORIGINAL      Thu Mar  6 20:26:48 2003
+++ pop3dserver.c       Thu Mar  6 20:29:12 2003
@@ -114,7 +114,7 @@
 struct dirent *de;
 struct msglist *m;

-       if ((dirp=opendir("cur")) == 0)
+       if ((dirp=opendir(".POP3/cur")) == 0)
        {
                perror("pop3d");
                return;
@@ -597,7 +597,7 @@

 static void purgetmp()
 {
-DIR    *p=opendir("tmp");
+DIR    *p=opendir(".POP3/tmp");
 time_t t;
 struct dirent *de;
 struct stat    stat_buf;
@@ -622,7 +622,7 @@

 static void scannew()
 {
-DIR    *p=opendir("new");
+DIR    *p=opendir(".POP3/new");
 struct dirent *de;
 char   *n, *o;

Which worked FINE!

After the upgrade to 44.2 I edited it to this:

--- pop3dserver.c.ORIGINAL      Mon Feb  9 07:51:48 2004
+++ pop3dserver.c       Mon Feb  9 07:55:30 2004
@@ -332,7 +332,7 @@
 struct dirent *de;
 struct msglist *m;

-       if ((dirp=opendir("cur")) == 0)
+       if ((dirp=opendir(".POP3/cur")) == 0)
        {
                perror("pop3d");
                return;
@@ -922,7 +922,7 @@

 static void purgetmp()
 {
-DIR    *p=opendir("tmp");
+DIR    *p=opendir(".POP3/tmp");
 time_t t;
 struct dirent *de;
 struct stat    stat_buf;

The check of the new folder seems missing. Not sure what changed or how, but
my new patch seems to connect fine to an EMPTY mailbox, but returns the
error:

        if (!f)
        {
                printf("-ERR Can't open the message file - it's gone!\r\n");
                fflush(stdout);
                return;
        }

So obviously something has changed...

Any ideas?!?!? PLEASE and thanks...

m/



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to