First off, I hope this is the right base for this.. Could someone please tell me what's wrong with this piece of code:
http://www.catch22bbs.com/imp-mail.pas
what is the error you are getting? when are you getting it? compiling? execution?
what is the error you are getting? when are you getting it?
compiling? execution?
It simply doesn't appear to do anything. The "writeln" in the source doesn't output anything. However, when I do a "strace ./imp-mail" it
does appear to.
does the index actually store the message's status (local, sent,
private, etc) or is that in the header file? i see that it reads the
index and looks to be checking the status there instead of from the header... if the message base operation is like others and the index is just an index, i suspect that you need to read the index, load the
header for the message the index is pointing to, then check the status
of the message and scan it out if needed after which the header would be rewritten with the scanned attribute being turned on and then move on to the next index position to read that number and load the next header... but that's just a guess as i'm not familiar with "imp" and can't recall what full name it may have...
does the index actually store the message's status (local, sent,
private, etc) or is that in the header file? i see that it reads the
index and looks to be checking the status there instead of from the
header... if the message base operation is like others and the index
is just an index, i suspect that you need to read the index, load the
header for the message the index is pointing to, then check the
status of the message and scan it out if needed after which the
header would be rewritten with the scanned attribute being turned on
and then move on to the next index position to read that number and
load the next header... but that's just a guess as i'm not familiar
with "imp" and can't recall what full name it may have...
You know, I have absolutely no idea.
I just want to know why the "writec" and "writeln" functions aren't working the way they should.
I shouldn't have to use strace to see them.
Any ideas? I love Impulse BBS. Which is why I ported it to Linux.
The next big obsticle is getting message replies working. Then I need
to get echomail working with it. Then i'm done, and can start using it
as my main BBS.
Thanks,
without the additional units and include files, the best i could do was
to make a guess... as i noted, the code looks good but if the code is wrong then it wouldn't do anything anyway... but then, with your next statement, i wonder about 16bit vs 32bit vs 64bit and the sizes of the binary number values you're trying to read... what OS was it originally written for? was it written in turbo borland pascal? which one? 6 or 7?? what compiler are you using now??
ahhh! ok, that gives me a little more to go on but i still need code to see what is or is not happening... do you have a repo available i can
fork and work with to try to assist you?? preferably on github but sourceforge is fine as i'm working on figuring out how to work with it
and other folk's repos so i can create merge requests for review and contribution back to the projects...
i hear ya there :)
you are quite welcome...
)\/(ark
without the additional units and include files, the best i could do
was to make a guess... as i noted, the code looks good but if the
code is wrong then it wouldn't do anything anyway... but then, with
your next statement, i wonder about 16bit vs 32bit vs 64bit and the
sizes of the binary number values you're trying to read... what OS
was it originally written for? was it written in turbo borland
pascal? which one? 6 or 7?? what compiler are you using now??
I believe it was written in Turbo Pascal. Not sure which version. It
was written for DOS, I know that for sure. I'm now using the Free
Pascal compiler to compile it. Something strange, it doesn't need the "-Mtp" switch to compile.
ahhh! ok, that gives me a little more to go on but i still need code
to see what is or is not happening... do you have a repo available i
can fork and work with to try to assist you?? preferably on github
but sourceforge is fine as i'm working on figuring out how to work
with it and other folk's repos so i can create merge requests for
review and contribution back to the projects...
Nope. No repo. :/ It would be nice if you could help out, though. I'd appreciate it a lot.
do you have the original code available still? it would be best to start
a repo with that and then we can update it with your current code and
then go from there... we can use github or sourceforge for the repo host... right now i prefer github because it is pretty easy to work with... sourceforge is a little tougher but both offer git repo
hosting...
do you have the original code available still? it would be best to
start a repo with that and then we can update it with your current
code and then go from there... we can use github or sourceforge for
the repo host... right now i prefer github because it is pretty easy
to work with... sourceforge is a little tougher but both offer git
repo hosting...
Yes, I have the original source. But, I'd much rather keep it private.
Ie, between me and you.
for now, if you want, you can email the original code as well as your modified version to my wkitty42 -at- gmail -dot- com address... if you have a problem, let me know and i can give you another address to try...
for now, if you want, you can email the original code as well as your
modified version to my wkitty42 -at- gmail -dot- com address... if
you have a problem, let me know and i can give you another address to
try...
Ok. It's sent. Let me know when you get it.
Thanks,
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,067 |
Nodes: | 17 (0 / 17) |
Uptime: | 16:45:53 |
Calls: | 501,255 |
Calls today: | 2 |
Files: | 109,409 |
D/L today: |
6,185 files (8,462M bytes) |
Messages: | 302,081 |
Posted today: | 1 |