a parting of ways [was: patch #4 - mdebug]
David Relson <[email protected]> Tue, 31 Dec 2002 11:16:36 -0500
| Newsgroups | gmane.mail.eps |
|---|---|
| Message-ID | <[email protected]> |
Matt, Thanks for writing. After spending several days working with eps and finding the going rather rough, I followed the lead of one of my bogofilter co-developers and fleshed out the mime processing framework he had started. The process reached a usable state several days ago, though details are still being worked out. One of the big differences is that multiple copies of the message do not need to be kept in memory. One copy is needed so that bogofilter can output the message with an added "X-Bogosity" header line. The mime processing and decoding can proceed "on the fly" as decoded outputs are only needed for building wordlists for classifying the message. Additionally, some chunks can simply be discarded, for example attachments (since they don't appear in the "readable" portion of the message). Lastly, some of the typedef work I did on eps needs to be revised. Having separate typedefs con_t, enc_t, dis_t, etc, but using the same values (0,1,2,3,etc) doesn't work because the function that returns the values doesn't distinguish which type is being returned. This leads to confusion later on since values like CON_MULTI and ENC_BASE64 (both numerically "2") can get confused. The solution is to have the enumerated symbols take on different value sets. For example, CON_xxx at 10,11,12 and ENC_xxx at 20,21,22,..., and DIS_xxx at 30,31,... works. Best wishes on the future of eps. Sincerely, David Relson