Discussion:
Sieve scripts execution for connected folders
kvaps
2018-10-09 10:57:48 UTC
Permalink
Hello,

I have shared folder which connected and subscribed in my mailbox, it
is looks like normal subfolder., but my sieve scripts not handle mail
inside it.

I want to set seen flag for new messages inside this folder
automatically by sieve script.
Is it possible for configure sieve-script working for connected folders too?

- kvaps
Nic Bernstein
2018-10-09 11:07:59 UTC
Permalink
Kvaps,
It is unclear from your message just where this "shared folder" is
rooted and where your sieve scripts are.  Do you mean a folder which is
outside of the "user" name space?  If so, you cannot manage message
delivery to this folder via user sieve scripts, but must use global
sieve scripts instead.

Please see the documentation here:
https://www.cyrusimap.org/imap/reference/admin/sieve.html#sieve-scripts-in-shared-folders

I hope this is helpful information,
    -nic
Post by kvaps
Hello,
I have shared folder which connected and subscribed in my mailbox, it
is looks like normal subfolder., but my sieve scripts not handle mail
inside it.
I want to set seen flag for new messages inside this folder
automatically by sieve script.
Is it possible for configure sieve-script working for connected folders too?
- kvaps
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Nic Bernstein ***@onlight.com
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/l
kvaps
2018-10-09 11:16:15 UTC
Permalink
Hi, thanks for quick answer,

Yes, I know about shared folder sieves, but I have aniother case:

Eg I have some users:

user/***@example.org
user/***@example.org
user/***@example.org

and shared folder

shared/***@example.org

This folder connected to all users and have no shared seen state.
I need to set seen flag automatically for user1, and keep second as unseen.

- kvaps
Post by Nic Bernstein
Kvaps,
It is unclear from your message just where this "shared folder" is
rooted and where your sieve scripts are. Do you mean a folder which is
outside of the "user" name space? If so, you cannot manage message
delivery to this folder via user sieve scripts, but must use global
sieve scripts instead.
https://www.cyrusimap.org/imap/reference/admin/sieve.html#sieve-scripts-in-shared-folders
I hope this is helpful information,
-nic
Post by kvaps
Hello,
I have shared folder which connected and subscribed in my mailbox, it
is looks like normal subfolder., but my sieve scripts not handle mail
inside it.
I want to set seen flag for new messages inside this folder
automatically by sieve script.
Is it possible for configure sieve-script working for connected folders too?
- kvaps
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
Nic Bernstein
2018-10-09 15:10:38 UTC
Permalink
Your use of the phrase "connected to all users" and, earlier, "connected
and subscribed", is confusing.  Am I correct to assume you mean the
folder is "subscribed" by all users?  There is no such thing asa
mailbox/folder being "connected" as a state.  It may be subscribed or
not, it may be connected to, by a client, but "connected" is not a
static condition.

Cyrus can support shared seen state, but it's also not clear, from your
messages, if you want shared seen state, or don't want it? Just what are
you trying to achieve?

Also, which version of Cyrus are you using?  Current is 3.0.8, historic
is 2.5.12, development is 3.1.X.

The rule with user sieve scripts is that they may only act on that
user's mailboxes, not on shared mailboxes which one is subscribed to. 
If you want to have new messages in a shared mailbox show as new for
each user, separately, then you need to disable shared seen.  This may
be done on the mailbox level, using the cyradm(8) command, with the
mboxcfg subcommand:

localhost>*info office*
{office}:
private:
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
expire: NIL
news2mail: NIL
sieve: NIL
squat: NIL
shared:
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
annotsize: 0
duplicatedeliver: false
expire: NIL
lastpop: NIL
lastupdate: 31-Jul-2018 09:59:20 -0500
news2mail: NIL
partition: default
pop3newuidl: true
pop3showafter: NIL
*sharedseen: false*
sieve: NIL
size: 4101
squat: NIL
synccrcs: 1118531081 0
uniqueid: 4c8f66f0-9f6a-4fa1-b8bf-547afa1ec5e8
localhost> mboxcfg office sharedseen true
localhost>*info office*
{office}:
private:
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
expire: NIL
news2mail: NIL
sieve: NIL
squat: NIL
shared:
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
annotsize: 0
duplicatedeliver: false
expire: NIL
lastpop: NIL
lastupdate: 9-Oct-2018 10:09:19 -0500
news2mail: NIL
partition: default
pop3newuidl: true
pop3showafter: NIL
*sharedseen: true*
sieve: NIL
size: 4101
squat: NIL
synccrcs: 1118531081 0
uniqueid: 4c8f66f0-9f6a-4fa1-b8bf-547afa1ec5e8

Is that what you're trying to achieve, changing the setting of Shared \Seen?

Cheers,
    -nic
Post by kvaps
Hi, thanks for quick answer,
and shared folder
This folder connected to all users and have no shared seen state.
I need to set seen flag automatically for user1, and keep second as unseen.
- kvaps
Post by Nic Bernstein
Kvaps,
It is unclear from your message just where this "shared folder" is
rooted and where your sieve scripts are. Do you mean a folder which is
outside of the "user" name space? If so, you cannot manage message
delivery to this folder via user sieve scripts, but must use global
sieve scripts instead.
https://www.cyrusimap.org/imap/reference/admin/sieve.html#sieve-scripts-in-shared-folders
I hope this is helpful information,
-nic
Post by kvaps
Hello,
I have shared folder which connected and subscribed in my mailbox, it
is looks like normal subfolder., but my sieve scripts not handle mail
inside it.
I want to set seen flag for new messages inside this folder
automatically by sieve script.
Is it possible for configure sieve-script working for connected folders too?
- kvaps
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
--
Nic Bernstein ***@onlight.com
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
kvaps
2018-10-09 19:13:35 UTC
Permalink
Sorry for confuse. I was little confused myself :)

Yes, my user and few other users subscribed to this shared folder.
Each user have own seen status for this folder - this is ok.
But folder is big and have new mails quite often.

Each user should react different mails in this mailbox.
For now I receive notifications for all new mails, this is really annoying.
I need notifications only for few of them, eg "mails with specific
word in subject", the rest should be marked as seen.
Usually this behavior can be configured via sieve script, but in case
with shared folders it is not working.
Global sieve script for shared folder will not work too, because it
changes global seen state, but state for each user.

Probably no way, as you said before.

- kvaps
Your use of the phrase "connected to all users" and, earlier, "connected and subscribed", is confusing. Am I correct to assume you mean the folder is "subscribed" by all users? There is no such thing asa mailbox/folder being "connected" as a state. It may be subscribed or not, it may be connected to, by a client, but "connected" is not a static condition.
Cyrus can support shared seen state, but it's also not clear, from your messages, if you want shared seen state, or don't want it? Just what are you trying to achieve?
Also, which version of Cyrus are you using? Current is 3.0.8, historic is 2.5.12, development is 3.1.X.
localhost> info office
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
expire: NIL
news2mail: NIL
sieve: NIL
squat: NIL
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
annotsize: 0
duplicatedeliver: false
expire: NIL
lastpop: NIL
lastupdate: 31-Jul-2018 09:59:20 -0500
news2mail: NIL
partition: default
pop3newuidl: true
pop3showafter: NIL
sharedseen: false
sieve: NIL
size: 4101
squat: NIL
synccrcs: 1118531081 0
uniqueid: 4c8f66f0-9f6a-4fa1-b8bf-547afa1ec5e8
localhost> mboxcfg office sharedseen true
localhost> info office
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
expire: NIL
news2mail: NIL
sieve: NIL
squat: NIL
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
annotsize: 0
duplicatedeliver: false
expire: NIL
lastpop: NIL
lastupdate: 9-Oct-2018 10:09:19 -0500
news2mail: NIL
partition: default
pop3newuidl: true
pop3showafter: NIL
sharedseen: true
sieve: NIL
size: 4101
squat: NIL
synccrcs: 1118531081 0
uniqueid: 4c8f66f0-9f6a-4fa1-b8bf-547afa1ec5e8
Is that what you're trying to achieve, changing the setting of Shared \Seen?
Cheers,
-nic
Hi, thanks for quick answer,
and shared folder
This folder connected to all users and have no shared seen state.
I need to set seen flag automatically for user1, and keep second as unseen.
- kvaps
Kvaps,
It is unclear from your message just where this "shared folder" is
rooted and where your sieve scripts are. Do you mean a folder which is
outside of the "user" name space? If so, you cannot manage message
delivery to this folder via user sieve scripts, but must use global
sieve scripts instead.
https://www.cyrusimap.org/imap/reference/admin/sieve.html#sieve-scripts-in-shared-folders
I hope this is helpful information,
-nic
Hello,
I have shared folder which connected and subscribed in my mailbox, it
is looks like normal subfolder., but my sieve scripts not handle mail
inside it.
I want to set seen flag for new messages inside this folder
automatically by sieve script.
Is it possible for configure sieve-script working for connected folders too?
- kvaps
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
--
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
kvaps
2018-10-09 19:17:45 UTC
Permalink
Yes, my version is 2.5.11-10.11.el7.kolab_16, and seems there is this
bug, so shared folder sieves not working there
https://github.com/cyrusimap/cyrus-imapd/issues/1453


- kvaps
Post by kvaps
Sorry for confuse. I was little confused myself :)
Yes, my user and few other users subscribed to this shared folder.
Each user have own seen status for this folder - this is ok.
But folder is big and have new mails quite often.
Each user should react different mails in this mailbox.
For now I receive notifications for all new mails, this is really annoying.
I need notifications only for few of them, eg "mails with specific
word in subject", the rest should be marked as seen.
Usually this behavior can be configured via sieve script, but in case
with shared folders it is not working.
Global sieve script for shared folder will not work too, because it
changes global seen state, but state for each user.
Probably no way, as you said before.
- kvaps
Your use of the phrase "connected to all users" and, earlier, "connected and subscribed", is confusing. Am I correct to assume you mean the folder is "subscribed" by all users? There is no such thing asa mailbox/folder being "connected" as a state. It may be subscribed or not, it may be connected to, by a client, but "connected" is not a static condition.
Cyrus can support shared seen state, but it's also not clear, from your messages, if you want shared seen state, or don't want it? Just what are you trying to achieve?
Also, which version of Cyrus are you using? Current is 3.0.8, historic is 2.5.12, development is 3.1.X.
localhost> info office
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
expire: NIL
news2mail: NIL
sieve: NIL
squat: NIL
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
annotsize: 0
duplicatedeliver: false
expire: NIL
lastpop: NIL
lastupdate: 31-Jul-2018 09:59:20 -0500
news2mail: NIL
partition: default
pop3newuidl: true
pop3showafter: NIL
sharedseen: false
sieve: NIL
size: 4101
squat: NIL
synccrcs: 1118531081 0
uniqueid: 4c8f66f0-9f6a-4fa1-b8bf-547afa1ec5e8
localhost> mboxcfg office sharedseen true
localhost> info office
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
expire: NIL
news2mail: NIL
sieve: NIL
squat: NIL
check: NIL
checkperiod: NIL
comment: NIL
sort: NIL
specialuse: NIL
thread: NIL
annotsize: 0
duplicatedeliver: false
expire: NIL
lastpop: NIL
lastupdate: 9-Oct-2018 10:09:19 -0500
news2mail: NIL
partition: default
pop3newuidl: true
pop3showafter: NIL
sharedseen: true
sieve: NIL
size: 4101
squat: NIL
synccrcs: 1118531081 0
uniqueid: 4c8f66f0-9f6a-4fa1-b8bf-547afa1ec5e8
Is that what you're trying to achieve, changing the setting of Shared \Seen?
Cheers,
-nic
Hi, thanks for quick answer,
and shared folder
This folder connected to all users and have no shared seen state.
I need to set seen flag automatically for user1, and keep second as unseen.
- kvaps
Kvaps,
It is unclear from your message just where this "shared folder" is
rooted and where your sieve scripts are. Do you mean a folder which is
outside of the "user" name space? If so, you cannot manage message
delivery to this folder via user sieve scripts, but must use global
sieve scripts instead.
https://www.cyrusimap.org/imap/reference/admin/sieve.html#sieve-scripts-in-shared-folders
I hope this is helpful information,
-nic
Hello,
I have shared folder which connected and subscribed in my mailbox, it
is looks like normal subfolder., but my sieve scripts not handle mail
inside it.
I want to set seen flag for new messages inside this folder
automatically by sieve script.
Is it possible for configure sieve-script working for connected folders too?
- kvaps
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
--
Onlight Inc. www.onlight.com
6525 W Bluemound Rd., Ste 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073 f. 414.290.0335
Loading...