The correct place to do it is in the MTA. Doing it in the MTA means you get the trash out before anything else has a chance to bounce it back, log it, store it, or whatever.
Which doesn't mean I would be against a good patch for Cyrus, but I would rather the MTAs started either fixing or rejecting all such crap worldwide. If exim, sendmail and postfix rejected broken messages, that would be enough to make it impossible to tolerate for the users of NUL-generating crap.
Maybe *ideally* it needs to be fixed by the MTA. However, just casually following this list and the postfix-users list, whenever the issue of NUL characters have come up, it has always been centered around Cyrus. I know that there are folks using Postfix with other IMAP servers, and never once have I noticed this topic in relation to these systems. As best as I can recall, it has always been in relation to Cyrus.
So, my take on this is that while it may be *ideally* better dealt with by the MTA, perhaps *practically* it is more productive to remedy the software that is bitching the most about it. It certainly would cut down on the frequency that this issue comes up on this list....
a
--- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html