they fix imapd yet?

It is a modification to the the vm-pop3d that DA supplies, the change is is the extra.c module. You can save the following as vmpop3d.patch
Code:
--- extra.c.orig        2005-08-28 11:52:13.639790000 -0700
+++ extra.c     2005-08-29 18:57:30.427973000 -0700
@@ -322,8 +322,16 @@ int pop3_getsizes(void)
            }
            /* creating md5 hash for the UIDL using just first 25 lines */
            /* FiXMe: Should be only for header! -TEMHOTA */
-           if (line_count++ < 26 && len > 0)
-               md5_process_bytes(buf, len, &md5context);
+            if(strncmp(buf,"Status:",7) && 
+               strncmp(buf,"X-Status:",9) &&
+               strncmp(buf,"X-Keywords:",11) &&
+               strncmp(buf,"X-IMAP:",7) &&
+               strncmp(buf,"X-IMAPbase:",11) &&
+               strncmp(buf,"X-UID:",6)) {
+
+              if (line_count++ < 26 && len > 0)
+                  md5_process_bytes(buf, len, &md5context);
+            }
        }
 
        if (buf[0] == '\n')

Then cd to your da_vm-pop3d-1.1.7f directory and issue the command
Code:
patch -p0 < /path_to_patch/vmpop3d.patch
Then ./configure;make should build it. Then you can replace your existing vm-pop3d binary, like 'cp vm-pop3d /usr/sbin/vm-pop3d'.

If it solves the problem most people are having, then perhaps John could include this patch in the da_vm-pop3d distribution.
 
toml said:
If it solves the problem most people are having, then perhaps John could include this patch in the da_vm-pop3d distribution. [/B]

Is it possible ?


I tried to make change on extra.c but i'm too noob ... i didn't find any extra.c and only things I have in da_vm-pop3d is a RPM so .. Added this patch to the da_vm distribution is a real good idea :p lol
 
This is a patch to the source code. If you downloaded the src RPM, then you still need to extract the vm-popd3 source and apply the patch, then tar and gzip the source and replace the file /usr/src/redhat/SOURCE/ with the patched one, but src.RPM files really aren't good for making modifactions, unless you know what you are doing. If you downloaded this file then you could follow the instructions I gave.
 
the patch fails here.

Patching file extra.c using Plan A...
Hunk #1 failed at 322.
1 out of 1 hunks failed--saving rejects to extra.c.rej
done
 
contents of extra.c.rej

***************
*** 322,329 ****
}
/* creating md5 hash for the UIDL using just first 25 lines */
/* FiXMe: Should be only for header! -TEMHOTA */
- if (line_count++ < 26 && len > 0)
- md5_process_bytes(buf, len, &md5context);
}

if (buf[0] == '\n')
--- 322,337 ----
}
/* creating md5 hash for the UIDL using just first 25 lines */
/* FiXMe: Should be only for header! -TEMHOTA */
+ if(strncmp(buf,"Status:",7) &&
+ strncmp(buf,"X-Status:",9) &&
+ strncmp(buf,"X-Keywords:",11) &&
+ strncmp(buf,"X-IMAP:",7) &&
+ strncmp(buf,"X-IMAPbase:",11) &&
+ strncmp(buf,"X-UID:",6)) {
+
+ if (line_count++ < 26 && len > 0)
+ md5_process_bytes(buf, len, &md5context);
+ }
}

if (buf[0] == '\n')
 
I edited the changes manually and tried to compile but it failed as below.

gcc -c -DHAVE_CONFIG_H -ansi -g -O3 -W -Wall apop.c
gcc -c -DHAVE_CONFIG_H -ansi -g -O3 -W -Wall auth.c
gcc -c -DHAVE_CONFIG_H -ansi -g -O3 -W -Wall capa.c
gcc -c -DHAVE_CONFIG_H -ansi -g -O3 -W -Wall dele.c
gcc -c -DHAVE_CONFIG_H -ansi -g -O3 -W -Wall extra.c
extra.c: In function `pop3_getsizes':
extra.c:737: error: syntax error at end of input
extra.c:468: warning: unused variable `debg'
*** Error code 1

When I have more time I will try and get this to compile on bsd, it fails with gmake as well.
 
Oh yeah, I forgot, there are tabs in the original source, and that means they need to be in the patch file as well. That is why it failed to patch. I hate when coders put tabs in source code (even more when they use a weird tabstop), because it causes havoc when mixed with spaces.

I have attached the patch file, so it should down apply correctly. Here is exactly what I did on my system (CentOS 4.1) after downloading this patch to /usr/src/misc:
Code:
cd /usr/src/misc
wget [url]http://files.directadmin.com/services/da_vm-pop3d-1.1.7f.tar.gz[/url]
tar xvzf da_vm-pop3d-1.1.7f.tar.gz
patch -p0 < vmpop3d.patch
cd da_vm-pop3d-1.1.7f
./configure 
make
/etc/init.d/vm-pop3d stop
cp /usr/sbin/vm-pop3d /usr/sbin/vm-pop3d.orig
cp vm-pop3d /usr/sbin/vm-pop3d
/etc/init.d/vm-pop3d start
That worked for me.
 
Last edited:
Toml: you are a god. I swear my clients will be so happy.

on a side note you have a typo in your code.

it should read this


Code:
cd /usr/src/misc
wget [url]http://files.directadmin.com/servic...d-1.1.7f.tar.gz[/url]
tar xvzf da_vm-pop3d-1.1.7f.tar.gz
patch -p0 < vmpop3d.patch
cd da_vm-pop3d-1.1.7f
./configure 
make
/etc/init.d/vm-pop3d stop
cp /usr/sbin/vm-pop3d /usr/sbin/vm-pop3d.orig
cp vm-pop3d /usr/sbin/vm-pop3d
/etc/init.d/vm-pop3d start

(the second copy statement had 2x /usr)

thanks again man i don't know how i can thank you enough.

This works on Redhat es 3.0.

thank god!
 
Hi !

I just applied this patch and problem is not solved for me sniff. After some tests, the first and second time wasn't good. Emails seen via the webmail are downloaded again in Outlook.

:\
 
Last edited:
Titam said:
Hi !

I just applied this patch and problem is not solved for me sniff. After some tests, the first and second time wasn't good. Emails seen via the webmail are downloaded again in Outlook.

:\

Do you have access to the mail spool file(/var/mail/$user or /var/spool/virtual/$domain/$user)? If so, copy the file before it was read with webmail, then do a diff on it after it was read by webmail. What headers are different, if there is one different than the 6 you see in the patch, then it needs to be added as well. I am assuming that Outlook is setup to use POP3 as the protocol to retreive email.
 
My answer wasn't exact, in fact, the problem now happens only when a message, downloaded in Outlook isn't read IN outlook AND IN webmail.

If emails is read on oulook, no more pop for this email.

If you read a message in webmail, doesn't read before, and downloaded before in outlook, but not read, you pop again the same emails.

Sorry for my english, it's difficult to explain in other languages ...
 
What are your settings for the account in Outlook. Also, have you tried another email client instead of Outlook? It just might be an Outlook problem, I don't know, I really don't use Outlook or Outlook Express. I did my testing with Mozilla and it never redownloaded a messsage once it was downloaded.
 
I just configure normally, in advanced tab, i configure to keep on server until i delete it in outlook. that's all.

I will try my 'procedure to have a problem (lol)' with other email client.
 
Same things with Thunderbird ...

I'm becoming completly crazy lol ... in fact, my procedure doesn't work ... it's unpredicable.
Last test, i received for the third times an old emails .... :'(
 
Maybe I need to look a little closer at the protocol. I would still like to see the diff between a before and after of your mail spool file. Just to be sure that their aren't any headers I missed.
 
toml said:
Maybe I need to look a little closer at the protocol. I would still like to see the diff between a before and after of your mail spool file. .

I will try to find you one ^^
 
Example :

Before :
From [email protected] Mon Aug 29 12:37:40 2005
Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Mon, 29 Aug 2005 12:37:40 +0200
Received: from mail by serveur.hollinae.com with spam-scanned (Exim 4.52)
id 1E9h1H-0004PY-JH
for [email protected]; Mon, 29 Aug 2005 12:37:39 +0200
Received: from jbmc-software.com ([216.194.67.119])
by serveur.hollinae.com with esmtps (TLSv1:DES-CBC3-SHA:168)
(Exim 4.52)
id 1E9h1H-0004PR-3U
for [email protected]; Mon, 29 Aug 2005 12:37:39 +0200
Received: from apache by jbmc-software.com with local (Exim 4.50)
id 1E9gyH-0005Ip-BL
for [email protected]; Mon, 29 Aug 2005 04:34:33 -0600
To: [email protected]
Subject: Reply to post 'Horde 3.0.5'
From: "DirectAdmin Forums Mailer" <[email protected]>
Message-Id: <[email protected]>
Date: Mon, 29 Aug 2005 04:34:33 -0600
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on
serveur.hollinae.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham
version=3.0.3
Status: RO
X-Status:
X-Keywords:
X-UID: 6


After :

From [email protected] Mon Aug 29 12:37:40 2005
Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Mon, 29 Aug 2005 12:37:40 +0200
Received: from mail by serveur.hollinae.com with spam-scanned (Exim 4.52)
id 1E9h1H-0004PY-JH
for [email protected]; Mon, 29 Aug 2005 12:37:39 +0200
Received: from jbmc-software.com ([216.194.67.119])
by serveur.hollinae.com with esmtps (TLSv1:DES-CBC3-SHA:168)
(Exim 4.52)
id 1E9h1H-0004PR-3U
for [email protected]; Mon, 29 Aug 2005 12:37:39 +0200
Received: from apache by jbmc-software.com with local (Exim 4.50)
id 1E9gyH-0005Ip-BL
for [email protected]; Mon, 29 Aug 2005 04:34:33 -0600
To: [email protected]
Subject: Reply to post 'Horde 3.0.5'
From: "DirectAdmin Forums Mailer" <[email protected]>
Message-Id: <[email protected]>
Date: Mon, 29 Aug 2005 04:34:33 -0600
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on
serveur.hollinae.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham
version=3.0.3
Status: RO
X-Status:
X-Keywords:
X-UID: 5


But in don't see anything strange :\
 
Back
Top