From: eas@phx.mcd.mot.COM (Eric Sunderland)
Newsgroups: gnu.emacs.bug
Subject: Bug report: problem with fakemail on certain addresses
Date: 26 Jan 1993 22:23:25 -0500
Organization: GNUs Not Usenet
Distribution: gnu

Hi,

  I'd like to report a bug in fakemail when
sending mail in Mail mode to a email address of
the form "User Name <userid@domain.name>".

---- description of problem/procedures for inducing it ----

  On a system with sendmail installed as /usr/ucblib/sendmail.
Start emacs with:

emacs -q

Procedure 1)

Start mail mode with: `C-x m'

Type at To: line in mail mode: `Any Body <anyb@where.com> C-c C-c'

emacs prints in the minibuffer:

   Sending...done

Mail will never be sent to anyb@where.com and no return message
indicating that the user doesn't exist arrives.  The syslogd
file for sendmail does not show that the message was ever recieved
by sendmail.

Procedure 2)

Type: `ESC ESC SPC (setq mail-interactive t) RTN'

Start mail mode with: `C-x m'

Type at To: line in mail mode: `Any Body <anyb@where.com> C-c C-c'

emacs prints in the minibuffer:

Sending...filed to UX:sh (sh): ERROR: sh: Syntax error at line 1: `end of file 

Procedure 3)

Type: `ESC ESC SPC sendmail-program'

emacs prints in the minibuffer:

"fakemail"

If you start emacs with:

truss -fao /tmp/e emacs -q

  and follow procedure 2 then the following shows
up in the truss output log:

10155:  execve("/usr/tools/local/contrib/GNU/emacs/etc/fakemail", 0x000D8BD0, 0x00113710)  argc = 7
10155:   argv: -oi -t -f eas -oem -odb

and:

10157:  execve("/sbin/sh", 0x000488B0, 0xEFFFE634)  argc = 3
10157:   argv: -c /bin/mail  Any Body <anyb@where.com>

If you start emacs with:

emacs -q

then type: `ESC ESC SPC (setq debug-on-error t) RTN'

and follow procedure 2, then the contents of the
backtrace buffer is:

---- start of backtrace buffer ----
Signalling: (error "Sending...failed to UX:sh (sh): ERROR: sh: Syntax error at line 1: `end of file' unexpected; ")
  signal(error ("Sending...failed to UX:sh (sh): ERROR: sh: Syntax error at line 1: `end of file' unexpected; "))
  byte-code("@
  error("Sending...failed to %s" "UX:sh (sh): ERROR: sh: Syntax error at line 1: `end of file' unexpected; ")
  byte-code("	\n
  sendmail-send-it()
  funcall(sendmail-send-it)
  byte-code("ABC!D!EA!F BG!" [send-mail-function nil message "Sending..." funcall set-buffer-modified-p delete-auto-save-file-if-necessary "Sending...done"] 6)
  mail-send()
  byte-code("BC Dp!?\"
  mail-send-and-exit(nil)
  call-interactively(mail-send-and-exit)
---- end of backtrace buffer ----

If you start emacs with:

emacs -q

then type: ESC ESC SPC (setq sendmail-program "/usr/ucblib/sendmail") RTN

then follow procedure 1 or 2, then the mail is sent and the syslogd
file for sendmail shows the attempt to send, and a return message appears
indicating an unknown user.

If you start emacs with:

emacs -q

then type: `ESC x emacs-version'

then emacs prints in the minibuffer:

GNU Emacs 18.58.13 of Sat Mar 21 1992 on predator (usg-unix-v)


  Here is a dribble file of a session similar to
procedure 2, it uses a slightly different email
address.

---- start of dribble file ----
 (setq mail-interactive t)mAny Body <anyb@where.phx.mcd.mot.com>n
---- end of dribble file ----

Eric Sunderland
Motorola Computer Group			Email: eas@phx.mcd.mot.com
2900 South Diablo Way			Mail Drop: DW220
Tempe, Az 85282				Phone: (602)438-3749

Newsgroups: gnu.emacs.vms,gnu.emacs.help,comp.emacs