9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: forsyth@plan9.cs.york.ac.uk forsyth@plan9.cs.york.ac.uk
Subject: minor change to smtpd.y (and yesterday)
Date: Fri, 27 May 1994 08:25:00 -0400	[thread overview]
Message-ID: <19940527122500.CmzX84ApyRSGEQ5FhwzA2dT_yeaAbOCfvvk9srViQvc@z> (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]





                 reply	other threads:[~1994-05-27 12:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19940527122500.CmzX84ApyRSGEQ5FhwzA2dT_yeaAbOCfvvk9srViQvc@z \
    --to=forsyth@plan9.cs.york.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).