I have a mail provider which allows me to upload sieve scripts to it. I would like to find out if it's possible to use sieve to make mailing lists subscriptions feel more like web based forums - where I get notifications (emails to my mailbox) just for new messages in threads I have replied to / I was mentioned in / I started my self.
To be more specific, the sieve script should check if a given message is part of a thread I have any affiliation with - just as described above.
From reading sieve scripts examples and the only source of reference I could find, it seems there is no way to get information related to 'threads'. I've wrote an imapfilter script that did pretty much what I'd like to do with sieve but even with this tool, it was completely nontrivial to get a list of all messages in a thread just by a single message.
Is it even possible to read previously received messages with the sieve standard?