Re: [BLACKBOX] DNS reverse name lookup

From: [at]} <Robert>
Date: Thu, 21 May 2009 18:35:36 +0100

----boundary-LibPST-iamunique-220483453_-_-
Content-type: text/plain

Aubrey

2) - Try this ?

Cheers

Robert



CONST
   bufBytes = 40;
VAR
   bufSize : INTEGER;
   computerShort : ARRAY [untagged] bufBytes OF SHORTCHAR;
   computerName : ARRAY bufBytes OF CHAR;
BEGIN
   bufSize := bufBytes;
   IF WinApi.GetComputerName (computerShort, bufSize) = WinApi.TRUE THEN
     computerName := LONG (computerShort)
   END;


Aubrey.McIntosh{([at]})nowhere.xy
> I have moved my SMTP email receiver from Bluebottle to Blackbox. It
> is connecting and receiving emails, and producing two files, a .RCP
> file and a .MSG file, that could be used for an SMTP mailbox delivery
> package. Overnight it received about 385 email that were forwarded
> from Google mail, and gave encouraging performance.
>
> It is not completely ported, however. There are at least 3 issues:
>
> 1. Do a reverse DNS name lookup. Anyone have a code snippet to do that?
> 2. Get the current machine's name.
> 3. Produce the current date in proper eMail format, set to GMT.
> Anyone have that?
> e.g. Thu, 21 May 2009 08:13:42 -0700 (PDT)
> 4. The procedure GetCh that delivers the next incoming character
> blocks. I haven't figured out a way around this. I would like ideas.
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.339 / Virus Database: 270.12.35/2124 - Release Date: 05/20/09 06:22:00
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-220483453_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW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0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tXHBhcg0KPiBccGFyDQo+IFxwYXINCj4gTm8gdmlydXMgZm91bmQgaW4g
dGhpcyBpbmNvbWluZyBtZXNzYWdlLlxwYXINCj4gQ2hlY2tlZCBieSBBVkcgLSB3d3cuYXZnLmNv
bSBccGFyDQo+IFZlcnNpb246IDguNS4zMzkgLyBWaXJ1cyBEYXRhYmFzZTogMjcwLjEyLjM1LzIx
MjQgLSBSZWxlYXNlIERhdGU6IDA1LzIwLzA5IDA2OjIyOjAwXHBhcg0KPiBccGFyDQpccGFyDQpc
cGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAi
U0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIfX0AQQAAAA==
----boundary-LibPST-iamunique-220483453_-_---
Received on Thu May 21 2009 - 19:35:36 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:47 UTC