9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* minor change to smtpd.y (and yesterday)
@ 1994-05-27 12:25 forsyth
  0 siblings, 0 replies; only message in thread
From: forsyth @ 1994-05-27 12:25 UTC (permalink / raw)


yesterday i couldn't receive mail from 3mail.3com.com, since
smtpd rejected the `mail from:' as having a syntax error.
the grammar in /sys/src/cmd/upas/smtp/smtpd.y is taken directly from
RFC 821, but (it turns out) RFC 1123 section 2.1 makes a blanket change
to all applications regarding host name formats, thus requiring a change to
the rfc821 grammar (but without specifying the change).

here are some diffs; the line numbers might not agree -- i haven't
got the CDROM online at the moment.

cpu% diff `{yesterday -940501 smtpd.y} .
90,92c90,91
< name		: a			={ $$ = cat(&$1, 0, 0, 0, 0 ,0, 0); }
< 		| a ld-str		={ $$ = cat(&$1, &$2, 0, 0, 0 ,0, 0); }
< 		| a ldh-str ld-str	={ $$ = cat(&$1, &$2, &$3, 0, 0 ,0, 0); }
---
> name		: ld-str		={ $$ = cat(&$1, 0, 0, 0, 0 ,0, 0); }
> 		| let-dig ldh-str ld-str ={ $$ = cat(&$1, &$2, &$3, 0, 0 ,0, 0); }

when first doing that diff, i discovered that several of the diagnostics
in /rc/bin/yesterday are not sent to the standard error; here are the diffs for that:

term% diff `{yesterday /rc/bin/yesterday} .
76c76
< 		'is not a backup day'
---
> 		'is not a backup day' >[1=2]
82c82
< 	echo 'yesterday: can''t find directory'
---
> 	echo 'yesterday: can''t find directory' >[1=2]





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-05-27 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-05-27 12:25 minor change to smtpd.y (and yesterday) forsyth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).