mime_parser.c: updated some of the comments
authorArt Cancro <ajc@citadel.org>
Thu, 4 May 2006 18:12:08 +0000 (18:12 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 4 May 2006 18:12:08 +0000 (18:12 +0000)
citadel/mime_parser.c

index 572e627aaef8a05c4276a34f2667433299eaf0c1..baad219e041092be8ada7f3d148f7c88ca63624a 100644 (file)
@@ -3,8 +3,8 @@
  *
  * This is the MIME parser for Citadel.
  *
- * Copyright (c) 1998-2005 by Art Cancro
- * This code is distributed under the terms of the GNU General Public License.
+ * Copyright (c) 1998-2006 by Art Cancro
+ * This code is distributed under the GNU General Public License v2.
  *
  */
 
@@ -192,10 +192,12 @@ void mime_decode(char *partnum,
                return;
        }
        
+       /* Fail silently if we hit an unknown encoding. */
        if ((strcasecmp(encoding, "base64"))
            && (strcasecmp(encoding, "quoted-printable"))) {
                return;
        }
+
        /*
         * Allocate a buffer for the decoded data.  The output buffer is slightly
         * larger than the input buffer; this assumes that the decoded data