Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Life would be so much easier if we could just look at the source code. -- Dave Olson


devel / comp.lang.xharbour / xharbour log system

SubjectAuthor
* xharbour log systemClaude R
`* Re: xharbour log systemEnrico Maria Giordano
 `* Re: xharbour log systemClaude R
  +- Re: xharbour log systemEnrico Maria Giordano
  +- Re: xharbour log systemEnrico Maria Giordano
  `* Re: xharbour log systemClaudio H
   `- Re: xharbour log systemClaude R

1
xharbour log system

<693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18625&group=comp.lang.xharbour#18625

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:6214:418d:b0:689:2fd6:6207 with SMTP id ld13-20020a056214418d00b006892fd66207mr121995qvb.4.1706372360953;
Sat, 27 Jan 2024 08:19:20 -0800 (PST)
X-Received: by 2002:a05:6808:3192:b0:3bd:ca91:6dd8 with SMTP id
cd18-20020a056808319200b003bdca916dd8mr68987oib.1.1706372360764; Sat, 27 Jan
2024 08:19:20 -0800 (PST)
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sat, 27 Jan 2024 08:19:20 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:7e8:c230:7300:5d30:f6ee:d031:c1ad;
posting-account=NRF61wkAAACKWuzJnXB5i2a_DLoVFQol
NNTP-Posting-Host: 2001:7e8:c230:7300:5d30:f6ee:d031:c1ad
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>
Subject: xharbour log system
From: flbblux@gmail.com (Claude R)
Injection-Date: Sat, 27 Jan 2024 16:19:20 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Claude R - Sat, 27 Jan 2024 16:19 UTC

Hello,
I used until now the integrated log system like this:
Init log Console(HB_LOG_INFO);
File( HB_LOG_WARNING, "Log_Chaine.txt",10000 );
Email (HB_LOG_ERROR , "Log","smtp.xx.xx","xxxxxx@xxx.xx","Error log","xxxxxxxx@xx.xx")
All infos are displayed in console.
All warnings are written to a file.
All important errors are directly sent to me by mail.

Now my smtp requires SSL/TLS with port 587, no other way...
I see no direct solution how to avoid to make bigger changes in my code, as I write already to a file. Two output files with different Error levels are not supported.

This would be something useful to implement. Or introduce SSL/TLS.
I have not the knowledge to implement this unfortunately.

best regards,
Claude

Re: xharbour log system

<up3fft$3fi1o$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18626&group=comp.lang.xharbour#18626

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: xharbour log system
Date: Sat, 27 Jan 2024 18:45:36 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <up3fft$3fi1o$1@dont-email.me>
References: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 27 Jan 2024 17:45:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e720e449cb7ac46a6141d6e9c58f48bb";
logging-data="3655736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qbO9VpNqWqY3qgpQ675TU"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rfMnoThDgRCSE+De6hMEyeuRfD8=
In-Reply-To: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>
Content-Language: it
 by: Enrico Maria Giordan - Sat, 27 Jan 2024 17:45 UTC

Il 27/01/2024 17:19, Claude R ha scritto:

> Now my smtp requires SSL/TLS with port 587, no other way...

You have just to use:

tipssl.lib
libssl.lib
libcrypto.lib

and the related DLLs:

libssl-3.dll
libcrypto-3.dll

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: xharbour log system

<ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18627&group=comp.lang.xharbour#18627

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:472b:b0:783:f827:126 with SMTP id bs43-20020a05620a472b00b00783f8270126mr15667qkb.13.1706443150751;
Sun, 28 Jan 2024 03:59:10 -0800 (PST)
X-Received: by 2002:a05:6820:1c8c:b0:599:9cbf:cfaa with SMTP id
ct12-20020a0568201c8c00b005999cbfcfaamr433939oob.0.1706443150499; Sun, 28 Jan
2024 03:59:10 -0800 (PST)
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Sun, 28 Jan 2024 03:59:10 -0800 (PST)
In-Reply-To: <up3fft$3fi1o$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:7e8:c230:7300:9c3e:8ac:f5b9:4837;
posting-account=NRF61wkAAACKWuzJnXB5i2a_DLoVFQol
NNTP-Posting-Host: 2001:7e8:c230:7300:9c3e:8ac:f5b9:4837
References: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com> <up3fft$3fi1o$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
Subject: Re: xharbour log system
From: flbblux@gmail.com (Claude R)
Injection-Date: Sun, 28 Jan 2024 11:59:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Claude R - Sun, 28 Jan 2024 11:59 UTC

Enrico,
actually I use last xhb commercial enterprise edition.
Parameters of email log channels are described as follows:
<nPrioMail> optional Numeric priority level of log channel
<cHelo> optional Character string sent with the HELO command of the SMTP protocol.
<cServer> required Character string specifying the mail server.
<cMailTo> required Character string specifying the mail address of the receipient.
<cSubject> optional Character string specifying the subject line of the eMail.
<cFrom> optional Character string specifying the mail address of the sender..

I don't see how to specify secure connection with authentification.
Using hb_sendmail, the following works for me:
hb_SendMail("smtp.xx.xx",587,"mymail@xx.xx", {"toaddress@xx.xx"},,, "Subject", "Body text",, "mymail@xx.xx", "password", "pop.xx.xx" , 3, .f. , .t., , , ,"mymail@xx.xx")

Now how to implement this in log channel, through HELO command ?

I downloaded latest Open SSL 3.2 32 bit version, and added tipssl.lib from commercial package, libssl.lib and libcrypto.lib
from OpenSSL VC MD versions. It compiled normally. libssl-3.dll and libcrypto-3.dll are in the program folder. But no mail does pass.
Now I suppose that authentification is missing.
Thank you for any help.
Claude

On Saturday, January 27, 2024 at 6:45:38 PM UTC+1, Enrico Maria Giordano wrote:
> Il 27/01/2024 17:19, Claude R ha scritto:
>
> > Now my smtp requires SSL/TLS with port 587, no other way...
> You have just to use:
>
> tipssl.lib
> libssl.lib
> libcrypto.lib
>
> and the related DLLs:
>
> libssl-3.dll
> libcrypto-3.dll
>
> --
> Enrico Maria Giordano
>
> http://www.emagsoftware.it
> http://www.emagsoftware.it/emgmusic
> http://www.emagsoftware.it/spectrum
> http://www.emagsoftware.it/tbosg

Re: xharbour log system

<up5l2u$3ud7s$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18628&group=comp.lang.xharbour#18628

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!news.samoylyk.net!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: xharbour log system
Date: Sun, 28 Jan 2024 14:33:19 +0100
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <up5l2u$3ud7s$1@dont-email.me>
References: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>
<up3fft$3fi1o$1@dont-email.me>
<ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 28 Jan 2024 13:33:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d884856936bab89f803cf3b5eadc08e7";
logging-data="4142332"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hhkLj9F8a0f+gQP+Uq5dt"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VWMvWk3f70MzM56n3CYFTR4UYB8=
In-Reply-To: <ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
Content-Language: it
 by: Enrico Maria Giordan - Sun, 28 Jan 2024 13:33 UTC

Il 28/01/2024 12:59, Claude R ha scritto:

> Enrico,
> actually I use last xhb commercial enterprise edition.
> Parameters of email log channels are described as follows:
> <nPrioMail> optional Numeric priority level of log channel
> <cHelo> optional Character string sent with the HELO command of the SMTP protocol.
> <cServer> required Character string specifying the mail server.
> <cMailTo> required Character string specifying the mail address of the receipient.
> <cSubject> optional Character string specifying the subject line of the eMail.
> <cFrom> optional Character string specifying the mail address of the sender.
>
> I don't see how to specify secure connection with authentification.
> Using hb_sendmail, the following works for me:
> hb_SendMail("smtp.xx.xx",587,"mymail@xx.xx", {"toaddress@xx.xx"},,, "Subject", "Body text",, "mymail@xx.xx", "password", "pop.xx.xx" , 3, .f. , .t., , , ,"mymail@xx.xx")
>
> Now how to implement this in log channel, through HELO command ?
>
> I downloaded latest Open SSL 3.2 32 bit version, and added tipssl.lib from commercial package, libssl.lib and libcrypto.lib
> from OpenSSL VC MD versions. It compiled normally. libssl-3.dll and libcrypto-3.dll are in the program folder. But no mail does pass.
> Now I suppose that authentification is missing.
> Thank you for any help.

Please provide a little but complete sample to test here.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: xharbour log system

<up5l3v$3ud7s$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18629&group=comp.lang.xharbour#18629

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: xharbour log system
Date: Sun, 28 Jan 2024 14:33:52 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <up5l3v$3ud7s$2@dont-email.me>
References: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>
<up3fft$3fi1o$1@dont-email.me>
<ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 28 Jan 2024 13:33:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d884856936bab89f803cf3b5eadc08e7";
logging-data="4142332"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/89UfW6h7dolnonF7Mxfwk"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9KqHLXSaojbiiHc5Nnw34e7bwHw=
Content-Language: it
In-Reply-To: <ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
 by: Enrico Maria Giordan - Sun, 28 Jan 2024 13:33 UTC

Il 28/01/2024 12:59, Claude R ha scritto:

> actually I use last xhb commercial enterprise edition.

I can't help you on xhb commercial, sorry.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: xharbour log system

<6cddd74c-cb5a-446d-a568-133a4593ffb3n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18630&group=comp.lang.xharbour#18630

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:4d0c:0:b0:684:cd98:34f4 with SMTP id l12-20020ad44d0c000000b00684cd9834f4mr178242qvl.9.1706549819578;
Mon, 29 Jan 2024 09:36:59 -0800 (PST)
X-Received: by 2002:aca:1c13:0:b0:3be:59f7:3142 with SMTP id
c19-20020aca1c13000000b003be59f73142mr54967oic.2.1706549819009; Mon, 29 Jan
2024 09:36:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 29 Jan 2024 09:36:58 -0800 (PST)
In-Reply-To: <ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=186.153.50.14; posting-account=aFBEXgoAAAB4yn7v61tkTYKSn_hA4pNO
NNTP-Posting-Host: 186.153.50.14
References: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>
<up3fft$3fi1o$1@dont-email.me> <ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6cddd74c-cb5a-446d-a568-133a4593ffb3n@googlegroups.com>
Subject: Re: xharbour log system
From: cherszage@gmail.com (Claudio H)
Injection-Date: Mon, 29 Jan 2024 17:36:59 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1416
 by: Claudio H - Mon, 29 Jan 2024 17:36 UTC

Claude

Read this thread, you'll find all necessary info to make it work with the un-updated last version of xhb.com:
https://groups.google.com/g/comp.lang.xharbour/c/ffZYASeiTJk/m/bjmCJaJ5BAAJ

Regards
Claudio H

Re: xharbour log system

<247f53f1-ff21-4e59-80cb-572f0090fa19n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18631&group=comp.lang.xharbour#18631

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:622a:148b:b0:42a:b319:f6ea with SMTP id t11-20020a05622a148b00b0042ab319f6eamr16822qtx.3.1706603047930;
Tue, 30 Jan 2024 00:24:07 -0800 (PST)
X-Received: by 2002:a05:6808:3316:b0:3be:9b30:e4da with SMTP id
ca22-20020a056808331600b003be9b30e4damr1816oib.9.1706603047676; Tue, 30 Jan
2024 00:24:07 -0800 (PST)
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 30 Jan 2024 00:24:07 -0800 (PST)
In-Reply-To: <6cddd74c-cb5a-446d-a568-133a4593ffb3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=185.106.27.203; posting-account=NRF61wkAAACKWuzJnXB5i2a_DLoVFQol
NNTP-Posting-Host: 185.106.27.203
References: <693ecfc4-5f92-442b-809d-08215c559111n@googlegroups.com>
<up3fft$3fi1o$1@dont-email.me> <ab09fbdf-b7b0-4a2f-9750-39e5d5f7bd5dn@googlegroups.com>
<6cddd74c-cb5a-446d-a568-133a4593ffb3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <247f53f1-ff21-4e59-80cb-572f0090fa19n@googlegroups.com>
Subject: Re: xharbour log system
From: flbblux@gmail.com (Claude R)
Injection-Date: Tue, 30 Jan 2024 08:24:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Claude R - Tue, 30 Jan 2024 08:24 UTC

Enrico and Claudio,
Thank you for your help.
I will study this in the next days.

Best regards,
Claude

On Monday, January 29, 2024 at 6:37:01 PM UTC+1, Claudio H wrote:
> Claude
>
> Read this thread, you'll find all necessary info to make it work with the un-updated last version of xhb.com:
> https://groups.google.com/g/comp.lang.xharbour/c/ffZYASeiTJk/m/bjmCJaJ5BAAJ
>
> Regards
> Claudio H

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor