Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
b0e3c397
Commit
b0e3c397
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added support for -i (ignore CRC) option, to override duplicate msg checking.
parent
ce9ac97e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/smbutil.c
+6
-1
6 additions, 1 deletion
src/sbbs3/smbutil.c
with
6 additions
and
1 deletion
src/sbbs3/smbutil.c
+
6
−
1
View file @
b0e3c397
...
...
@@ -40,6 +40,7 @@ char revision[16];
char
compiler
[
32
];
#define NOANALYSIS (1L<<0)
#define NOCRC (1L<<1)
#ifdef __WATCOMC__
#define ffblk find_t
...
...
@@ -104,6 +105,7 @@ char *usage=
"opts:
\n
"
" c = create message base if it doesn't exist
\n
"
" a = always pack msg base (disable compression analysis)
\n
"
" i = ignore duplicate messages (do not store CRC)
\n
"
" d = use default values (no prompt) for to, from, and subject
\n
"
" t<s> = set 'to' user name for imported message
\n
"
" n<s> = set 'to' netmail address for imported message
\n
"
...
...
@@ -199,7 +201,7 @@ void postmsg(char type, char* to, char* to_number, char* to_address,
msg
.
hdr
.
when_written
.
zone
=
tzone
;
msg
.
hdr
.
when_imported
=
msg
.
hdr
.
when_written
;
if
(
smb
.
status
.
max_crcs
)
{
if
(
smb
.
status
.
max_crcs
&&
!
(
mode
&
NOCRC
)
)
{
crc
=
0xffffffffUL
;
for
(
l
=
0
;
l
<
msgtxtlen
;
l
++
)
crc
=
ucrc32
(
msgtxt
[
l
],
crc
);
...
...
@@ -1316,6 +1318,9 @@ int main(int argc, char **argv)
case
'A'
:
mode
|=
NOANALYSIS
;
break
;
case
'I'
:
mode
|=
NOCRC
;
break
;
case
'D'
:
to
=
"All"
;
from
=
"Sysop"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment