… | |
… | |
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 | |
60 | char * uuscan_id = "$Id: uuscan.c,v 1.3.2.2 2002/03/31 19:52:08 root Exp $"; |
60 | char * uuscan_id = "$Id: uuscan.c,v 1.3.2.3 2002/10/13 13:03:09 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. |
… | |
… | |
852 | /* |
852 | /* |
853 | * Detection for yEnc encoding |
853 | * Detection for yEnc encoding |
854 | */ |
854 | */ |
855 | |
855 | |
856 | if (strncmp (line, "=ybegin ", 8) == 0 && |
856 | if (strncmp (line, "=ybegin ", 8) == 0 && |
857 | _FP_strstr (line, " size=") != NULL && |
|
|
858 | _FP_strstr (line, " name=") != NULL) { |
857 | _FP_strstr (line, " name=") != NULL) { |
859 | if ((result->begin || result->end) && !uu_more_mime) { |
858 | if ((result->begin || result->end) && !uu_more_mime) { |
860 | fseek (datei, oldposition, SEEK_SET); |
859 | fseek (datei, oldposition, SEEK_SET); |
861 | break; |
860 | break; |
862 | } |
861 | } |
… | |
… | |
874 | |
873 | |
875 | /* |
874 | /* |
876 | * Determine size |
875 | * Determine size |
877 | */ |
876 | */ |
878 | |
877 | |
879 | ptr = _FP_strstr (line, " size=") + 6; |
878 | if ((ptr = _FP_strstr (line, " size=")) != NULL) { |
|
|
879 | ptr += 6; |
880 | yefilesize = atoi (ptr); |
880 | yefilesize = atoi (ptr); |
|
|
881 | } |
|
|
882 | else { |
|
|
883 | yefilesize = -1; |
|
|
884 | } |
881 | |
885 | |
882 | /* |
886 | /* |
883 | * check for multipart file and read =ypart line |
887 | * check for multipart file and read =ypart line |
884 | */ |
888 | */ |
885 | |
889 | |