Gnus development mailing list
 help / color / mirror / Atom feed
* mail-sources on a different machine?
@ 1999-09-26  1:55 matteau
  1999-09-27 17:35 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: matteau @ 1999-09-26  1:55 UTC (permalink / raw)




Hi,

Sorry to report the same question but I got no answer since I originally posted
it (09/01) and Lars may have missed it in the huge volume of old postings...

I am running pgnus 0.95 on NT emacs 20.4.1. I have been using gnus for
a while following newsgroups but now I want to start reading some mail
with it (that I don't really want to be redirected from my AIX account
to my Lotus Notes mail). So I read the latest manual about mail and
set the following into ~/.gnus:

(setq gnus-secondary-select-methods '(
        (nnml "private")
        ))
(setq mail-sources '(
        (file :path "/matteau@matteau:/var/spool/mail/matteau")
        ))
(setq nnmail-split-methods '(
        ("other" "")
        ))

I then get a movemail error. The backtrace is:

Signaling: (error "Cannot get new mail.")
  signal(error ("Cannot get new mail."))
  error("Cannot get new mail.")
  (if (yes-or-no-p (format "Mail source error (%s).  Continue? " err)) nil
(error "Cannot get new mail."))
  (unless (yes-or-no-p (format "Mail source error (%s).  Continue? " err))
(error "Cannot get new mail."))
  (condition-case err (funcall function source callback) (error (unless ... ...)
0))
  (+ found (condition-case err (funcall function source callback) (error ...
0)))
  (let ((function ...) (found 0)) (unless function (error "%S is an invalid mail
source specification" source)) (when (file-exists-p mail-source-crash-box)
(message "Processing mail from %s..." mail-source-crash-box) (setq found ...))
(+ found (condition-case err ... ...)))
  (save-excursion (let (... ...) (unless function ...) (when ... ... ...) (+
found ...)))
  mail-source-fetch((file :path "/matteau@matteau:/var/spool/mail/matteau")
(lambda (file orig-file) (nnmail-split-incoming file (quote nnml-save-mail)
(quote nil) (nnmail-get-split-group orig-file source) (quote
nnml-active-number))))
  nnmail-get-new-mail(nnml nnml-save-nov "~/Mail/" nil)
  nnml-request-scan(nil "private")
  gnus-request-scan(nil (nnml "private"))
  gnus-read-active-file(nil nil)
  gnus-setup-news(nil nil nil)
  byte-code("\b\x04\x0e
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)


If I FTP manually the content of /var/spool/mail/matteau to my NT
machine and correct the mail-sources entry, it works as expected. Is
this working as designed or did I found a problem? Is there another
way I could approach this? Thanks

P.S. If that matters, I don't want to receive SMTP mail to my NT
machine as it is a portable computer that is most often not connected
to the network.

Rene




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mail-sources on a different machine?
  1999-09-26  1:55 mail-sources on a different machine? matteau
@ 1999-09-27 17:35 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-09-27 17:35 UTC (permalink / raw)


matteau@ca.ibm.com writes:

> Sorry to report the same question but I got no answer since I
> originally posted it (09/01) and Lars may have missed it in the huge
> volume of old postings...

Uhm, I think I answered this, but anyway...  :-)

> (setq mail-sources '(
>         (file :path "/matteau@matteau:/var/spool/mail/matteau")
>         ))

[...]

> I then get a movemail error. The backtrace is:

The problem is that Gnus uses the external movemail program to move
the mail.  It does not understand ange-ftp file names.  And even if it 
did, using it would be unsafe, because there's no way to do file
locking using ftp, which means that you would lose mail eventually.

Instead of doing it this way, I would suggest setting up a pop server
on the remote machine.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mail-sources on a different machine?
  1999-11-11 16:45   ` Ulf Betlehem
@ 1999-11-12  7:18     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-11-12  7:18 UTC (permalink / raw)


Ulf Betlehem <flu@iki.fi> writes:

>         I'm using the following mail-sources for retrieving mail from
>         my local spool as well as fetching mail from my primary mail-
>         host.

I've now added this to the manual.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mail-sources on a different machine?
  1999-09-25  7:59 ` Lars Magne Ingebrigtsen
@ 1999-11-11 16:45   ` Ulf Betlehem
  1999-11-12  7:18     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Ulf Betlehem @ 1999-11-11 16:45 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> "Rene Matteau" <matteau@vnet.ibm.com> writes:
> 
> > (setq mail-sources '(
> >         (file :path "/matteau@matteau:/var/spool/mail/matteau")
> >         ))
> 
> I don't think this will work.  We use movemail to move mail, and it
> doesn't understand ange-ftp file names.  One could use `rename-file',
> but that wouldn't do file locking, which means that You Would Lose
> Mail Sooner Or Later, which is not nice.

        I'm using the following mail-sources for retrieving mail from
        my local spool as well as fetching mail from my primary mail-
        host.  Maybe not that elegant, but its fast and authentication
        is conveniently handled by ssh-agent.

        (setq mail-sources
              '((file)
                (file :prescript "ssh host bin/getmail >%t")))

------------------------------------------
#!/bin/sh
#
#  getmail - move mail from spool to stdout
#
#  flu@iki.fi
#
MOVEMAIL=/usr/lib/emacs/20.3/i386-redhat-linux/movemail
TMP=~/Mail/tmp
rm -f $TMP; $MOVEMAIL $MAIL $TMP >/dev/null && cat $TMP
------------------------------------------


-- 
 flu


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mail-sources on a different machine?
  1999-09-02  0:35 Rene Matteau
@ 1999-09-25  7:59 ` Lars Magne Ingebrigtsen
  1999-11-11 16:45   ` Ulf Betlehem
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-09-25  7:59 UTC (permalink / raw)


"Rene Matteau" <matteau@vnet.ibm.com> writes:

> (setq mail-sources '(
>         (file :path "/matteau@matteau:/var/spool/mail/matteau")
>         ))

I don't think this will work.  We use movemail to move mail, and it
doesn't understand ange-ftp file names.  One could use `rename-file',
but that wouldn't do file locking, which means that You Would Lose
Mail Sooner Or Later, which is not nice.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 6+ messages in thread

* mail-sources on a different machine?
@ 1999-09-02  0:35 Rene Matteau
  1999-09-25  7:59 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Rene Matteau @ 1999-09-02  0:35 UTC (permalink / raw)


Hi,

I am running pgnus 0.95 on NT emacs 20.4.1. I have been using gnus for
a while following newsgroups but now I want to start reading some mail
with it (that I don't really want to be redirected from my AIX account
to my Lotus Notes mail). So I read the latest manual about mail and
set the following into ~/.gnus:

(setq gnus-secondary-select-methods '(
        (nnml "private")
        ))
(setq mail-sources '(
        (file :path "/matteau@matteau:/var/spool/mail/matteau")
        ))
(setq nnmail-split-methods '(
        ("other" "")
        ))

I then get a movemail error. The backtrace is:

Signaling: (error "Cannot get new mail.")
  signal(error ("Cannot get new mail."))
  error("Cannot get new mail.")
  (if (yes-or-no-p (format "Mail source error (%s).  Continue? " err)) nil (error "Cannot get new mail."))
  (unless (yes-or-no-p (format "Mail source error (%s).  Continue? " err)) (error "Cannot get new mail."))
  (condition-case err (funcall function source callback) (error (unless ... ...) 0))
  (+ found (condition-case err (funcall function source callback) (error ... 0)))
  (let ((function ...) (found 0)) (unless function (error "%S is an invalid mail source specification" source)) (when (file-exists-p mail-source-crash-box) (message "Processing mail from %s..." mail-source-crash-box) (setq found ...)) (+ found (condition-case err ... ...)))
  (save-excursion (let (... ...) (unless function ...) (when ... ... ...) (+ found ...)))
  mail-source-fetch((file :path "/matteau@matteau:/var/spool/mail/matteau") (lambda (file orig-file) (nnmail-split-incoming file (quote nnml-save-mail) (quote nil) (nnmail-get-split-group orig-file source) (quote nnml-active-number))))
  nnmail-get-new-mail(nnml nnml-save-nov "~/Mail/" nil)
  nnml-request-scan(nil "private")
  gnus-request-scan(nil (nnml "private"))
  gnus-read-active-file(nil nil)
  gnus-setup-news(nil nil nil)
  byte-code("\b\x04\x0e
  gnus-1(nil nil nil)
  gnus(nil)
  call-interactively(gnus)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)


If I FTP manually the content of /var/spool/mail/matteau to my NT
machine and correct the mail-sources entry, it works as expected. Is
this working as designed or did I found a problem? Is there another
way I could approach this? Thanks

P.S. If that matters, I don't want to receive SMTP mail to my NT
machine as it is a portable computer that is most often not connected
to the network.

Rene



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-11-12  7:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-26  1:55 mail-sources on a different machine? matteau
1999-09-27 17:35 ` Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
1999-09-02  0:35 Rene Matteau
1999-09-25  7:59 ` Lars Magne Ingebrigtsen
1999-11-11 16:45   ` Ulf Betlehem
1999-11-12  7:18     ` 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).