[Dovecot] MUA notifications on new mail in a new folder?
If deliver gets run with a non-root userid like this: < | deliver -m path/to/NEWmaildir >, I wonder, is a connected IMAP MUA automatically notified, that the new message has arrived in the new folder? As I see from some experiments with Thunderbird, it has no problems with immediate notifications of new mail in previously existing folders, however, it has problems with the case of new folder.
On 20.1.2010, at 22.53, Kārlis Repsons wrote:
If deliver gets run with a non-root userid like this: < | deliver -m path/to/NEWmaildir >,
-m gets a mailbox name parameter, not a directory path.
I wonder, is a connected IMAP MUA automatically notified, that the new message has arrived in the new folder? As I see from some experiments with Thunderbird, it has no problems with immediate notifications of new mail in previously existing folders, however, it has problems with the case of new folder.
Correct. But this is more of a client and/or IMAP protocol problem. Nothing Dovecot can do about it.
On Wednesday 20 January 2010 20:59:58 Timo Sirainen wrote:
On 20.1.2010, at 22.53, Kārlis Repsons wrote:
I wonder, is a connected IMAP MUA automatically notified, that the new message has arrived in the new folder? As I see from some experiments with Thunderbird, it has no problems with immediate notifications of new mail in previously existing folders, however, it has problems with the case of new folder.
Correct. What exactly? Does a MUA gets notified about both the new folder and mail?
But this is more of a client and/or IMAP protocol problem. Nothing Dovecot can do about it. Could you, please, explain why can it be a protocol problem?
On 20.1.2010, at 23.17, Kārlis Repsons wrote:
What exactly? Does a MUA gets notified about both the new folder and mail?
But this is more of a client and/or IMAP protocol problem. Nothing Dovecot can do about it. Could you, please, explain why can it be a protocol problem?
In IMAP a single connection can select a single folder. When it has selected the folder, it gets notifications about changes to that one specific folder. When it issues IDLE command, it gets those notifications immediately.
There are no automatic notifications about changes to non-selected folders. There are two ways clients can get these:
a) They'll create n connections to select n folders and issue IDLE command for them. This won't work if there are a lot of folders. For example Dovecot limits the number of connections/ip to 10.
b) They'll issue STATUS commands to ask for folder state every n minutes.
Typically it seems to be a combination of a) and b). There is a NOTIFY extension that supports notifying changes to non-selected folders, but there are very close to zero servers and clients supporting it. Dovecot will, some day..
On Wednesday 20 January 2010 21:29:37 Timo Sirainen wrote:
On 20.1.2010, at 23.17, Kārlis Repsons wrote:
What exactly? Does a MUA gets notified about both the new folder and mail?
But this is more of a client and/or IMAP protocol problem. Nothing Dovecot can do about it.
Could you, please, explain why can it be a protocol problem?
In IMAP a single connection can select a single folder. When it has selected the folder, it gets notifications about changes to that one specific folder. When it issues IDLE command, it gets those notifications immediately.
There are no automatic notifications about changes to non-selected folders. There are two ways clients can get these:
a) They'll create n connections to select n folders and issue IDLE command for them. This won't work if there are a lot of folders. For example Dovecot limits the number of connections/ip to 10.
b) They'll issue STATUS commands to ask for folder state every n minutes.
Typically it seems to be a combination of a) and b). There is a NOTIFY extension that supports notifying changes to non-selected folders, but there are very close to zero servers and clients supporting it. Dovecot will, some day.. Thanks!
participants (2)
-
Kārlis Repsons
-
Timo Sirainen