Hello,
I want to run a script when the user move an email to the Junk folder.
In postfix this is possible with Sieve scripts.
Is this possible in ME?
run a script when a user move an email with IMAP
-
- Posts: 2
- Joined: Fri Nov 17, 2023 3:10 pm
-
- Site Admin
- Posts: 1097
- Joined: Mon Jun 10, 2002 6:31 pm
- Location: Melbourne, Victoria, Australia
Re: run a script when a user move an email with IMAP
Sorry, there is not a way to do this on the server.
-
- Posts: 2
- Joined: Fri Nov 17, 2023 3:10 pm
Re: run a script when a user move an email with IMAP
Thanks for your reply.
Suppose I have an external program that does this.
Suppose I have a postoffice with name 'myspamham' and one mailbox with name 'spamham' that has two folders: 'ham' and 'spam'.
If this external program copies .MAI files to the two folders, how can these emails be read through IMAP?
I have made a test and removed _index.xml file but I can see that email only with the web interface, not with IMAP connection.
Suppose I have an external program that does this.
Suppose I have a postoffice with name 'myspamham' and one mailbox with name 'spamham' that has two folders: 'ham' and 'spam'.
If this external program copies .MAI files to the two folders, how can these emails be read through IMAP?
I have made a test and removed _index.xml file but I can see that email only with the web interface, not with IMAP connection.
-
- Site Admin
- Posts: 1097
- Joined: Mon Jun 10, 2002 6:31 pm
- Location: Melbourne, Victoria, Australia
Re: run a script when a user move an email with IMAP
If you add or change a file in the filesystem, you should create a file called _change.dty in that folder. This will instruct the services to update the index file. You don't want to delete the index file since it contains message flags and other things that will be lost if deleted.