Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter break when directory structure changes #5123

Open
rcubetrac opened this issue Oct 28, 2014 · 3 comments
Open

Filter break when directory structure changes #5123

rcubetrac opened this issue Oct 28, 2014 · 3 comments

Comments

@rcubetrac
Copy link

Reported by Ryuno Ki on 28 Oct 2014 12:43 UTC as Trac ticket #1490123

== Steps to reproduce ==

  1. Set up some directories, say dirA containing dirB and dirC (dirA and dirC on the same level).
  2. Filter email by any criteria into dirB.
  3. Change parent of dirB from dirA to dirC.

== Expected behaviour ==

Emails now still go to dirB. Options -> Filter show dirB as child of dirC.

== Actual behaviour ==

Email stay in inbox. Looking into Options -> Filter still show dirB as child of dirA.

== Additional notes ==

I'm using RoundCube through skyice's openmailbox.

Keywords: Filter, directory
Migrated-From: http://trac.roundcube.net/ticket/1490123

@rcubetrac
Copy link
Author

Comment by @alecpl on 28 Oct 2014 13:04 UTC

Well, if you move the folder in Roundcube we could update filters automatically. However, if you move the folder using another client we can't update filters. Also, in Sieve it is allowed to use non-existing folders.

@rcubetrac
Copy link
Author

Comment by Ryuno Ki on 11 Nov 2014 23:26 UTC

I was using imapfilter (a tool written in Lua).

Can you reproduce my issue?

@rcubetrac
Copy link
Author

Comment by @alecpl on 12 Nov 2014 12:38 UTC

Sure. I understand it is an inconvenience. However, you need to be aware of the fact that Sieve filters and IMAP folders are two separate parts of the system. Scripts aren't updated automatically when you change folders structure in IMAP. As stated previously we could update scripts if you do folder changes in Roundcube, but if you use another IMAP client scripts might be not updated.

What is mail delivery behaviour when scripts point to non-existing folder might be implementation dependent. E.g. some servers will auto-create the folder. There's also sieve extension for this.

To the point, your request is valid, but keep in mind that doing script update on folder rename does not solve this problem globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant