getmailを使用してGmailのIMAPにどのユーザー名、サーバー、ポートを割り当てる必要がありますか?

getmailを使用してGmailのIMAPにどのユーザー名、サーバー、ポートを割り当てる必要がありますか?

githubをチェックして試してみてください。はい構成ファイル:

nicholas@mordor:~$ 
nicholas@mordor:~$ cat .config/getmail/getmail 

[options]
verbose = 1
delete = false
message_log = ~/.getmail/log
message_log_verbose = true
read_all = false


[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
port = 993
username = [email protected]
password = xxx
#mailboxes = ("INBOX")

[destination]
type = Mboxrd
path = ~/GotMail/inbox
user = saunders

 

nicholas@mordor:~$ 
nicholas@mordor:~$ getmail
getmail version 6.18.4
Copyright (C) 1998-2021 Charles Cazabon and others. Licensed under GNU GPL version 2.
SimpleIMAPSSLRetriever:[email protected]@imap.gmail.com:993:
Configuration error: no such specified user ("getpwnam(): name not found: 'saunders'")
nicholas@mordor:~$ 
nicholas@mordor:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:    22.04
Codename:   jammy
nicholas@mordor:~$ 

Gmailで古いメールをアーカイブするには、getmailを試してください。私はサーバー、ポート、ユーザー名のいくつかのオプションを試しましたが、動作する組み合わせが見つかりませんでした。

Pine Eメールクライアントは2FAと連携し、アプリケーションパスワードを使用するため、サーバー名、ユーザー名、または同様のパスワードであることを確認できます。ログが空です。

また見なさい:

https://www.bytereef.org/howto/oauth2/getmail.html

彼は次のように述べた。

type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = [email protected]

ベストアンサー1

おすすめ記事