04 2025
|
$ dpkg-source -x mew_6.9-1.dsc $ cd mew-6.9 $ vi debian/changelog # 変更内容記載し、versionを上げておく $ dpkg-buildpackage -us -uc $ cd .. $ sudo dpkg -i mew_6.9-5_all.deb mew-bin_6.9-5_amd64.deb
;;; for OAuth2.0 (setq mew-oauth2-client-id "*************-********************************.apps.googleusercontent.com") (setq mew-oauth2-client-secret "******-****************************") (setq mew-config-alist '(("MyGmail" ("user" . "MyName") ("mail-domain" . "gmail.com") ("prog-ssl" . "/usr/bin/stunnel") ("use-smtp-auth" . t) ("smtp-ssl" . t) ("smtp-server" . "smtp.gmail.com") ("smtp-ssl-port" . "465") ("smtp-auth-list" . ("XOAUTH2")) ("smtp-user" . "MyName@gmail.com") ("imap-ssl" . t) ("imap-server" . "imap.gmail.com") ("imap-ssl-port" . "993") ("imap-auth-list" . ("XOAUTH2")) ("imap-user" . "MyName@gmail") )))
update: 2025/04/30 14:41 | path: /pub/software/emacs
{"installed": { "client_id":"************-********************************.apps.googleusercontent.com", "project_id":"example0430", "auth_uri":"https://accounts.google.com/o/oauth2/auth", "token_uri":"https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs", "client_secret":"******-****************************", "redirect_uris":["http://localhost"] }}
項目 | 設定例 | 認識情報作成時 | 確認場所 | 備考 |
---|---|---|---|---|
アプリ名 | gmail0430oauth2 | OAuth同意 | ブランディング | 他のgoogleアプリとかぶらない名にする事 |
ユーザーサポートメール | example0430@gmail.com | OAuth同意 | ブランディング | ユーザーのgmailから選択 |
デベロッパーの連絡先情報 | example0430@gmail.com | OAuth同意 | ブランディング | ユーザーサポートメールと同じで良い |
スコープ(範囲) | https://mail.google.com/ | スコープ | データアクセス | Gmail のすべてのメールの閲覧、作成、送信、完全な削除 |
アプリケーションの種類 | デスクトップアプリ | OAuthクライアントID | クライアント | 名前 | desktop1644client01 | OAuthクライアントID | クライアント | コンソールでのクライアント識別 |
クライアントID | ************-********************************.apps.googleusercontent.com | - | クライアント | Google Cloud 自動生成ID |
クライアントシークレット | GO****-**************************** | - | クライアント | Google Cloud 自動生成シークレット |
公開ステータス | テスト中 | - | 対象 | 変更しない。つまり、[アプリを公開]しない事 |
ユーザーの種類 | 外部 | - | 対象 | |
テストユーザー | example0430@gmail.com | - | 対象 | 自分のgmail等 |
名称 | URL |
---|---|
ブランディング | https://console.cloud.google.com/auth/branding |
対象 | https://console.cloud.google.com/auth/audience |
クライアント | https://console.cloud.google.com/auth/clients |
デーアアクセス | https://console.cloud.google.com/auth/scopes |
ロール | データ | 備考 |
---|---|---|
リソースオーナー | クライアントID, スコープ | Google Cloudののデータを使用 |
認可サーバ(https://accounts.google.com/o/oauth2/auth) | 認可コード | アクセストークン取得用 |
https://accounts.google.com/o/oauth2/auth?response_type=code &client_id=*************-*********************coucenheaqv.apps.googleusercontent.com &state=xyz &scope=https://mail.google.com/ &redirect_uri=http://127.0.0.1/callbackGoogle Cloudのconsoleの[対象]で追加したテストユーザーの認証を求められる。
http://127.0.0.1/callback?state=xyz &code=4/0**_*******************************-_********************************** &scope=https://mail.google.com/※stateはリソースオーナー側でランダム生成した値。認可サーバからの返信に同じ値のstateがる事を確認する。
ロール | データ | 備考 |
---|---|---|
クライアント | クライアントID, クライアントシークレット, 認可コード | Google CloudののデータとSTEP 1で取得したコードを使用 |
トークンサーバ(https://oauth2.googleapis.com/token) | アクセストークン、リフレッシュトークン | リソースサーバアクセス用 |
curl -d "client_id=103**********-*********************coucenheaqv.apps.googleusercontent.com" \ -d "client_secret=GOC***-****************-***********" \ -d "redirect_uri=http://127.0.0.1/callback" \ -d "grant_type=authorization_code" \ -d "code=4/0**_*******************************-_**********************************" \ https://oauth2.googleapis.com/token
{ "access_token": "ya29.**********************************************************************-********************************-********************************************************-********************************************************", "expires_in": 3599, "refresh_token": "1//0***************************-***************************************************************_*******", "scope": "https://mail.google.com/", "token_type": "Bearer", "refresh_token_expires_in": 604799 }%
update: 2025/04/30 09:17 | path: /pub/software/gmail
update: 2025/04/23 14:59 | path: /pub/software/vmware
update: 2025/04/16 13:15 | path: /pub/misc
update: 2025/04/16 07:43 | path: /pub/software/libreoffice