Package: emacs22-el
Version: 22.0.99+1-1
Severity: normal
File: /usr/share/emacs/22.0.99/lisp/mail/sendmail.el.gz

As I communicate mail over my ISP's mail host, I don't need a MTA and
therefore removed exim4. This resulted in the following error when
starting gnus v5.11 in emacs22:

Debugger entered--Lisp error: (error "/usr/bin/mail is not executable")
  signal(error ("/usr/bin/mail is not executable"))
  error("/usr/bin/mail is not executable")
  (if (not (file-executable-p "/usr/bin/mail")) (error "/usr/bin/mail is not 
executable"))
  (cond ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail") 
((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail") ((file-exists-p 
"/usr/ucblib/sendmail") "/usr/ucblib/sendmail") (t (if ... ...) "fakemail"))
  eval((cond ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail") 
((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail") ((file-exists-p 
"/usr/ucblib/sendmail") "/usr/ucblib/sendmail") (t (if ... ...) "fakemail")))
  custom-initialize-reset(sendmail-program (cond ((file-exists-p 
"/usr/sbin/sendmail") "/usr/sbin/sendmail") ((file-exists-p 
"/usr/lib/sendmail") "/usr/lib/sendmail") ((file-exists-p 
"/usr/ucblib/sendmail") "/usr/ucblib/sendmail") (t (if ... ...) "fakemail")))
  custom-declare-variable(sendmail-program (cond ((file-exists-p 
"/usr/sbin/sendmail") "/usr/sbin/sendmail") ((file-exists-p 
"/usr/lib/sendmail") "/usr/lib/sendmail") ((file-exists-p 
"/usr/ucblib/sendmail") "/usr/ucblib/sendmail") (t (if ... ...) "fakemail")) 
"Program used to send messages." :group mail :type file)
  (defcustom sendmail-program (cond (... "/usr/sbin/sendmail") (... 
"/usr/lib/sendmail") (... "/usr/ucblib/sendmail") (t ... "fakemail")) "Program 
used to send messages." :group (quote mail) :type (quote file))
  eval-buffer(#<buffer  *load*<2>> nil 
"/usr/share/emacs/22.0.99/lisp/mail/sendmail.el.gz" nil t)  ; Reading at buffer 
position 2062
  load-with-code-conversion("/usr/share/emacs/22.0.99/lisp/mail/sendmail.el.gz" 
"/usr/share/emacs/22.0.99/lisp/mail/sendmail.el.gz" nil t)
  require(sendmail)
  
byte-code("ÀÁ!ˆÂÃÄ\"ˆÂÅÄ\"ˆÂÆÇ\"ˆÂÈÉ\"ˆÂÊÉ\"ˆÂËÌ\"ˆÂÍÎ\"ˆÂÏÎ\"ˆÂÐÎ\"ˆÑÒÓÔÕÖ%‡" 
[require sendmail autoload starttls-open-stream "starttls" starttls-negotiate 
mail-strip-quoted-names "mail-utils" message-make-date "message" 
message-make-message-id rfc2104-hash "rfc2104" netrc-parse "netrc" 
netrc-machine netrc-get custom-declare-group smtpmail nil "SMTP protocol for 
sending mail." :group mail] 6)
  load("smtpmail")
  load-library("smtpmail")
  eval-buffer(#<buffer  *load*> nil "/home/ralle/.gnus" nil t)  ; Reading at 
buffer position 4535
  load-with-code-conversion("/home/ralle/.gnus" "/home/ralle/.gnus" nil t)
  load("~/.gnus" nil t)
  gnus-read-init-file()
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus)

I use (setq message-send-mail-function 'smtpmail-send-it) in my
.gnus. Smtpmail.el itself requires sendmail.el, which caused the error
at defcustom of sendmail-program as I haven't got sendmail or
/usr/bin/mail on my system:


(defcustom sendmail-program
  (cond
    ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
    ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
    ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
    (t
     (if (not (file-executable-p "/usr/bin/mail"))
         (error "/usr/bin/mail is not executable"))
     "fakemail"))                       ;In ../etc, to interface to /bin/mail.
  "Program used to send messages."
  :group 'mail
  :type 'file)

There are two lines of code I couldn't find in any version on
<http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/mail/sendmail.el?view=log>:

     (if (not (file-executable-p "/usr/bin/mail"))
         (error "/usr/bin/mail is not executable"))

So, I assume this was modified by Debian. I removed both lines, which
works for me. I'm wondering about this error message. If necessary,
you might change it also to:

     (if (not (file-executable-p "/usr/bin/mail"))
         (message "/usr/bin/mail is not executable"))

This gives the user the information without interrupting loading
gnus. I hope, this is helpful.


Cheers Ralf

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-486
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages emacs22-el depends on:
ii  emacs22-common               22.0.99+1-1 The GNU Emacs editor's shared, arc

emacs22-el recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to