Gnus development mailing list
 help / color / mirror / Atom feed
From: Thomas Skogestad <tskogest@jusstud.uio.no>
Subject: Re: Gnus and fetchmail
Date: 01 May 2000 14:40:28 +0200	[thread overview]
Message-ID: <3166173628721995@oakhurst.penguinpowered.com> (raw)
In-Reply-To: <wtnr9bmeepp.fsf@licia.dtek.chalmers.se>

* Jonas Steverud

| My question now is if fetchmail can deliver to some file which Gnus
| then can read as inbox (and then do splitting) or if I need procmail
| (in MDA mode) too.

This is my ~/.fetchmailrc

 # Configuration created Sat Jun 12 13:34:33 1999 by fetchmailconf
 set postmaster "thomas"
 set bouncemail
 set properties ""
 poll munkholm.chembio.ntnu.no via "localhost"
  with proto POP3 port 1027
        user "thomas" there with password "TopSecret" is thomas here options fetchall stripcr warnings 3600
  preconnect '(ssh -n -f munkholm.chembio.ntnu.no -L 1027:munkholm.chembio.ntnu.no:110 sleep 5 ) ; sleep 2'
  mda '/usr/bin/procmail -d thomas'

(The user here/there is probably not needed, but should I ever change
machines I'm fetching mail from, the setup is ready to be easily changed.
("there" is the user name on the foreign machine.))

This uses a SSH tunnel, connects to a foreign machine
(munkholm.chembio.ntnu.no), fetches mail, and uses procmail to write the
mail to /var/spool/mail/thomas

I also have (setq nnmail-spool-file '("/var/spool/mail/thomas")) in my .gnus

| Any other ideas for the problem "getting (sending) mail and news from
| (to) ISP X to (from) Gnus"? I would like to have two options: 1. Have
| a script in crontab and

I have 

 30 01 * * * fetchmail -q > /dev/null 2>&1
 00 07 * * * fetchmail -d 1800 -f /home/thomas/.fetchmailrc

This checks for mail every half hour (1800 seconds), it is turned off
around my bed time, or not...

| 2. be able to do it on demand.

Then I just type "fetchmail" from the prompt.

| uploads whatever mail I've sent, and do the same thing for news.

I use qmail to send mail (which at least is a heck og lot easier to set up
than sendmail). I also have

 (setq message-send-mail-function 'message-send-mail-with-qmail)
 ;; Forces envelope set to this (i.e. where bounced mail is sent)
 (setq message-qmail-inject-args '("-f" "tskogest@jusstud.uio.no"

just to make sure that the right headers are actually set. (The University
(UiO) is where nice, and without telling anybody about this actually
deletes your mail if the envelope from is set to the name of my computer.
(They've also blocked port 25 connections to my machine form anywhere
outside of the local student city net.)

Since I have a permanent connection to the net I have never had to bother
with sending mail in batches as I log on.

-- 
thomas.skogestad@jusstud.uio.no
http://quimby.gnus.org/circus/problem.gif
ftp://ftp.splode.com/pub/users/friedman/emacs-lisp/kill-a-lawyer.el



  parent reply	other threads:[~2000-05-01 12:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <wtnr9bmeepp.fsf@licia.dtek.chalmers.se>
2000-05-01 10:59 ` Daniel Pittman
2000-05-01 12:11 ` Kai Großjohann
2000-05-01 12:40 ` Thomas Skogestad [this message]
2000-05-01 13:10   ` Daniel Neri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3166173628721995@oakhurst.penguinpowered.com \
    --to=tskogest@jusstud.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).