[pkg-fetchmail-maint] Bug#705291: fetchmail: redundant fetch when configured for more than one user
Matthias Andree
matthias.andree at gmx.de
Thu Apr 18 23:26:14 UTC 2013
This is expected behaviour.
--user (or -u) is not a selector, but only overrides the default (which
is the user name of the user running fetchmail).
Effectively, the -u option overrides all username stanzas.
I am demoting this to wishlist because it matches documentation:
*We would need an option to specify and match the username in addition
to the pollname.* This is not fetchmail 6.x stuff, however, it will have
to wait for 7.x.
The workaround is to use a pollname that is distinct from the server's
host name. It might look like (untested):
skip fred-pop.safe-mail.net via pop.safe-mail.net
protocol imap
port 993
interval 3
username "fred.flintstone at safe-mail.net"
ssl
sslcertck
fetchall
...
skip barney-pop.safe-mail.net via pop.safe-mail.net
protocol imap
port 993
interval 3
username "barney.rubble at safe-mail.net"
ssl
sslcertck
fetchall
... (the same scheme for wilma).
The poll name (the ...-pop.safe-mail.net right after skip) now no longer
specifies the server name, but only an internal name to fetchmail. The
actual host name goes after "via".
It's a bit longer to spell out, but should solve your problem.
More information about the pkg-fetchmail-maint
mailing list