[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Samuel.Landau@ens.fr: Re: fetchmail : je seche !]



----- Forwarded message from Samuel Landau <Samuel.Landau@ens.fr> -----

Message-ID: <364ABDA4.58B12026@ens.fr>
Date: Thu, 12 Nov 1998 11:51:16 +0100
From: Samuel Landau <Samuel.Landau@ens.fr>
X-Mailer: Mozilla 4.06 [en] (X11; I; Linux 2.0.35 i586)
MIME-Version: 1.0
To: Laurent PICOULEAU <lcrpic@a2points.com>
Subject: Re: fetchmail : je seche !
References: <[🔎] 19981112014403.B15361@a2points.com>
Content-Type: multipart/mixed; boundary="------------06F7798F6FB77643928BEE70"
Status: RO
X-Status: A
Content-Length: 1992
Lines: 67

This is a multi-part message in MIME format.
--------------06F7798F6FB77643928BEE70
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by front2.grolier.fr id LAA06720

une solution qui marche chez moi:
l'utilisateur a son .fetchmailrc
avec les params qu'il faut pour se lancer
fetchmail en d=E9mon
j'ajoute deux fichiers:
/etc/ppp/ip-up.d/retrieve_the_mail
et /etc/ppp/ip-down.d/stop_retrieve_the_mail
[attach=E9s]

bref l'id=E9e c'est juste de lancer fetchmail
par le bon utilisateur, pas root...

--=20
Samuel Landau
page perso : <http://www.eleves.ens.fr/home/landau/>
membre de Parinux : <http://www.teaser.fr/~mmestre/parinux.html>
--------------06F7798F6FB77643928BEE70
Content-Type: text/plain; charset=iso-8859-1; name="retrieve_the_mail"
Content-Disposition: inline; filename="retrieve_the_mail"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by front2.grolier.fr id LAA06720

#!/bin/sh

#  pour chaque utilisateur qui le d=E9sire
# (pr=E9sence de ~/.fetchmailrc)
# lancer fetchmail

cd /home
for user in `ls -1|grep -v "lost+found"|sed -e 's#/##g'`
do
	if [ -e "/home/$user/.fetchmailrc" ]
	then=20
	su $user -c "/usr/bin/fetchmail --syslog --invisible"
	fi
done
exit 0

--------------06F7798F6FB77643928BEE70
Content-Type: text/plain; charset=iso-8859-1; name="stop_retrieve_the_mail"
Content-Disposition: inline; filename="stop_retrieve_the_mail"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by front2.grolier.fr id LAA06720

#!/bin/sh

#  pour chaque utilisateur qui le d=E9sire
# (pr=E9sence de ~/.fetchmailrc)
# stopper les d=E9mons fetchmail

cd /home
for user in `ls -1|grep -v "lost+found"|sed -e 's#/##g'`
do
        if [ -e "/home/$user/.fetchmailrc" ]
        then=20
        su $user -c "/usr/bin/fetchmail -quit"
        fi
done
exit 0

--------------06F7798F6FB77643928BEE70--

----- End forwarded message -----


Reply to: