================================================================
Dear Bug Team!
The attached Perl script, when run from a Cygwin bash shell, works
correctly, and the email messages are saved, via the MH rcvstore
command, with the Unix line-endings.
However, when I run this script from a lisp function (below) in the
Cygwin build of XEmacs, the line endings come out as DOS/Windows line
endings (CR/LF), which completely screws up MH-E.
I'm including the Perl script and the lisp function I use to call it.
Please let me know if you need anymore information.
;; Call Perl 'inc' script for MH-E
(defun pd-inc()
"Check for new mail with popfetch.pl script, and then rescan"
(interactive)
(with-output-to-temp-buffer "*pinc*"
(message "Checking mail ...")
(call-process "perl" nil standard-output nil
"/cygdrive/c/home/pinc.pl")
)
(mh-rescan-folder)
)
Thank you.
-pd
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: CYGWIN_NT-5.0 TSUNAMI 1.3.12(0.54/3/2) 2002-07-06 02:16 i686 unknown
./configure '--with-dragndrop' '--with-postgresql=no'
'--with-x=no' '--bindir=/usr/local/bin/i686-pc-cygwin'
'--with-site-lisp=yes' '--with-ipv6-cname=no' '--with-netinstall'
XEmacs 21.4.11 "Native Windows TTY Support (Windows)" configured for
`i686-pc-cygwin'.
Compilation / Installation:
Source code location: /development/xemacs/xemacs-21.4-release
Installation prefix: /usr/local
Operating system description file: `s/cygwin32.h'
Machine description file: `m/intel386.h'
Compiler: gcc -I/usr/lib/../include/noX
-I/usr/lib/../include/noX -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -Wshadow -Wpointer-arith
Relocating allocator for buffers: no
GNU version of malloc: yes
Window System:
Compiling in support for the Microsoft window system.
Using MS-Windows menubars.
Using MS-Windows scrollbars.
Using MS-Windows dialog boxes.
Using MS-Windows native widgets.
Compiling in support for Drag'n'Drop (EXPERIMENTAL).
- Drag'n'Drop prototype: msw.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for GNU DBM.
Internationalization:
Compiling in support for file coding.
Mail:
Compiling in support for POP mail retrieval.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Load-Path Lisp Shadows:
----------------------
(~/emacsdir/tex-site
/usr/local/lib/xemacs/xemacs-packages/lisp/auctex/tex-site
~/emacsdir/dbx /usr/local/lib/xemacs/xemacs-packages/lisp/debug/dbx
~/emacsdir/make-regexp
/usr/local/lib/xemacs/xemacs-packages/lisp/ess/make-regexp
~/emacsdir/lisp/tree-widget
/usr/local/lib/xemacs/xemacs-packages/lisp/jde/tree-widget
~/emacsdir/browse-url
/usr/local/lib/xemacs/xemacs-packages/lisp/mail-lib/browse-url
/packages/xemacs/mh-e-7.3/mh-xemacs-compat
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-xemacs-compat
/packages/xemacs/mh-e-7.3/mh-utils
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-utils
/packages/xemacs/mh-e-7.3/mh-speed
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-speed
/packages/xemacs/mh-e-7.3/mh-seq
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-seq
/packages/xemacs/mh-e-7.3/mh-pick
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-pick
/packages/xemacs/mh-e-7.3/mh-mime
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-mime
/packages/xemacs/mh-e-7.3/mh-loaddefs
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-loaddefs
/packages/xemacs/mh-e-7.3/mh-index
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-index
/packages/xemacs/mh-e-7.3/mh-identity
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-identity
/packages/xemacs/mh-e-7.3/mh-funcs
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-funcs
/packages/xemacs/mh-e-7.3/mh-e
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-e
/packages/xemacs/mh-e-7.3/mh-customize
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-customize
/packages/xemacs/mh-e-7.3/mh-comp
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-comp
/packages/xemacs/mh-e-7.3/mh-alias
/usr/local/lib/xemacs/xemacs-packages/lisp/mh-e/mh-alias
~/emacsdir/metamail
/usr/local/lib/xemacs/xemacs-packages/lisp/net-utils/metamail
~/emacsdir/postscript
/usr/local/lib/xemacs/xemacs-packages/lisp/prog-modes/postscript
~/emacsdir/gnuserv /usr/local/lib/xemacs-21.4.11/lisp/gnuserv
/usr/local/lib/xemacs/xemacs-packages/lisp/build/build-report
/usr/local/lib/xemacs-21.4.11/lisp/build-report)
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.13 :type regular)
(xslt-process :version 1.11 :type regular)
(xslide :version 1.06 :type regular)
(xemacs-devel :version 1.52 :type single-file)
(xemacs-base :version 1.75 :type regular)
(x-symbol :version 1.03 :type regular)
(w3 :version 1.28 :type regular)
(vm :version 7.14 :type regular)
(viper :version 1.35 :type regular)
(view-process :version 1.12 :type regular)
(vhdl :version 1.16 :type regular)
(vc-cc :version 1.21 :type regular)
(vc :version 1.37 :type regular)
(tramp :version 1.12 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.35 :type regular)
(time :version 1.12 :type regular)
(textools :version 1.14 :type regular)
(text-modes :version 1.6 :type single-file)
(texinfo :version 1.23 :type regular)
(supercite :version 1.19 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.26 :type regular)
(sounds-wav :version 1.1 :type regular)
(sounds-au :version 1.1 :type regular)
(sml-mode :version 0.09 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.13 :type regular)
(sh-script :version 1.17 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.17 :type regular)
(scheme :version 1.13 :type regular)
(sasl :version 1.12 :type regular)
(ruby-modes :version 1.01 :type regular)
(rmail :version 1.13 :type regular)
(reftex :version 1.28 :type regular)
(python-modes :version 1.02 :type single-file)
(psgml-dtds :version 1.02 :type regular)
(psgml :version 1.4 :type regular)
(ps-print :version 1.08 :type regular)
(prog-modes
:version
1
.72
:type
single-file)
(pgg :version 1.02 :type regular)
(perl-modes :version 1.04 :type single-file)
(pcomplete :version 1.02 :type regular)
(pcl-cvs :version 1.64 :type regular)
(pc :version 1.25 :type single-file)
(os-utils :version 1.3 :type single-file)
(ocaml :version 0.04 :type regular)
(net-utils :version 1.31 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.16 :type single-file)
(mine :version 1.14 :type regular)
(mh-e :version 1.19 :type regular)
(mew :version 1.17 :type regular)
(mailcrypt :version 2.12 :type regular)
(mail-lib :version 1.57 :type regular)
(liece :version 1.11 :type regular)
(jde :version 1.45 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.31 :type regular)
(igrep :version 1.1 :type regular)
(idlwave :version 1.28 :type regular)
(ibuffer :version 1.08 :type regular)
(hm--html-menus :version 1.2 :type regular)
(haskell-mode :version 1.05 :type regular)
(gnus :version 1.68 :type regular)
(gnats :version 1.15 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.12 :type single-file)
(frame-icon :version 1.09 :type regular)
(fortran-modes :version 1.02 :type single-file)
(forms :version 1.14 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.37 :type regular)
(eterm :version 1.13 :type regular)
(ess :version 1.03 :type regular)
(eshell :version 1.05 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.04 :type regular)
(efs :version 1.29 :type regular)
(edt :version 1.12 :type regular)
(edit-utils :version 2.0 :type single-file)
(ediff :version 1.46 :type regular)
(edebug :version 1.17 :type regular)
(ecrypto :version 0.12 :type regular)
(ecb :version 1.06 :type regular)
(docbookide :version 0.06 :type regular)
(dired :version 1.13 :type regular)
(dictionary :version 1.11 :type regular)
(debug :version 1.16 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.14 :type regular)
(clearcase :version 1.06 :type regular)
(cc-mode :version 1.33 :type regular)
(calendar :version 1.19 :type regular)
(calc :version 1.23 :type regular)
(c-support :version 1.16 :type single-file)
(build :version 1.1 :type regular)
(bbdb :version 1.21 :type regular)
(auctex :version 1.35 :type regular)
(apel :version 1.26 :type regular)
(ada :version 1.13 :type regular)
(Sun :version 1.13 :type regular))
Installed Modules:
-----------------
Features:
--------
(efs-cu xemacsbug shadow paren blink-paren emacs-wiki pcomplete
goto-addr overlay thingatpt mh-identity mh-comp regexp-opt
mh-xemacs-icons mh-e mh-xemacs-compat mh-utils gnus-cite executable
mh-customize mh-loaddefs font-lock mh-inc bbdb-gnus gnus-art mm-uu
mm-view gnus-sum gnus-group gnus-undo nnmail mail-source format-spec
gnus-start gnus-range gnus-spec gnus-int gnus-win gnus-ems wid-edit
gnus-xmas message messagexmas mml mm-decode mm-encode mailcap mm-bodies
uudecode mail-parse rfc2045 rfc2231 rfc2047 qp ietf-drums mailheader
gnus-util time-date parse-time nnheader nnheaderxm mail-utils mm-util
mail-prsvr gnus bbdb-snarf mail-extr bbdb-com mail-abbrevs bbdb timezone
browse-url smtpmail sendmail rfc822 font disp-table cus-face
zenirc-autoloads xslt-process-autoloads xslide-autoloads
xemacs-devel-autoloads xemacs-base-autoloads x-symbol-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-cc-autoloads vc-autoloads tramp-autoloads
tpu-autoloads tooltalk-autoloads tm-autoloads time-autoloads
textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads strokes-autoloads speedbar-autoloads
sounds-wav-autoloads sounds-au-autoloads sml-mode-autoloads
slider-autoloads sieve-autoloads sh-script-autoloads sgml-autoloads
semantic-autoloads scheme-autoloads sasl-autoloads ruby-modes-autoloads
rmail-autoloads reftex-autoloads python-modes-autoloads
psgml-dtds-autoloads psgml-autoloads ps-print-autoloads
prog-modes-autoloads pgg-autoloads perl-modes-autoloads
pcomplete-autoloads pcl-cvs-autoloads pc-autoloads os-utils-autoloads
ocaml-autoloads net-utils-autoloads mmm-mode-autoloads
misc-games-autoloads mine-autoloads mh-e-autoloads mew-autoloads
mailcrypt-autoloads mail-lib-autoloads liece-autoloads jde-autoloads
ispell-autoloads ilisp-autoloads igrep-autoloads idlwave-autoloads
ibuffer-autoloads hm--html-menus-autoloads haskell-mode-autoloads
gnus-autoloads gnats-autoloads games-autoloads fsf-compat-autoloads
frame-icon-autoloads fortran-modes-autoloads forms-autoloads
footnote-autoloads eudc-autoloads eterm-autoloads ess-autoloads
eshell-autoloads emerge-autoloads elib-autoloads eieio-autoloads
efs-autoloads edt-autoloads edit-utils-autoloads ediff-autoloads
edebug-autoloads ecrypto-autoloads ecb-autoloads docbookide-autoloads
dired-autoloads dictionary-autoloads debug-autoloads crisp-autoloads
cookie-autoloads clearcase-autoloads cc-mode-autoloads
calendar-autoloads calc-autoloads c-support-autoloads build-autoloads
bbdb-autoloads auctex-autoloads apel-autoloads ada-autoloads
Sun-autoloads lisp-autoloads loadhist auto-show fontl-hooks code-cmds
gutter-items menubar-items x-menubar dragdrop mode-motion mouse itimer
auto-save lisp-mode easymenu iso8859-1 page buff-menu lib-complete
help-nomule cus-file derived frame text-props obsolete cus-start custom
widget cl-extra mini-cl cl cl-19 packages backquote very-early-lisp
file-coding mswindows-scrollbars mswindows tty-frames tty toolbar
native-sound scrollbar unix-processes multicast network-streams
subprocesses modules menu-accelerator-support menubar dbm md5 xemacs
gutter tiff png gif jpeg xface xpm xbm lisp-float-type cygwin32
dragdrop-api dialog devices window-system base64)
Recent keystrokes:
-----------------
M-x r e p o r t SPC e m TAB RET
Recent messages (most recent first):
-----------------------------------
Wrote /cygdrive/c/HOME/Mail/draftsex/1
Loading efs-cu...done
Loading efs-cu...
Composing a message...
Loading xemacsbug...done
Loading xemacsbug...
Paren mode is paren
Loading paren...done
Loading paren...
Loading emacs-wiki...done
Loading emacs-wiki...
Loading mh-identity...done
Loading mh-identity...
Loading regexp-opt...done
Loading regexp-opt...
Loading gnus-xmas...done
Loading gnus-xmas...
Loading smtpmail...done
Loading smtpmail...
Loading font...done