Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Are you police officers?" "No, ma'am. We're musicians." -- The Blues Brothers


dovenet / Synchronet Programming / src/smblib/smbstr.c

SubjectAuthor
o src/smblib/smbstr.cRob Swindell (on Debian Linux)

1
src/smblib/smbstr.c

<64006844.46680.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=681&group=DOVE-Net.Synchronet_Programming#681

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: rob.swindell.(on.debian.linux)@VERT (Rob Swindell (on Debian Linux))
To: Git commit to main/sbbs/master
Subject: src/smblib/smbstr.c
Message-ID: <64006844.46680.syncprog@vert.synchro.net>
Date: Wed, 1 Mar 2023 18:11:32 -0800
X-Comment-To: Git commit to main/sbbs/master
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/0edce2af4 Feb 28 2023 GCC 12.2.0
X-FTN-MSGID: 46680.syncprog@1:103/705 2866549c
X-FTN-CHRS: CP437 2
WhenImported: 20230302011132-0800 41e0
WhenExported: 20230302041811-0800 41e0
ExportedFrom: VERT syncprog 46680
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Rob Swindell (on Deb - Thu, 2 Mar 2023 02:11 UTC

https://gitlab.synchro.net/main/sbbs/-/commit/1ad07164bb3a4da28086ec3b
Modified Files:
src/smblib/smbstr.c
Log Message:
Better automatic network address type detection

smb_netaddr_type():
- if passed NULL or a string that begins with whitespace, now returns NET_NONE.
- if passed a string that begins with '@', now returns NET_UNKNOWN.
- if the user.name portion of an otherwise value Internet email address
contains a space, now returns NET_NONE.

smb_get_net_type_by_addr()
- if passed a string that begins with '@', now returns NET_UNKNOWN.
- if passed a string with space following '@', will now return NET_UNKNOWN.
- if passed a string without a dot following '@', will never return NET_INTERNET.

Unrelated change: Add the missing FILE attribute to smb_msgattrstr()

---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net


dovenet / Synchronet Programming / src/smblib/smbstr.c

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor