Timo Lilja <[EMAIL PROTECTED]> writes:
> Now, the problem is that if the get-mail-script has a non-zero exit or
> produces some output, nothing is shown in the Emacs buffers.
Try the following patch:
Index: mail-source.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mail-source.el,v
retrieving revision 7.15
retrieving revision 7.16
diff -c -r7.15 -r7.16
*** mail-source.el 8 Feb 2006 04:17:15 -0000 7.15
--- mail-source.el 23 Apr 2006 14:09:14 -0000 7.16
***************
*** 678,689 ****
(sleep-for delay)))
(defun mail-source-call-script (script)
! (let ((background nil))
(when (string-match "& *$" script)
(setq script (substring script 0 (match-beginning 0))
background 0))
! (call-process shell-file-name nil background nil
! shell-command-switch script)))
;;;
;;; Different fetchers
--- 678,697 ----
(sleep-for delay)))
(defun mail-source-call-script (script)
! (let ((background nil)
! (stderr (get-buffer-create " *mail-source-stderr*"))
! result)
(when (string-match "& *$" script)
(setq script (substring script 0 (match-beginning 0))
background 0))
! (setq result
! (call-process shell-file-name nil background nil
! shell-command-switch script))
! (when (and result
! (not (zerop result)))
! (set-buffer stderr)
! (message "Mail source error: %s" (buffer-string)))
! (kill-buffer stderr)))
;;;
;;; Different fetchers
--
(domestic pets only, the antidote for overdose, milk.)
[EMAIL PROTECTED] * Lars Magne Ingebrigtsen
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english