"Stuart J. Browne" <sjbrowne(_at_)bluebottle(_dot_)com> writes:
I've found that using 'fetcmail -f -' is a nice way of pumping in
dynamically created settings without haveing to worry about managing
multiple .fetchmail files and spreading it across multiple users. (I
beleive the poll method is basically a serially queued check from a
single daemon, right?).
Anyway, even though I'm trying from a threaded framework, it sees it as
running multiple foreground sessions, and really doesn't want to let me
fetchmail: another foreground fetchmail is running at 32161.
I was wondering if there was a nice way to supress this check to enable
me to run multiple at the same time (as there will never be any
backgrounded versions of this running).
Not at this time, but there's a workaround - not exactly what you're
looking for, but the best option at this time. Quoting the new 6.3.2
manpage (the 6.2.5 manual page is less verbose but should contain the
same information -- I hope Fedora backported the relevant fixes for
CVE-2005-2335, -3088 and -4348 to 6.2.5):
If the environment variable FETCHMAILHOME is set to a valid and exist-
ing directory name, fetchmail will read $FETCHMAILHOME/fetchmailrc
(the dot is missing in this case), $FETCHMAILHOME/.fetchids and
$FETCHMAILHOME/.fetchmail.pid rather than from the user's home direc-
tory. The .netrc file is always looked for in the the invoking user's
home directory regardless of FETCHMAILHOME's setting.
The directories for multiple concurrent processes must be separate, else
you'll be seeing the same error again. So redirect the fetchmailrc to,
say PREFIX/dynamic-fetchmail-NNN/fetchmailrc where NNN is a counter and
then run "env FETCHMAILHOME=PREFIX/dynamic-fetchmail-NNN fetchmail" (of
course replacing PREFIX and NNN everywhere).
You can remove the directory as fetchmail completes its job, unless you
need the .fetchids for the next run (POP3 in UIDL mode needs it).
Note this mailing list is going to shut down. Please subscribe to the
fetchmail-users list at berlios.de, see the new home page at
http://fetchmail.berlios.de/ for information.
Fetchmail-friends mailing list