On Wed, 12 Dec 2001, Alessandro Vesely wrote:

> Ok, I wrote a couple of pages describing that solution
> and the pieces of code used
> http://www.tana.it/sw/avfilter/
> 
> Meaningful comments will be appreciated

I don't want to be critical, but I have a few:

Don't be afraid to use external utilities.  Courier includes 'reformime' 
which can be used to list and extract MIME parts.  The code required to 
request parts from reformime will be smaller than a MIME parser, and keeps 
you from reinventing that wheel.

Know your libraries.  I notice that you're reimplimenting functions like 
vsnprintf, which is going to be available on most platforms, and 
implimenting functions like strincmp, when strncasecmp is available.  
Knowing what functions are available will again help you avoid reinventing 
the wheel.

In general, just keep things as simple as possible.

-- 
If I had a dollar for every brain that you don't have,
        I'd have one dollar. - Squidward to SpongeBob



_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to