Synchronet v3.17b-Win32 (install) has been released (Jan-2019).

New Synchronet YouTube channel

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
util:pktdump [2020/03/18 19:07]
wkitty42 [scripted example] clean up and some rewording
util:pktdump [2020/03/18 22:52] (current)
wkitty42 [scripting examples] more generic
Line 9: Line 9:
  
 ===== scripting examples ===== ===== scripting examples =====
-At one point in time, I had a lot of pkts that got abandoned ​due to misconfiguration of my mailer. ​This misconfiguration resulted in the mailer not being able to access the pkt files but it could access the BSO .?lo files. When it found it could not access ​the pkts listed ​in the flo file, it deleted the flo file resulting in the pkts being abandonedSince I didn't want that mail to be lost, I wrote some oneliners that use pktdump to retrieve the destination addresses from the pkts and create new flo files for them.+It is possible for pkts to be abandoned ​when a mailer ​deletes ​.flo files without sending ​the pkts listed ​inside ​it. If you don't want that mail to be lost, you can use some oneliners that use pktdump to retrieve the destination addresses from the pkts and create new .flo files for them.
  
-First run through all the pkts and output a list of destination addresses+First run through all the pkts and output a list of destination addresses.
 <​code>​ <​code>​
 # make a list of pkt destination addresses # make a list of pkt destination addresses
Line 30: Line 30:
 </​code>​ </​code>​
  
-Now that we have moved the pkts, lets create a flo file with them for the destination address. Put the destination system'​s net in place of $DESTNET and its node in place of $DESTNODE.+Now that we have moved the pkts, lets create a .flo file with them for the destination address. Put the destination system'​s net number ​in place of $DESTNET and its node number ​in place of $DESTNODE.
 <​code>​ <​code>​
 # create a flo file with the pkts # create a flo file with the pkts
Line 38: Line 38:
 </​code>​ </​code>​
  
-The above can be done a bit better by not moving the pkts to the tmp directory first but this works fine with some manual work added. Once the flo file is created, it is a simple matter ​manually ​to copy/move it to the proper outbound directory and wait for the mailer to transit and delete the pkts listed in it before handling the next system in the list of destinations.+The above can be done a bit better by not moving the pkts to the tmp directory first but this works fine with some manual work added. Once the .flo file is created, it is a simple matter to manually ​move it to the proper outbound directory and wait for the mailer to transit and delete the pkts listed in it before handling the next system in the list of destinations.
  
-I've not yet spent more time to fix it up into a proper script that doesn'​t need to move the files at all plus there should be some .bsy file creation to prevent the tosser and mailer from jumping ​the gun while the pkts are moved and the flo is created.+The above can be fixed up into a proper script that doesn'​t need to move the files at all. There should be some .bsy file creation to prevent the tosser and mailer from trying to process mail for the same system you are working with while the pkts are processed ​and the .flo file is created.
  
-These example oneliners helped ​me to recover several thousand pkts that were abandoned ​over night on my hub system.+These example oneliners helped ​a least one hub system ​to recover several thousand pkts that were abandoned ​due to a problem accessing them.
  
 ===== See Also ===== ===== See Also =====

In Other Languages