Re: Zoe not fetching reclassified mesages from Popfile

Zoe <[email protected]> Mon, 15 Nov 2004 12:40:12 +0100
Newsgroups gmane.mail.zoe.general
Message-ID <[email protected]>
Hi Ming-Li, Julian,

On Nov 14, 2004, at 02:40, Ming-Li wrote:

> I would love to know if
> there's an easier way.

The issue here is that emails are supposedly immutable... which means  
that they shouldn't change... ever... and, in effect, reclassifying an  
email is equivalent to changing its content... this is the crux of the  
problem you are confronting...

As Julian has pointed out, ZOE looks at emails only once... this is  
done at two levels... first, ZOE checks with your mail server if it has  
already seen a message before even fetching it (by using the UIDL in  
the case of a POP server)... if the message looks new, ZOE will fetch  
its Message-ID to check if it already knows about it... then, and only  
then, will it process the message... in short, for a message to be  
process, it needs to have a new UID as well as a new Message-ID...

You can reset the UID store by deleting the content of  
"<ZOE>/Library/SZ/Storages/535A53746F7265/ 
alt.dev.szmail.SZServiceAgent/"... generating a new Message-ID will  
most likely involve resending the message somehow...

One way or another, presently there is no transparent way to process an  
identical message twice... perhaps a little "forget" method of some  
sort would come handy... alternatively, something like POPFile  
could/should provide a new UID as well as a new Message-ID if it needs  
to reclassify a message... the rational being that if a message content  
changes (in the case of POPFile, the X-Text-Classification value is  
different), it would make some sense to consider the message as new...

Cheers,

R.



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8