* Re: gnus-topic and popmail access
1996-01-08 1:58 ` Jason L Tibbitts III
@ 1996-01-08 2:46 ` d. hall
1996-01-10 18:46 ` Lars Magne Ingebrigtsen
1996-01-10 19:14 ` d. cord hall
2 siblings, 0 replies; 8+ messages in thread
From: d. hall @ 1996-01-08 2:46 UTC (permalink / raw)
Cc: ding
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]
ð thus on Sun, 07 Jan 1996 19:58:04 -0600, Jason virtually scripted...
>>>>>> "dh" == d hall <dhall@apk.net> writes:
dh> I've read the gnus-info for sgnus, and noticed the entry for popmail
dh> (it seems rather... lacking in info).
Jason> Gnus just calls (in most or all? cases) movemail to get the mail out
Jason> of the spool. Movemail comes with emacs, but doesn't seem to be
Jason> documented anywhere. From a comment in movemail.c (under as
Jason> lib-scr/movemail.c in the emacs source distribution):
Jason> That's about it. This really should be documented somewhere, if not
Jason> in the Gnus docs then at least in the emacs manual.
Ugh! Well, one reason why I've always liked emacs was there was always
another way around it. Just in case I haven't compiled movemail with
-DPOP, and I don't have it setuid root... but I do have access to
popclient, and know how to write a hook function.
At first I wrote a perl script called mailgrab to append the popspool to my
current spool, unfortunately it required that I keep the password located
in a perlscript (for ease and convience). I looked at ange-ftp's elisp,
and I worked out a hook-function which is part of gnus-get-new-news-hook.
Now it works all fine and dandy... no in regards to my other question about
gnus-topic... public feature, or private bug? (on the next Geraldo...)
d.
--
<<If you'd been there, you would've run from that deer, too!>>
~jaya ballard, task mage
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnus-topic and popmail access
1996-01-08 1:58 ` Jason L Tibbitts III
1996-01-08 2:46 ` d. hall
@ 1996-01-10 18:46 ` Lars Magne Ingebrigtsen
1996-01-10 19:14 ` d. cord hall
2 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 1996-01-10 18:46 UTC (permalink / raw)
Jason L Tibbitts III <tibbs@sina.hpc.uh.edu> writes:
> * "po:username". This will cause movemail to open a connection to
> * a pop server running on $MAILHOST (environment variable). Movemail
> * must be setuid to root in order to work with POP.
>
> That's about it. This really should be documented somewhere, if not in the
> Gnus docs then at least in the emacs manual.
I've now added something like this to the Gnus manual.
--
Lars Magne Ingebrigtsen * larsi@ifi.uio.no
(a red leaf that falls from the purple tree)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnus-topic and popmail access
1996-01-08 1:58 ` Jason L Tibbitts III
1996-01-08 2:46 ` d. hall
1996-01-10 18:46 ` Lars Magne Ingebrigtsen
@ 1996-01-10 19:14 ` d. cord hall
1996-01-11 19:35 ` POP3 function, and user format functions d. hall
2 siblings, 1 reply; 8+ messages in thread
From: d. cord hall @ 1996-01-10 19:14 UTC (permalink / raw)
Cc: ding
-----BEGIN PGP SIGNED MESSAGE-----
As someone mentioned about the FSF Emacs bug for 19.30, frankly I never
thought it was located there, colour me embarassed. Anyways I never
started using gnus-topic until I had version 19.30, my bad.
After using gnus-topic, and trying after 3 abortive attempts to get the
groups just right, I would seem to find some uncanny way of totally erasing
my newsgroups. And then having some phantom newsgroup pop up time and time
again after I killed them. On the 4th attempt, I go it jsut right, and
figured out that you can't just cut and paste, you need to T m newsgroup to
the proper topic node (the topical map will not acknowledge a cut and paste
movement as far as the list is concerned). Okay it works, but is anyone
working on making it a little more user friendly? =)
d.
- --
<<Yes, I think "toast" is an appropriate description.>>
~ jaya ballard, task mage
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
iQCVAwUBMPQQGoX26urqpgG1AQF36wQAz+M9HAX1f8TpIpg6jcRWxVpU7/X/aiw7
MG4/IvkA9MM8UtECRPNILXFmjrga6u20RcoMBeu7r9ly/++cYlCWdYcBHl/Xv2oU
WdbgK0cqd4rTMPnyrOVsdbksYTROWYCteDSwMB5IhXkcmMXQpYHfF/ec7+AOeV8k
PvEUzYhcgJU=
=uvrL
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* POP3 function, and user format functions
1996-01-10 19:14 ` d. cord hall
@ 1996-01-11 19:35 ` d. hall
0 siblings, 0 replies; 8+ messages in thread
From: d. hall @ 1996-01-11 19:35 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
the following function i wrote to bypass having to recompile movemail.
(require 'ange-ftp)
(defvar mail-pop-user nil)
(defvar mail-pop-pass nil)
(defvar mail-pop-host "pop")
(defvar mail-pop-spool-file nil)
(defun mail-pop-mail-retrieve ()
(interactive)
(let ((user-name (or mail-pop-user
(user-login-name)))
(my-passwd (or mail-pop-pass
(ange-ftp-read-passwd "Enter your password: ")))
(pop-server mail-pop-host)
(spool-file (or mail-pop-spool-file
(getenv "MAIL")
(concat rmail-spool-directory
(user-login-name)))))
(save-excursion
(generate-new-buffer "*popclient*")
(call-process "popclient" nil "*popclient*" nil
"-3"
"-v"
"-u" user-name
"-p" my-passwd
"-o" spool-file
pop-server
))))
Now, my other problem. I emailed the backtrace via gnus-bug (which game a
further error that I had malformed sources in nnmail).
I have a personalized format function for gnus-summary-line-format, which
makes it look more like vm or rmail in display.
(setq gnus-summary-line-format "%U%R%z%[%-16,16n%]: %uX %I`%s`\n")
(defun gnus-user-format-function-X (header) "\
Return a string like MMM DD LLLL from the header."
(let* ((header-lines (mail-header-lines header))
(header-date (mail-header-date header))
(date-vector (timezone-parse-date header-date))
(date-mon (aref date-vector 1))
(date-day (aref date-vector 2))
(string-lines (if (> header-lines 9999)
"????"
(number-to-string header-lines)))
(string-mon (or (capitalize
(car (nth
(1- (string-to-number date-mon))
timezone-months-assoc)))
"???"))
(string-day (or date-day "??")))
(format "%s %2s %4s" string-mon string-day string-lines)))
If I byte-compile this function w/o first loading Gnus, I get an error the
next time I attempt to run Gnus. So I have the change the %uX to %d so
Gnus will load and run, and then re-byte-compile the function, and then
change the %d back to %uX and it runs just fine. Unfortunately I didn't
save the backtrace, but Lars should be seeing a copy of it soon. It has be
completely baffled. Am I not loading a file before byte-compiling? Or is
it another Emacs 19.30.1 bug?
d.
- --
<<I'm sorry Mr. President. I don't dance.>>
~ from clear and present danger
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
iQCVAwUBMPVl44X26urqpgG1AQEVwAQAmBJoy9Nhc9LoSB5CSaegHPvm5D/oxTE+
6bH5ucnWsHtlNLx82frIirhsjmX0X7OnAaS4C/7S7SxPq5gtHDacwFqOBmIryXp2
tGn5cRDZvMi4HacmZIjtJOWpCFMHA9jZvBpwoywsmBoIEiM+GGATqVzb/QvcpZ0y
qUOZdGI5hmk=
=IUTV
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread