]> SAFE projects GIT repository - jmp/mailleur/commitdiff
set 'links'=0 within table remotes when starting receiver
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 11 Jul 2025 14:30:07 +0000 (10:30 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 11 Jul 2025 14:30:07 +0000 (10:30 -0400)
Makefile.dbg
app/feeder.c
data-feed/feed05.tst
lib/gessql.c
lib/gessql.h
lib/lvleml.c

index 1c5e4cca6df19fbecc8a2f29666141a9d6a27c32..e667988ed0b08c83b8439a84f00c999069e0ed0c 100644 (file)
@@ -69,7 +69,7 @@ onefeed       :  debug
           @                                            \
                 bin/feeder                             \
                        -f                              \
-                       -d 9                            \
+                       -d 2                            \
                        -c ./conf/$(APPNAME).conf.dvl   \
                        $(TESTIP)                       \
                        $(TESTPORT)                     \
index 99a8c60a25e61f10b5dca1a2b941420b4bfdaeae..e040dfdc6087b59190dc097d2afdeca476e1f249 100644 (file)
@@ -609,7 +609,6 @@ while (proceed==true) {
         }
       break;
     case 3      :       //discarding comment
-      (void) rou_alert(0,"%s action='%c' line=<%s>",OPEP,action,line);
       switch (action) {
         case 'C'        :       //command to execute
           status=docommand(fd,numline,line);
index e60d8388e8daaca60f3db6f51df8ad087296fc60..58fdaa602d1d6ec34c99d103c422f68e81ae0a47 100644 (file)
@@ -4,7 +4,7 @@ C:CONNECT
 #====================================================
 R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
 S:helo example.com
-R:250 mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.127.0.25/No.Reverse]
+R:250 mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.127.99.25/No.Reverse]
 S:QUIT
 R:221 2.0.0 Bye, closing connection...
 #-------------------------------------------------------------------------
index 90e658b3934d6104d34b8e865def1481f24891a3..b0f8448add74d0edb08537a4e4c60600b51f44dd 100644 (file)
@@ -85,6 +85,19 @@ return isok;
 */
 /********************************************************/
 /*                                                      */
+/*     Procedure to set all remotes links value to zero*/
+/*                                                      */
+/********************************************************/
+PUBLIC void sql_droplinks(SQLPTR *sqlptr)
+
+{
+(void) sql_request(sqlptr,"update "RMTTBL" set links=0");
+}
+/*
+^L
+*/
+/********************************************************/
+/*                                                      */
 /*     Procedure to update the database with respond   */
 /*      Record associated with TRA.                     */
 /*      Return the number of record stored within the   */
index f73677341ae85229c6ff3c8d0849fa038d78a511..665d54a9947901896499dd8427a232560225bb61 100644 (file)
@@ -12,6 +12,9 @@
 #include        "unieml.h"
 #include        "devsql.h"
 
+//procedure to remove ALL link counts within the remotes tables
+extern void sql_droplinks(SQLPTR *sqlptr);
+
 //procedure to update transaction information
 extern int sql_update_tradb(SQLPTR *sqlptr,TRATYP **tralist);
 
index de17d152e1a1f641df7f3e64b5c56c903607f273..44c908518bb9c488fa1e67c7c1afae0c926e9696 100644 (file)
@@ -84,6 +84,7 @@ static CONTYP *freecontact(CONTYP *contact)
 
 if (contact!=(CONTYP *)0) {
   (void) freesessid(contact);
+  (void) sql_droplinks(contact->sqlptr);
   contact->sqlptr=sql_closesql(contact->sqlptr);
   contact->logptr=log_closelog(contact->logptr);
   contact->recipients=(RCPTYP **)rou_freelist((void **)contact->recipients,
@@ -2209,6 +2210,7 @@ while (proceed==true) {
         }
       break;
     case 2      :       //waiting from contact
+      (void) sql_droplinks(contact->sqlptr);
       if ((contact->socptr=soc_accept(socptr,pos))==(SOCPTR *)0) {
         (void) rou_alert(3,"%s Unable to open contact",OPEP);
         contact=freecontact(contact);