I'm posting this here to make the information available to others that may be having this problem. Please let me know if there's a better place for it, or [admins] please feel free to move it to the appropriate place.
I've had the exact same behavior, with Pegasus Mail running on WinXP client machines, and the shared files on a Samba 3.0 server (Suse Linux). (This is Samba-specific, not Suse or Linux specific.)
Rather than entirely turning off opportunistic locking (oplocks) on either the client machines or the server, I turned off oplocks only for the PMail share, and then only for the problematic file extensions. Oplocks usually speed things up; in this case, however, they do slow things down a lot!
Step 1: Ensure you have a completely separate "share" on the Samba server, only for PMail and/or Mercury. This is not strictly necessary, but it's a good idea.
Step 2: Assuming the share is called "pmail", edit the server's smb.conf file and add the following lines to the [pmail] section. (If the share is a different name, change the corresponding appropriate section!)
<tt>[pmail]<br> veto oplock files = /*.CNM/*.MBX/*.PM/*.PM?/*.PN?/*.cnm/*.mbx/*.pm/*.pm?/*.pn?/*.pm?/*.pn?/<br> # "veto oplocks" speeds up Pegasus Mail on Win32 A LOT. PM falls back to hard locks<br> # and amazingly, it's faster! We use the veto list and keep oplocks active, because<br> # other apps may need them and it might be faster for them.<br></tt>
Step 2b: If the server and all clients are on a reliable LAN, add the following line to the [global] section...
<tt>[global]<br> socket options = IPTOS_LOWDELAY TCP_NODELAY<br></tt>
Step 3: Save the smb.conf file and exit the editor.
Step 4: Ensure all client machines and all users are disconnected from the server, and that no files or shares are open via Samba (SMB, CIFS, etc.). (If you don't do this, users will lose data during Step 5!)
Step 5: Shutdown and restart the smb and nmb services (i.e. smbd and nmbd). Or just reboot the server.
Step 6: When it comes back up, test Pegasus Mail from a client machine, of course using the network share. Message moves and deletions should now be fast, regardless of the client's oplock settings.
<p>I'm posting this here to make the information available to others that may be having this problem.&nbsp; Please let me know if there's a better place for it, or [admins] please feel free to move it to the appropriate place.</p>
<p>I've had the exact same behavior, with Pegasus Mail running on WinXP client machines, and the shared files on a Samba 3.0 server (Suse Linux).&nbsp; (This is Samba-specific, not Suse or Linux specific.)</p>
<p>Rather than entirely turning off opportunistic locking (oplocks) on either the client machines or the server, I turned off oplocks <b><i>only</i></b> for the PMail share, and then <i><b>only</b></i> for the problematic file extensions.&nbsp; Oplocks <i>usually</i> speed things up; in this case, however, they do slow things down a <i>lot!</i></p>
<p>Step 1: Ensure you have a completely separate "share" on the Samba server, <i>only</i> for PMail and/or Mercury.&nbsp; This is not strictly necessary, but it's a good idea.</p>
<p>Step 2: Assuming the share is called "pmail", edit the server's <b>smb.conf</b> file and <u>add</u> the following lines to the [pmail] section.&nbsp; (If the share is a different name, change the corresponding appropriate section!)
</p>
<blockquote>
<pre><tt>[pmail]
veto oplock files = /*.CNM/*.MBX/*.PM/*.PM?/*.PN?/*.cnm/*.mbx/*.pm/*.pm?/*.pn?/*.pm?/*.pn?/
# "veto oplocks" speeds up Pegasus Mail on Win32 A LOT. PM falls back to hard locks
# and amazingly, it's faster! We use the veto list and keep oplocks active, because
# other apps may need them and it might be faster for them.
</tt></pre></blockquote>
<p>Step 2b: If the server and all clients are on a reliable LAN, <u>add</u> the following line to the [global] section...</p>
<blockquote>
<pre><tt>[global]
socket options = IPTOS_LOWDELAY TCP_NODELAY
</tt></pre></blockquote>
<p>Step 3: Save the <b>smb.conf</b> file and exit the editor.
</p><p>Step 4: Ensure all client machines and all users are disconnected from the server, and that no files or shares are open via Samba (SMB, CIFS, etc.).&nbsp; (If you don't do this, users will lose data during Step 5!)&nbsp; </p><p>Step 5: Shutdown and restart the <b>smb </b>and <b>nmb </b>services (i.e. <b>smbd </b>and <b>nmbd</b>).&nbsp; Or just reboot the server.
</p>
<p>Step 6: When it comes back up, test Pegasus Mail from a client machine, of course using the network share.&nbsp; Message moves and deletions should now be fast, regardless of the client's oplock settings.</p>
<p>
</p>