Article View: gnu.emacs.vm.bug
Article #147supporting mail access protocols in VM etc.
From: Piercarlo Grandi
Date: Tue, 21 Sep 1993 21:42
Date: Tue, 21 Sep 1993 21:42
50 lines
3208 bytes
3208 bytes
>>> On Mon, 20 Sep 1993 14:03:32 -0400, kyle@crystal.WonderWorks.com
>>> (Kyle Jones) said:
Kyle> [ ... ]
Well, well, here is the man. While you are on these screens, may I
suggest adding a little feature, your know, just a little warm and nice
feature.
It had escaped my notice that the GNU Emacs 19 movemail does have POP-3
support built in, but quite nastily it requires to be installed setuid
root, which is a no-no-no-no.
It is easy to change it to not run setuid root and instead ask a
password to pass on to the POP3 server; passing the password as a
parameter on the command line of movemail is a tad insecure, so the best
bet is to feed it via stdin.
Now the little feature is as follows: *if* the folder name begins with
one of 'po:', 'pop2:', 'pop3:', 'imap:', 'imap2:' (either hardcoded or
contained in a suitable list or regexp, say vm-via-server-regexp), pass
it on as an argument to movemail, but _also_ ask the user for a password
and feed it to the movemail process via stdin (expand-file-name should
also be avoided for the source in this case...).
I can do this myself, as the relevant function to modify is just
(defun vm-move-mail (source destination)
(let ((status
(call-process vm-movemail-program nil nil nil
(expand-file-name source)
(expand-file-name destination))))
(if (not (= 0 status))
(error "vm: %s exited with code %s" vm-movemail-program status))
status))
but if it is done "officially" it's better. Doing it to rmail would also
help perhaps, but I don't use rmail (ack! babyl! phffft!).
I am indeed considering finding the time to add imap support (via
cclient) to movemail, not just pop (also an append mode -- this would
allow people to use movemail before *any* mailer, as in
: ${MAILER=mush}
: ${INBOX=$HOME/.mailbox}
: ${MAILPROTO=pop3}
movemail -a $MAILPROTO:$USER $INBOX && $MAILER -f $INBOX
Nice, eh? (thanks to somebody on the net for inspiring this).
Technical Details
Message-ID:
<PCG.93Sep21224226@decb.aber.ac.uk>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!bloom-beacon.mit.edu!ai-lab!prep.ai.mit.edu!gnulistsReferences:
<mack.748376820@redwood> <9309201803.AA09431@crystal.WonderWorks.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4424,c50bffeaa1036551,start X-Google-Attributes: gidf4424,public X-Google-Thread: f6829,92e106b7fa2ca5f8 X-Google-Attributes: gidf6829,public X-Google-Thread: fb2f1,c50bffeaa1036551,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1993-09-21 22:26:45 PST To: gnu-emacs-bug@aber.ac.uk Distribution: world Approved: info-gnu@prep.ai.mit.edu Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!bloom-beacon.mit.edu!ai-lab!prep.ai.mit.edu!gnulists Followup-To: gnu.emacs.vm.bug,comp.mail.misc,gnu.emacs.bug Newsgroups: gnu.emacs.vm.bug,comp.mail.misc,gnu.emacs.bug From: pcg@aber.ac.uk (Piercarlo Grandi) In-Reply-To: kyle@crystal.WonderWorks.com's message of Mon, 20 Sep 1993 14: 03:32 -0400 Message-ID: <PCG.93Sep21224226@decb.aber.ac.uk> Reply-To: pcg@aber.ac.uk (Piercarlo Grandi) Organization: Prifysgol Cymru, Aberystwyth References: <mack.748376820@redwood> <9309201803.AA09431@crystal.WonderWorks.com> Date: Tue, 21 Sep 1993 21:42:26 GMT X-Old-Subject: Re: Citing broken when transient mark mode == t Subject: supporting mail access protocols in VM etc. Lines: 51