ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/uuscan.c
(Generate patch)

Comparing Convert-UUlib/uulib/uuscan.c (file contents):
Revision 1.2 by root, Mon Jun 11 20:42:38 2001 UTC vs.
Revision 1.3 by root, Tue Aug 7 13:38:38 2001 UTC

55#include <uudeview.h> 55#include <uudeview.h>
56#include <uuint.h> 56#include <uuint.h>
57#include <fptools.h> 57#include <fptools.h>
58#include <uustring.h> 58#include <uustring.h>
59 59
60char * uuscan_id = "$Id: uuscan.c,v 1.2 2001/06/11 20:42:38 root Exp $"; 60char * uuscan_id = "$Id: uuscan.c,v 1.3 2001/08/07 13:38:38 root Exp $";
61 61
62/* 62/*
63 * Header fields we recognize as such. See RFC822. We add "From ", 63 * Header fields we recognize as such. See RFC822. We add "From ",
64 * the usual marker for a beginning of a new message, and a couple 64 * the usual marker for a beginning of a new message, and a couple
65 * of usual MDA, News and MIME headers. 65 * of usual MDA, News and MIME headers.
2304 * If this file has been nicely MIME so far, then be very suspicious 2304 * If this file has been nicely MIME so far, then be very suspicious
2305 * if ScanData reports anything else. So do a double check, and if 2305 * if ScanData reports anything else. So do a double check, and if
2306 * it doesn't hold up, handle as plain text instead. 2306 * it doesn't hold up, handle as plain text instead.
2307 */ 2307 */
2308 2308
2309 if (sstate.ismime && sstate.mimestate == MS_SUBPART &&
2309 if (strcmp (localenv.mimevers, "1.0") == 0 && 2310 strcmp (localenv.mimevers, "1.0") == 0 &&
2310 FP_stristr (localenv.ctype, "text") != NULL && 2311 FP_stristr (localenv.ctype, "text") != NULL &&
2311 sstate.ismime && sstate.mimestate == MS_SUBPART &&
2312 !uu_desperate) { 2312 !uu_desperate) {
2313 if (result->uudet == UU_ENCODED && !(result->begin || result->end)) { 2313 if (result->uudet == UU_ENCODED && !(result->begin || result->end)) {
2314 result->uudet = 0; 2314 result->uudet = 0;
2315 } 2315 }
2316 } 2316 }
2918 ptr1 = line+2; 2918 ptr1 = line+2;
2919 while (*ptr1 && !isspace(*ptr1)) 2919 while (*ptr1 && !isspace(*ptr1))
2920 ptr1++; 2920 ptr1++;
2921 *ptr1 = '\0'; 2921 *ptr1 = '\0';
2922 2922
2923 sstate.envelope.mimevers = FP_strdup ("1.0");
2923 sstate.envelope.boundary = FP_strdup (line+2); 2924 sstate.envelope.boundary = FP_strdup (line+2);
2924 2925
2925 /* 2926 /*
2926 * need restart 2927 * need restart
2927 */ 2928 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines