Re: Multiple Accounts
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sun, Oct 16, 2005 at 03:20:51PM -0500, Jon Riddle wrote:
> I am still waiting to be subscribed to the list, so please cc: me on any
> replies for the time being.
OK. (BTW, it looks like you've been subscribed now.)
> I am not a Python guy (yet), but how hard would be to have the ability
> to move the remoteuser and remotepass directives to the Account section
> (as an option, of course)?
Actually, they used to be there, "back in the day". The reason they
aren't now is that OfflineIMAP now makes it possible to directly sync
two IMAP boxes to each other, instead of IMAP-Maildir and Maildir-IMAP.
So the remotepass/remoteuser options were moved out of the Account so as
to permit this.
> Here is my reasoning: I have been looking for a way to sync two mail
> servers (relatively small for now, ~20 users), and as I see from the
> discussion archive, others are doing this. If there were logic in the
> program that, upon finding remoteuser and remotepass directives in the
> Account section, would use that user and pass for both repositories.
> As I understand it now (and please correct me if I'm wrong), I have to
> set up an Account and two Repository sections for each user (for ~61
> sections total). If I had the ability to move the remoteuser/remotepass
> directives into the Account sections, I could cut this down to ~23
> sections (general, repository 1, repository 2, ~20 accounts). Thoughts?
There is a feature that is not really documented in OfflineIMAP, but if
you put a [DEFAULT] section at the top of the file, you can set defaults
for everything else. So:
[DEFAULT]
remoteuser = joe
remotepass = pythonrocks
will set the defaults for everything. I hope. ;-)
Haven't actually tried this, but OfflineIMAP uses Python's ConfigParser,
and it's a documented behavior there ;-)
-- John
|
|