+2004-09-30 Helge Hess <helge.hess@skyrix.com>
+
+ * NGMime: fixed OGo buf #936 (v4.3.182)
+
2004-09-29 Helge Hess <helge.hess@skyrix.com>
* NGImap4: minor improvements (v4.3.181)
+2004-09-30 Helge Hess <helge.hess@skyrix.com>
+
+ * NGMimePartParser.m: fixed an issue with unlimited length parsing,
+ fixes OGo bug #936 (v4.3.182)
+
2004-09-21 Marcus Mueller <znek@mulle-kybernetik.com>
* NGMime.xcode: Fixed dependencies to resemble the make process
/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#ifndef __NGMime_NGMimePartParser_H__
#define __NGMime_NGMimePartParser_H__
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "NGMimePartParser.h"
#include "NGMimeBodyParser.h"
NGIOReadMethodType readBytes = NULL;
NSData *rbody;
NSMutableData *body;
-
int bufCnt;
char buf[self->bufLen];
void (*appendBytes)(id,SEL,const void *,unsigned);
BOOL decodeBase64;
-
+
*(&readBytes) = NULL;
if ([self->source respondsToSelector:@selector(methodForSelector:)]) {
decodeBase64 = NO;
appendBytes = (void(*)(id,SEL,const void *, unsigned))
[body methodForSelector:@selector(appendBytes:length:)];
-
+
NS_DURING {
while (YES) {
NSException *e;
[localException raise];
}
NS_ENDHANDLER;
- if (bufCnt > 0) {
+ if (bufCnt > 0 && bufCnt != NGStreamError) {
appendBytes(body, @selector(appendBytes:length:), buf, bufCnt);
bufCnt = 0;
}
-# $Id$
+# version file
MAJOR_VERSION:=4
MINOR_VERSION:=3
-SUBMINOR_VERSION:=181
+SUBMINOR_VERSION:=182
# v4.2.149 requires libNGStreams v4.2.34