X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fmail-source.el;h=94c8950988d411bc51ee3a105eed3513931a2c2d;hb=1c5a2d18ae5382304e3f073c3da5e943327a8f87;hp=eb05d714aba42111f9af6ac0c2c26fa5b1f2fb1a;hpb=b83561e18ceb438203812786590893bd5fc2a6cc;p=gnus diff --git a/lisp/mail-source.el b/lisp/mail-source.el index eb05d714a..94c895098 100644 --- a/lisp/mail-source.el +++ b/lisp/mail-source.el @@ -750,13 +750,16 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) (setq script (substring script 0 (match-beginning 0)) background 0)) (setq result - (call-process shell-file-name nil background nil + (call-process shell-file-name nil stderr nil shell-command-switch script)) - (when (and result - (not (zerop result))) - (set-buffer stderr) - (message "Mail source error: %s" (buffer-string))) - (kill-buffer stderr))) + (if (and result + (not (zerop result))) + (progn + (split-window-vertically) + (other-window 1) + (switch-to-buffer stderr) + (message "Mail source error: %s " (buffer-string))) + (kill-buffer stderr)))) ;;; ;;; Different fetchers