UUE decoder fix
This commit is contained in:
parent
26c5617ece
commit
542867d190
@ -12,6 +12,9 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
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.
|
- EchoAreaDefaults was not applied to the local areas. Fixed.
|
||||||
|
|
||||||
! Ctrl-R and Alt-Backspace in fields now toggles information between
|
! Ctrl-R and Alt-Backspace in fields now toggles information between
|
||||||
|
@ -44,10 +44,11 @@
|
|||||||
#undef SMBEXPORT
|
#undef SMBEXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __FLAT__
|
||||||
|
#define __FLAT__ /* only supporting 32-bit targets now */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifndef __FLAT__
|
|
||||||
#define __FLAT__
|
|
||||||
#endif
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#define SMBCALL __stdcall
|
#define SMBCALL __stdcall
|
||||||
#else
|
#else
|
||||||
@ -62,10 +63,7 @@
|
|||||||
#else /* self-contained executable */
|
#else /* self-contained executable */
|
||||||
#define SMBEXPORT
|
#define SMBEXPORT
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__unix__) || defined(__GNUC__)
|
#elif defined __unix__
|
||||||
#ifndef __FLAT__
|
|
||||||
#define __FLAT__
|
|
||||||
#endif
|
|
||||||
#define SMBCALL
|
#define SMBCALL
|
||||||
#define SMBEXPORT
|
#define SMBEXPORT
|
||||||
#else
|
#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_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_freemsgdat(smb_t* smb, ulong offset, ulong length, ushort headers);
|
||||||
SMBEXPORT int SMBCALL smb_freemsghdr(smb_t* smb, ulong offset, ulong length);
|
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 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 */
|
/* FILE pointer I/O functions */
|
||||||
|
|
||||||
|
@ -448,6 +448,7 @@ UUGetPartNo (char *subject, char **where, char **whend)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* asa */
|
||||||
/*
|
/*
|
||||||
* look for the string "part " followed by a number
|
* 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
|
* look for the string "part" followed by a number
|
||||||
|
@ -688,13 +688,18 @@ ScanData (FILE *datei, char *fname, int *errcode,
|
|||||||
* Detect a UUDeview-Style header
|
* 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) {
|
result->uudet != YENC_ENCODED) {
|
||||||
if (result->uudet) {
|
if (result->uudet) {
|
||||||
fseek (datei, oldposition, SEEK_SET);
|
fseek (datei, oldposition, SEEK_SET);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
result->partno = atoi (line + 8);
|
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) {
|
if ((ptr = _FP_stristr (line, "of file ")) != NULL) {
|
||||||
ptr += 8;
|
ptr += 8;
|
||||||
while (isspace (*ptr)) ptr++;
|
while (isspace (*ptr)) ptr++;
|
||||||
|
@ -1640,7 +1640,8 @@ ADDRESS 2:236/77@fidonet ; Node address with domain</eg>
|
|||||||
See also:
|
See also:
|
||||||
</label>
|
</label>
|
||||||
<item>
|
<item>
|
||||||
<ref target=INTERNETGATE><kw/INTERNETGATE/</ref>
|
<ref target=INTERNETGATE><kw/INTERNETGATE/</ref>,
|
||||||
|
<ref target=NAMESFILE><kw/NAMESFILE/</ref>
|
||||||
</item>
|
</item>
|
||||||
<label>
|
<label>
|
||||||
Examples:
|
Examples:
|
||||||
@ -2162,13 +2163,16 @@ APP OtherProg IRQ 5</eg>
|
|||||||
<item>
|
<item>
|
||||||
<kw/AREA/ <ident><echoid> <<![ CDATA ["desc"]]>>
|
<kw/AREA/ <ident><echoid> <<![ CDATA ["desc"]]>>
|
||||||
<msgbase>[type] <location> [akano]
|
<msgbase>[type] <location> [akano]
|
||||||
[attrs]</ident>
|
[attrs]</ident><lb>
|
||||||
|
<kw/AREA/ <ident><-FILE> <type> [path/file]
|
||||||
|
[switches]</ident>
|
||||||
</item>
|
</item>
|
||||||
<label>
|
<label>
|
||||||
Description:
|
Description:
|
||||||
</label>
|
</label>
|
||||||
<item>
|
<item>
|
||||||
This keyword defines a mail area in <name>GoldED+</name>.
|
This <strong/obsolete/ keyword defines a mail area or external
|
||||||
|
area setup.
|
||||||
</item>
|
</item>
|
||||||
<label>
|
<label>
|
||||||
Parameters:
|
Parameters:
|
||||||
@ -2243,10 +2247,12 @@ APP OtherProg IRQ 5</eg>
|
|||||||
</label>
|
</label>
|
||||||
<item>
|
<item>
|
||||||
It is recommended to use the newer
|
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>
|
detailed mail area setup.<lb>
|
||||||
If more than one area defined to the same path or areatag then last
|
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>
|
</item>
|
||||||
<label>
|
<label>
|
||||||
Processed by:
|
Processed by:
|
||||||
|
Reference in New Issue
Block a user