* ange-ftp, Gnus5, and XEmacs -- revisited
@ 1996-09-09 20:42 Jason Stewart
1996-09-18 1:00 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Jason Stewart @ 1996-09-09 20:42 UTC (permalink / raw)
Hi,
About two months ago I tried using ange-ftp to read my mail/news from
home. A friend who uses FSF Emacs and did it regularly suggested I
try. I use XEmacs and have had nothing but trouble.
Summary of the problem:
1) XEmacs does not properly load the .newsrc file - I only get a set
of default groups.
2) FSF Emacs does the right thing.
I'm including the ftp buffers from one session each with xemacs and
FSF emacs - both started with -q and loading in my gnus setup by hand
(my gnus config file is included at the end).
Help?
jas.
XEmacs session:
ftp> open chaco.cs.unm.edu
Connected to chaco.cs.unm.edu.
220 chaco.cs.unm.edu FTP server (ULTRIX Version 4.1 Fri Jul 24 13:34:28 EDT 1992) ready.
user "jasons" Turtle Power!
ftp> 331 Password required for jasons.
230 User jasons logged in.
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> pwd
257 "/nfs/u8/jasons" is current directory.
ftp> ls "-al /nfs/u8/jasons/.newsrc-lynx.unm.edu/." /tmp/ange-ftpa004Gm
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5242) (0 bytes).
226 Transfer complete.
ftp> ls "-al /nfs/u8/jasons/." /tmp/ange-ftpa004Gm
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5243) (0 bytes).
226 Transfer complete.
ftp> get /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble /tmp/ange-ftpa004Gm
200 PORT command successful.
150 Opening data connection for /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble (198.59.151.67,5244) (704 bytes).
226 Transfer complete.
712 bytes received in 0.02 seconds (30.80 Kbytes/s)
ftp> put /tmp/ange-ftpa004Gm /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble
200 PORT command successful.
150 Opening data connection for /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble (198.59.151.67,5245).
226 Transfer complete.
712 bytes sent in 0.00 seconds (844.85 Kbytes/s)
ftp> ls "-al /nfs/u8/jasons/Incoming/." /tmp/ange-ftpa004Gm
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5246) (0 bytes).
226 Transfer complete.
ftp>
FSF Emacs session:
ftp> open chaco.cs.unm.edu
Connected to chaco.cs.unm.edu.
220 chaco.cs.unm.edu FTP server (ULTRIX Version 4.1 Fri Jul 24 13:34:28 EDT 1992) ready.
user "jasons" Turtle Power!
ftp> 331 Password required for jasons.
230 User jasons logged in.
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> pwd
257 "/nfs/u8/jasons" is current directory.
ftp> ls "-al /nfs/u8/jasons/.newsrc-lynx.unm.edu/." /tmp/ange-ftpa004Gh
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5225) (0 bytes).
226 Transfer complete.
ftp> ls "-al /nfs/u8/jasons/." /tmp/ange-ftpa004Gh
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5226) (0 bytes).
226 Transfer complete.
ftp> type binary
200 Type set to I.
ftp> get /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble /tmp/ange-ftpa004Gh
200 PORT command successful.
150 Opening data connection for /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble (198.59.151.67,5227) (704 bytes).
226 Transfer complete.
704 bytes received in 0.02 seconds (31.00 Kbytes/s)
ftp> type ascii
200 Type set to A.
ftp> type binary
200 Type set to I.
ftp> put /tmp/ange-ftpa004Gh /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble
200 PORT command successful.
150 Opening data connection for /nfs/u8/jasons/.newsrc-lynx.unm.edu-dribble (198.59.151.67,5228).
226 Transfer complete.
704 bytes sent in 0.00 seconds (1052.83 Kbytes/s)
ftp> type ascii
200 Type set to A.
ftp> type binary
200 Type set to I.
ftp> get /nfs/u8/jasons/.newsrc-lynx.unm.edu.eld /tmp/ange-ftpa004Gh
200 PORT command successful.
150 Opening data connection for /nfs/u8/jasons/.newsrc-lynx.unm.edu.eld (198.59.151.67,5229) (121810 bytes).
226 Transfer complete.
121810 bytes received in 0.49 seconds (241.82 Kbytes/s)
ftp> type ascii
200 Type set to A.
ftp> ls "-al /nfs/u8/jasons/Incoming/." /tmp/ange-ftpb004Gh
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5230) (0 bytes).
226 Transfer complete.
ftp> ls "-al /nfs/u8/jasons/Mail/active/." /tmp/ange-ftpb004Gh
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5231) (0 bytes).
226 Transfer complete.
ftp> ls "-al /nfs/u8/jasons/Mail/." /tmp/ange-ftpb004Gh
200 PORT command successful.
150 Opening data connection for /bin/ls (198.59.151.67,5233) (0 bytes).
226 Transfer complete.
ftp> type binary
200 Type set to I.
ftp> get /nfs/u8/jasons/Mail/active /tmp/ange-ftpb004Gh
200 PORT command successful.
150 Opening data connection for /nfs/u8/jasons/Mail/active (198.59.151.67,5234) (465 bytes).
226 Transfer complete.
465 bytes received in 0.02 seconds (19.33 Kbytes/s)
ftp> type ascii
200 Type set to A.
ftp>
My gnus-setup.el:
;; configure Gnus v5 to do the right thing.
;;;{{{ Stuff from my old setup
(setq gnus-nntp-server "lynx.unm.edu")
(setq gnus-default-article-saver 'gnus-summary-save-in-file)
;; this removes headers when saving mail to disk
(setq gnus-save-all-headers nil)
(setq gnus-thread-hide-subtree t)
(setq gnus-novice-user nil)
;; Stuff for uudecoding articles automatically
(setq gnus-uu-unmark-articles-not-decoded t)
(setq gnus-uu-tmp-dir "~/tmp")
(setq gnus-local-organization "CS department UNM")
;;;; Use Gnus for reading my mail
(setq nnmail-spool-file "procmail")
(setq nnmail-use-procmail t)
(setq nnmail-procmail-directory "~/Incoming/")
(setq nnmh-be-safe nil)
(setq gnus-default-article-saver 'gnus-summary-save-in-folder)
(setq gnus-group-sort-function 'gnus-group-sort-by-level)
(setq gnus-mail-self-blind t)
(setq gnus-use-draft nil)
;; How about storing all news messages in one file,
;; but storing all mail messages in one file per month:
(setq gnus-message-archive-group
'((if (message-news-p)
"misc-news"
(concat "mail." (format-time-string
"%Y-%m" (current-time))))))
(setq message-signature nil)
;;;;{{{ Stuff from Nelson's setup
(defun my-average (&rest numbers)
"Average a list of numbers. If list is nil, return 0."
(if numbers
(/ (apply '+ numbers) (length numbers))
0))
;;; basic file config. Do it all via ange-ftp!
(if (string-equal (getenv "HOSTNAME") "sandy")
(progn
(setq nnmail-ange-prefix "/jasons@chaco.cs.unm.edu:") ;where my mail is
(setq nnmail-procmail-suffix ".spool")
(setq nnmail-procmail-directory
(concat nnmail-ange-prefix "Incoming"))
(setq nnml-directory (concat nnmail-ange-prefix "Mail"))
(setq gnus-startup-file (concat nnmail-ange-prefix ".newsrc"))))
(setq gnus-save-newsrc-file nil)
(setq gnus-save-killed-list nil)
;;; How to add new newsgroups - don't want to be bothered...
(setq gnus-subscribe-newsgroup-method 'gnus-subscribe-killed)
;;; threading, summary display
(setq gnus-summary-make-false-root 'empty)
(setq gnus-summary-gather-subject-limit 'fuzzy)
(setq gnus-thread-indent-level 2)
(setq gnus-summary-line-format "%U%R%5i %I%[%4L: %-20,20n%] %s\n")
(setq gnus-thread-sort-functions
'(gnus-thread-sort-by-date gnus-thread-sort-by-total-score))
(setq gnus-thread-score-function 'my-average)
;;; article interactions
(add-hook 'gnus-select-group-hook 'my-gnus-select-group-hook)
(defun my-gnus-select-group-hook ()
(setq gnus-auto-select-first nil))
(defun gnus-article-maybe-highlight-all ()
"Do article highlight if `gnus-visual' is non-nil."
(if gnus-visual
(gnus-article-highlight)))
(add-hook 'gnus-article-display-hook 'gnus-article-maybe-highlight-all)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-09-18 1:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-09 20:42 ange-ftp, Gnus5, and XEmacs -- revisited Jason Stewart
1996-09-18 1:00 ` Lars Magne Ingebrigtsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).