Hallo!

Ich versuche, die Ausgaben von fetchmail in eine Datei zu
protokollieren. (fetchmail an sich, dh. das Abholen der Mails �ber POP3,
funktioniert.)

Als user habe ich folgendes versucht:
  fetchmail -a -v >> ~/fetchmail.log
  fetchmail -a >> ~/fetchmail.log
Ergebnis: Es wird eine 0-Byte-Datei angelegt und bleibt bis zum Ende
unangetastet. Und vor meiner Nase laufen die Meldungen das xterm runter.
Diese konnte ich noch retten:

fetchmail: reading message 1 of 10 (6884 bytes)
fetchmail: SMTP< 220 sesam.strasse.de ESMTP Sendmail 8.8.8/8.8.8; Fri, 9
Apr 1999 13:46:22 +0200
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-sesam.strasse.de Hello raas@localhost [127.0.0.1],
pleased to meet you
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ONEX
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-XUSR
fetchmail: SMTP< 250 HELP
fetchmail: forwarding to localhost
fetchmail: SMTP> MAIL FROM:<[EMAIL PROTECTED]> BODY=8BITMIME
SIZE=6884
fetchmail: SMTP< 250 <[EMAIL PROTECTED]>... Sender ok
fetchmail: SMTP> RCPT TO:<raas@localhost>
fetchmail: SMTP< 250 <raas@localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#[viele "*"]fetchmail:..... (log message incomplete)
fetchmail: SMTP>. (EOM)
[...]
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#[weniger "*"]fetchmail: . (log message incomplete)
[...]                       ^^^^^^^^^^^^^^^^^^^^^^
                            Kommt nicht nach jeder Mail, ...
... und deshalb hat das wohl nichts mit meinem Problem zu tun. Oder
doch?

Und bei folgendem ...
  fetchmail -a -v --logfile ~/fetchmail.log
  fetchmail -a --logfile ~/fetchmail.log
... sehe ich auch nur die Meldungen rennen. In eine Datei wird da auch
nichts geschrieben. Und auch -L statt --logfile ist ausprobiert.

F�hre ich das ganze �ber ip-up (-> root-Rechte) aus, so ist
~/fetchmail.log in /var/log/fetchmail.log ge�ndert. Ansonsten habe ich
da auch alle Kombinationen durch ...

Die Umleitung mit >> habe ich aus der SDB, die Option --logfile aus der
man-Page zu fetchmail.

Sorry. Ist ein bisserl lang geworden :-(
Trotzdem irgendeinen Tip?

Gru�
Carsten

-- 
Carsten Raas -- Xantener Str. 13 -- 50733 Koeln -- (02 21) 7 60 61 00
mailto:[EMAIL PROTECTED]
--
--
Um aus der Liste ausgetragen zu werden, eine Mail an [EMAIL PROTECTED]
schicken, mit dem Text: unsubscribe suse-linux

Antwort per Email an