Re: dos tosser and ifcico ..

Ask =?iso-8859-1?Q?Bj=F8rn?= Hansen (ask@netcetera.dk)
Thu, 28 Aug 1997 18:52:18 +0200

>> The in- and outbound directories are mounted on the tosser machine via
>> mars_nwe and a ipx client for dos.
>>
>> Fastecho writes does 'dos style line breaks', so ifcico can't find the
>> files in the *.?lo file.
>
>filelist.c *does* have the code to deal with DOS line breaks (line 187),
>though I cannot guarantee that it works. You can (1) make an `od -c'
>of the flo file, and (2) run ifcico with `-xl' flag and look into the
>debug log. And send both to me if you still do not understand why it
>happens (and diffs fixing the bug if you do :).
>

It's not the DOS line breaks theres the problem. ifmail puts some junk
chars on the filename.

I got the following patch from Alexander Krupp:

--- filelist.c Sat Apr 26 11:01:58 1997
+++ /tmp/filelist.c.patched Thu Aug 28 11:02:41 1997
@@ -198,9 +198,12 @@
(strncasecmp(p,dosoutbound,strlen(dosoutbound)) == 0))
{
strcpy(buf2,outbound);
- for (p+=strlen(dosoutbound),q=buf2+strlen(buf2);
- *p;p++,q++)
- *q=((*p) == '\\')?'/':tolower(*p);
+/* This section has been patched by Alexander Krupp, 28.08.97 */
+/* Original patch found somewhere on the ifmail-mailing-list */
+ strcat(buf2, "/" );
+ strcat(buf2,p+(strlen(dosoutbound)));
+ for (q=buf2;*q;q++)
+ *q=((*q) == '\\')?'/':tolower(*q);
p=buf2;
}
if ((q=strrchr(p,'/'))) q++;

He wrote: "This works for me, despite not being totally correct as
appending that "/" results in "//" when searching
the file. I will correct and test that later."

It works for me too. :-)

kind regards,

ask

---------------------------------------------------------------------
ask bjoern hansen - Netcetera - Finsensvej 80 - DK-2000 Frederiksberg
tlf 38 88 32 22 / 40 44 58 66 / 38 88 20 38 ext 341 - Fax 38 88 30 38
Webdesign, Webhotel, Mailhotel, UUCP & more! http://www.netcetera.dk/