TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Alan Ianson
from: andrew clarke
date: 2016-05-25 03:04:28
subject: pktinfo for everyone

23 May 16 13:27, you wrote to all:

 AI> Is it possible to have a pktinfo that doesn't depend on fido.config? I
 AI> have fidoconfig myself so it's not a problem for me, but for others who
 AI> don't use husky?

 AI> Is there an external utility maybe by perl or something to inspect pkt
 AI> files? I would like to have a utility that can tell me the version of
 AI> pkt that I have if there is such a thing.

Years ago I wrote this for Python 2.x.

I've only tested it with Type 2+ packets as that's the only packet type
anyone has ever sent me!

It will probably need modification for Type 2.2 and other uncommon packet types.

#!/usr/bin/env python

import sys, struct, glob

PROGRAM  = 'PyPktList'
VERSION  = '1.3'
WHO      = 'Andrew Clarke '
BACKWHEN = '2006'
WHEN     = '2016'

def show_usage():
  print PROGRAM + ' ' + VERSION
  print 'This program lists the contents of FidoNet Type 2 mail packet.'
  print
  print 'Usage: pktlist.py [pktfile ...]'
  print
  print 'Where pktfile is a file containing FidoNet Type 2 packed messages.'
  print 'Wildcards (eg. *.pkt) are allowed.'
  print
  print PROGRAM + ' was written by ' + WHO + ' in ' + BACKWHEN
  print 'and released to the public domain. Version ' + VERSION + ' was
released in ' + WHEN + '.'
  sys.exit(1)

class PktHdr:
  def __init__(self, fp):
    self.orignode = struct.unpack(' * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
SEEN-BY: 633/267 712/848
@PATH: 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.