UUE decoder fix

This commit is contained in:
Alexander S. Aganichev 2002-10-20 19:42:11 +00:00
parent 26c5617ece
commit 542867d190
5 changed files with 30 additions and 15 deletions

View File

@ -12,6 +12,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________
- Fixed small bug in UUE decoder which prevents unsorted multipart UUE
from decoding.
- EchoAreaDefaults was not applied to the local areas. Fixed.
! Ctrl-R and Alt-Backspace in fields now toggles information between

View File

@ -44,10 +44,11 @@
#undef SMBEXPORT
#endif
#ifndef __FLAT__
#define __FLAT__ /* only supporting 32-bit targets now */
#endif
#ifdef _WIN32
#ifndef __FLAT__
#define __FLAT__
#endif
#ifdef __BORLANDC__
#define SMBCALL __stdcall
#else
@ -62,10 +63,7 @@
#else /* self-contained executable */
#define SMBEXPORT
#endif
#elif defined(__unix__) || defined(__GNUC__)
#ifndef __FLAT__
#define __FLAT__
#endif
#elif defined __unix__
#define SMBCALL
#define SMBEXPORT
#else
@ -133,9 +131,10 @@ SMBEXPORT int SMBCALL smb_incdat(smb_t* smb, ulong offset, ulong length, ushort
SMBEXPORT int SMBCALL smb_freemsg(smb_t* smb, smbmsg_t* msg);
SMBEXPORT int SMBCALL smb_freemsgdat(smb_t* smb, ulong offset, ulong length, ushort headers);
SMBEXPORT int SMBCALL smb_freemsghdr(smb_t* smb, ulong offset, ulong length);
SMBEXPORT void SMBCALL smb_freemsgtxt(char HUGE16* buf);
SMBEXPORT void SMBCALL smb_freemsgtxt(char* buf);
SMBEXPORT int SMBCALL smb_copymsgmem(smbmsg_t* destmsg, smbmsg_t* srcmsg);
SMBEXPORT char HUGE16* SMBCALL smb_getmsgtxt(smb_t* smb, smbmsg_t* msg, ulong mode);
SMBEXPORT char* SMBCALL smb_getmsgtxt(smb_t* smb, smbmsg_t* msg, ulong mode);
SMBEXPORT int SMBCALL smb_tzutc(short timezone);
/* FILE pointer I/O functions */

View File

@ -448,6 +448,7 @@ UUGetPartNo (char *subject, char **where, char **whend)
break;
}
#if 0 /* asa */
/*
* look for the string "part " followed by a number
*/
@ -487,6 +488,7 @@ UUGetPartNo (char *subject, char **where, char **whend)
}
}
}
#endif /* asa */
/*
* look for the string "part" followed by a number

View File

@ -688,13 +688,18 @@ ScanData (FILE *datei, char *fname, int *errcode,
* Detect a UUDeview-Style header
*/
if (_FP_strnicmp (line, "_=_ Part ", 9) == 0 &&
if ((_FP_strnicmp (line, "_=_ Part ", 9) == 0 ||
_FP_strnicmp (line, "section ", 8) == 0) &&
result->uudet != YENC_ENCODED) {
if (result->uudet) {
fseek (datei, oldposition, SEEK_SET);
break;
}
result->partno = atoi (line + 8);
if ((ptr = _FP_stristr (line, " of ")) != NULL) {
int maxpno = atoi (ptr + 4);
if(maxpno != 0) result->maxpno = maxpno;
}
if ((ptr = _FP_stristr (line, "of file ")) != NULL) {
ptr += 8;
while (isspace (*ptr)) ptr++;

View File

@ -1640,7 +1640,8 @@ ADDRESS 2:236/77@fidonet ; Node address with domain</eg>
See also:
</label>
<item>
<ref target=INTERNETGATE><kw/INTERNETGATE/</ref>
<ref target=INTERNETGATE><kw/INTERNETGATE/</ref>,
<ref target=NAMESFILE><kw/NAMESFILE/</ref>
</item>
<label>
Examples:
@ -2162,13 +2163,16 @@ APP OtherProg IRQ 5</eg>
<item>
<kw/AREA/ <ident>&lt;echoid&gt; &lt;<![ CDATA ["desc"]]>&gt;
&lt;msgbase&gt;&lsqb;type&rsqb; &lt;location&gt; &lsqb;akano&rsqb;
&lsqb;attrs&rsqb;</ident>
&lsqb;attrs&rsqb;</ident><lb>
<kw/AREA/ <ident>&lt;-FILE&gt; &lt;type&gt; &lsqb;path/file&rsqb;
&lsqb;switches&rsqb;</ident>
</item>
<label>
Description:
</label>
<item>
This keyword defines a mail area in <name>GoldED+</name>.
This <strong/obsolete/ keyword defines a mail area or external
area setup.
</item>
<label>
Parameters:
@ -2243,10 +2247,12 @@ APP OtherProg IRQ 5</eg>
</label>
<item>
It is recommended to use the newer
<ref target=AREADEF><kw>AREADEF</kw></ref> keyword, which allows more
<ref target=AREADEF><kw/AREADEF/</ref> keyword, which allows more
detailed mail area setup.<lb>
If more than one area defined to the same path or areatag then last
definition overrides previous ones.
definition overrides previous ones.<lb>
For the <ident/-FILE/ parameters see
<ref target=AREAFILE><kw/AREAFILE/</ref> keyword.
</item>
<label>
Processed by: