Fwd: Re: ~/.netrc & multiple accounts with same @domain

Leif Walsh leif.walsh at gmail.com
Mon Mar 21 16:26:11 UTC 2011


Here was my response to Pan, it should be helpful for you two as well.

You will need to change the spec for .netrc, not just python's
implementation.
---------- Forwarded message ----------
From: "Leif Walsh" <leif.walsh at gmail.com>
Date: Mar 21, 2011 9:27 AM
Subject: Re: ~/.netrc & multiple accounts with same @domain
To: "Pan Tsu" <inyaoo at gmail.com>

You can't use .netrc for both, this is a .netrc limitation, that is, it keys
entries by machine name, not (machine name, user). I suggest a password
file, that's what I use.
On Mar 21, 2011 6:17 AM, "Pan Tsu" <inyaoo at gmail.com> wrote:
> offlineimap is unable to get password from ~/.netrc when it contains
> more than one entry for `machine'
>
> machine imap.gmail.com login foo password blah
> machine imap.gmail.com login bar password blah
>
> where the last one wins, i.e. `bar'. It'll ask password for `foo'
> account when running in TTY.TTYUI.
>
> OTOH, msmtp which I use to send mails picks the right password without
issues.
>
> --
> $ offlineimap --version
> 6.3.2
>
> _______________________________________________
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project
>
> OfflineIMAP homepage: http://software.complete.org/offlineimap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20110321/661f9337/attachment-0001.htm>


More information about the OfflineIMAP-project mailing list