Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 61661 invoked from network); 12 Oct 2005 16:45:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2005 16:45:12 -0000 Received: (qmail 435 invoked by uid 500); 12 Oct 2005 16:45:10 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 382 invoked by uid 500); 12 Oct 2005 16:45:10 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 364 invoked by uid 99); 12 Oct 2005 16:45:09 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 12 Oct 2005 09:45:09 -0700 Received: (qmail 61464 invoked by uid 65534); 12 Oct 2005 16:44:49 -0000 Message-ID: <20051012164449.61461.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r314961 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Date: Wed, 12 Oct 2005 16:44:49 -0000 To: cvs@httpd.apache.org From: jerenkrantz@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jerenkrantz Date: Wed Oct 12 09:44:45 2005 New Revision: 314961 URL: http://svn.apache.org/viewcvs?rev=314961&view=rev Log: If we didn't find a parseable or zero-length MIME part, don't adjust body_len. * mod_mbox_mime.c (mbox_mime_decode_multipart): If the body part is zero-length, don't touch. Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c?rev=314961&r1=314960&r2=314961&view=diff ============================================================================== --- httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c (original) +++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Wed Oct 12 09:44:45 2005 @@ -243,7 +243,7 @@ search = inbound + strlen(mail->boundary) + 1; - if (mail->sub[count-1]) { + if (mail->sub[count-1] && mail->sub[count-1]->body) { mail->sub[count-1]->body_len = inbound - mail->sub[count-1]->body - 2; } }