[quote user="Paavo"]
It seems that Pegasus is using a separate imap sessions for each folder operation. As on the server side the number of sessions is usually limited (as also gmail limits this) then there seem to be a problem when the number of allowed sessions is exceeded. In my installation the mailer sometimes produces an error but in some instances it crashes.
Is there a way to set the limit inside the pmail config so that pmail will not be hitting the server limit? Just for info that we are talking about the 4.7 version of pmail but the same issue was also in older 4.63 version.
[/quote]
The IMAP protocol is such that you *have* to use a connection for each open folder - Pegasus Mail is no different here from any other IMAP mail client. But to be clear, it's only one session per open folder, not one session per operation (I would understand "operation" to mean deleting, opening, or moving a message, or any other single action on the content of a folder). As a result, the simplest way to limit the number of open connections to the server is to limit the number of open folders you have at any time. Since it's unusual to have lots and lots of folders open at once, I suspect this might actually be another problem that is manifesting as a session limit issue.
If you can capture a Pegasus Mail session log of a failed session, then I'd be happy to take a look at it - I should be able to tell you what the problem is and whether there's a workaround. Mail it to me offline at my normal address, David.Harris@pmail.gen.nz. Please only include the log for the failed session - I can't really wade through 100 logs trying to find the one that has the errors.
Cheers!
-- David --
<p>[quote user="Paavo"]</p><p>It seems that Pegasus is using a separate imap sessions for each folder operation. As on the server side the number of sessions is usually limited (as also gmail limits this) then there seem to be a problem when the number of allowed sessions is exceeded. In my installation the mailer sometimes produces an error but in some instances it crashes.
</p><p>Is there a way to set the limit inside the pmail config so that pmail will not be hitting the server limit? Just for info that we are talking about the 4.7 version of pmail but the same issue was also in older 4.63 version.
</p>[/quote]
The IMAP protocol is such that you *have* to use a connection for each open folder - Pegasus Mail is no different here from any other IMAP mail client. But to be clear, it's only one session per open folder, not one session per operation (I would understand "operation" to mean deleting, opening, or moving a message, or any other single action on the content of a folder). As a result, the simplest way to limit the number of open connections to the server is to limit the number of open folders you have at any time. Since it's unusual to have lots and lots of folders open at once, I suspect this might actually be another problem that is manifesting as a session limit issue.
If you can capture a Pegasus Mail session log of a failed session, then I'd be happy to take a look at it - I should be able to tell you what the problem is and whether there's a workaround. Mail it to me offline at my normal address, David.Harris@pmail.gen.nz. Please only include the log for the failed session - I can't really wade through 100 logs trying to find the one that has the errors.
Cheers!
-- David --