Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getmail problem

53 views
Skip to first unread message

Pierre Frenkiel

unread,
Jul 13, 2023, 2:20:07 PM7/13/23
to
hi,

the problem with getmail is that it ignores my .getmailrc file:
it is configured with gmail:

server = imap.gmail.com
...
poll imap.gmail.com with proto IMAP auth password

but the getmail command gives:
    SimpleIMAPRetriever:p.fre...@imap.laposte.net:143:

   getmailrc: credential/login error (LOGIN command error: BAD
[b'invalid command'])

( my config is  in ~.getmailrc and .getmail/getmailrc )

has anybody an explanation?

best regards

Pierre Frenkiel

Christoph Brinkhaus

unread,
Jul 13, 2023, 3:31:30 PM7/13/23
to
Am Thu, Jul 13, 2023 at 08:18:07PM +0200 schrieb Pierre Frenkiel:

Hi Pierre,
Just a short in the dark - can it be that gmail does not accept imap on
port 143 anymore? Instead of imap please try imaps on port 993.

Kind regards,
Christoph
signature.asc

Anssi Saari

unread,
Jul 14, 2023, 2:30:07 AM7/14/23
to
Pierre Frenkiel <pierre....@gmail.com> writes:

> hi,
>
> the problem with getmail is that it ignores my .getmailrc file:
[...]
> ( my config is  in ~.getmailrc and .getmail/getmailrc )

The latter should work. Run getmail --dump to see what it says
about the configuration file location. Since I don't know how to
configure getmail I put in what you showed into ~/.getmail/getmailrc and
got this output:

$ getmail --dump
Configuration error: configuration file /home/users/zz/.getmail/getmailrc incorrect (File contains no section headers.
file: '/home/users/zz/.getmail/getmailrc', line: 1
'server = imap.gmail.com\n')

So while my configuration is obviously wrong, at least getmail tells me
which configuration file it's reading. From the documentation and code
~/.config/getmailrc seems to be the first choice if that exists,
~/.getmail/getmailrc is the second.
0 new messages