* Re: Starting shell scripts when fetching news/mail?
[not found] <853cri3te3.fsf@worldonline.dk>
@ 2002-10-07 20:46 ` Chris Majewski
0 siblings, 0 replies; only message in thread
From: Chris Majewski @ 2002-10-07 20:46 UTC (permalink / raw)
Of possible relevance are the following lines from my .emacs
(custom-set-variables
'(gnus-before-startup-hook (quote (my-pull-newsrc)))
'(gnus-after-exiting-gnus-hook (quote (my-push-newsrc))))
(defun my-push-newsrc ()
"Copy Gnus state to remote host"
(interactive)
(let ((this-buffer (current-buffer))
(output-buffer (get-buffer "*rsync command output*")))
(cond
((yes-or-no-p (format "Push Gnus state to remote host? "))
(switch-to-buffer output-buffer)
(message "Copying files to remote host, please wait...")
(call-process "/home/krzys/src/sh/push-newsrc"
nil
"*rsync command output*"
1)
(message "Done")
(switch-to-buffer this-buffer)))))
(defun my-pull-newsrc ()
"Copy Gnus state from remote host"
(interactive)
(let ((this-buffer (current-buffer))
(output-buffer (get-buffer "*rsync command output*")))
(cond
((yes-or-no-p (format "Pull Gnus state from remote host? "))
(switch-to-buffer output-buffer)
(message "Copying files from remote host, please wait...")
(call-process "/home/krzys/src/sh/pull-newsrc"
nil
"*rsync command output*"
1)
(message "Done")
(switch-to-buffer this-buffer)))))
-chris
"Jeppe N. Madsen" <jeppenm@worldonline.dk> writes:
> Hi,
>
> I've been running Gnus 5.8 for quite a while on W2k/Cygwin/Xemacs and
> now it's time to tweak the setup :-)
>
> I'm using a number of foreign servers and one requires a ssh tunnel
> to connect. While it's not a big deal to open a shell and start a
> shell script it would be nice if it was possible for Gnus to
> automagically start this when fetching news. Is this possible? Or
> rather has anyone done this successfully and have some code to share?
>
> I'm also using Gnus to read mail from a pop3 server. I've recently
> installed SpamAssassin/pop3proxy and while it works, again I need to
> fire up a shell to get it rolling. So the same question goes for
> fetching mail: is it possible to start a shell before fetching the
> mail?
>
> rgds
> Jeppe
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-07 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <853cri3te3.fsf@worldonline.dk>
2002-10-07 20:46 ` Starting shell scripts when fetching news/mail? Chris Majewski
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).