πΎ Archived View for tilde.team βΊ ~kull βΊ mutt.gmi captured on 2024-08-25 at 01:25:04. Gemini links have been rewritten to link to archived content
β¬ οΈ Previous capture (2022-03-01)
-=-=-=-=-=-=-
sudo apt install mutt
Π΄Π»Ρ ΠΏΡΠΎΡΠΌΠΎΡΡΠ° html ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠΉ Π½Π°Π΄ΠΎ ΠΏΠΎΡΡΠ°Π²ΠΈΡΡ ΠΏΠ°ΠΊΠ΅Ρ w3m
sudo apt install w3m
mkdir -p ~/.mutt mkdir -p ~/.mutt/gmail.com/cache/{bodies,headers} mkdir -p ~/.mutt/yandex.ru/cache/{bodies,headers} touch aliases
cd ~/.mutt
Π§ΡΠΎΠ± Π·Π°Π»ΠΎΠ³ΠΈΠ½ΠΈΡΡΡΡ Ρ ΠΏΠΎΠΌΠΎΡΡΡ mutt ΠΊ yandex.ru Π½Π΅ Π΄ΠΎΡΡΠ°ΡΠΎΡΠ½ΠΎ ΠΏΠ°ΡΠΎΠ»Ρ, ΠΊΠΎΡΠΎΡΡΠΉ Π²Π²ΠΎΠ΄ΠΈΡΡΡ Π² Π±ΡΠ°ΡΠ·Π΅ΡΠ΅ ΠΈΠ»ΠΈ Π² ΡΠ°ΠΊΠΎΠΌ ΠΏΠΎΡΡΠΎΠ²ΠΎΠΌ ΠΊΠ»ΠΈΠ΅Π½ΡΠ΅, ΠΊΠ°ΠΊ thunderbird, Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ. ΠΠ»Ρ mutt Π½Π°Π΄ΠΎ ΠΏΠΎΠ»ΡΡΠΈΡΡ Π΄ΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΠΎ ΠΏΠ°ΡΠΎΠ»Ρ ΠΎΡ yandex.
ΠΠ΅Π»Π°Π΅ΡΡΡ ΡΡΠΎ ΡΠ°ΠΊ:
ΠΠΎΡ ΠΎΠΆΠ°Ρ ΠΈΡΡΠΎΡΠΈΡ ΠΈ Ρ gmail:
( Ρ.ΠΊ. Ρ ΠΌΠ΅Π½Ρ Π² google Π°ΠΊΠ°ΡΠ½ΡΠ΅ ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ°Π΅ΡΡΡ Π°Π½Π³Π»ΠΈΠΉΡΠΊΠΈΠΉ ΡΠ·ΡΠΊ, ΡΠΎ ΡΠΊΠ°ΠΆΡ Π½Π°Π·Π²Π°Π½ΠΈΡ ΠΏΡΠ½ΠΊΡΠΎΠ² Π½Π° Π°Π½Π³Π»ΠΈΠΉΡΠΊΠΎΠΌ, Π° ΡΠΊΠΎΠ±ΠΊΠ°Ρ , ΠΊΠ°ΠΊ Ρ ΠΏΡΠ΅Π΄ΠΏΠΎΠ»Π°Π³Π°Ρ, ΠΎΠ½ΠΈ Π΄ΠΎΠ»ΠΆΠ½Ρ Π±ΡΡΡ Π½Π° ΡΡΡΡΠΊΠΎΠΌ, Π½ΠΎ ΡΡΠΎ Π½Π΅ ΡΠΎΡΠ½ΠΎ:) )
set my_name = 'Your Name' set my_gmail_user = 'your_login@gmail.com' set my_gmail_pass = 'your_password_here' set my_yandex_user = 'your_login@yandex.ru' set my_yandex_pass = 'your_password_here'
ΡΠΎΠ·Π΄Π°Π΅ΠΌ ΠΊΠ»ΡΡΠΈ, Π΅ΡΠ»ΠΈ ΠΈΡ Π΅ΡΠ΅ Π½Π΅Ρ:
gpg --gen-key
ΡΠΈΡΡΡΠ΅ΠΌ ΡΠ°ΠΉΠ» accounts:
gpg -e -r 'Your Name' accounts
Π·Π°ΡΠΈΡΠ°Π΅ΠΌ ΡΠΎΠ΄Π΅ΡΠΆΠΈΠΌΠΎΠ΅ ΠΈΡΡ ΠΎΠ΄Π½ΠΎΠ³ΠΎ ΡΠ°ΠΉΠ»Π° accounts ΠΈ ΡΠ΄Π°Π»ΡΠ΅ΠΌ Π΅Π³ΠΎ:
shred accounts && rm -f accounts
Π ΡΠ΅Π·ΡΠ»ΡΡΠ°ΡΠ΅ Π΄ΠΎΠ»ΠΆΠ΅Π½ ΠΎΡΡΠ°ΡΡΡΡ ΡΠ°ΠΉΠ» accounts.gpg, ΡΠ°ΠΉΠ» accounts ΡΠ΄Π°Π»ΠΈΡΡΡΡ.
ΠΏΠΎΡΠΌΠΎΡΡΠ΅ΡΡ ΡΠΎΠ΄Π΅ΡΠΆΠΈΠΌΠΎΠ΅ ΡΠ°ΠΉΠ»Π° accounts.gpg ΠΌΠΎΠΆΠ½ΠΎ ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ:
gpg -dq accounts.gpg
source "gpg -dq $HOME/.mutt/accounts.gpg |" folder-hook 'gmail.com' 'source ~/.mutt/gmail' folder-hook 'yandex.ru' 'source ~/.mutt/yandex' source '~/.mutt/gmail' account-hook gmail.com 'set imap_user=$my_gmail_user imap_pass=$my_gmail_pass' account-hook yandex.ru 'set imap_user=$my_yandex_user imap_pass=$my_yandex_pass' macro index <f2> '<change-folder>imaps://imap.gmail.com<enter>' macro index <f3> '<change-folder>imaps://imap.yandex.ru<enter>' set sort = reverse-date set alias_file = ~/.mutt/aliases set sort_alias = alias set reverse_alias = yes source $alias_file set mailcap_path = ~/.mutt/mailcap auto_view text/html
# GENERAL OPTIONS set header_cache = ~/.mutt/gmail.com/cache/headers set message_cachedir = ~/.mutt/gmail.com/cache/bodies unset record # RECEIVE OPTIONS set imap_check_subscribed unset imap_passive set imap_keepalive = 900 set mail_check = 1800 # REMOTE GMAIL FOLDERS set folder = 'imaps://imap.gmail.com:993' set spoolfile = '+INBOX' set postponed = '+[Gmail]/Π§Π΅ΡΠ½ΠΎΠ²ΠΈΠΊΠΈ' # SEND OPTIONS set realname = $my_name set from = $my_gmail_user set smtp_url = 'smtp://'$my_gmail_user'@smtp.gmail.com:587/' set smtp_pass = $my_gmail_pass
# GENERAL OPTIONS set header_cache = ~/.mutt/yandex.ru/cache/headers set message_cachedir = ~/.mutt/yandex.ru/cache/bodies # RECEIVE OPTIONS set imap_check_subscribed unset imap_passive set imap_keepalive = 900 set mail_check = 1800 # REMOTE YANDEX FOLDERS set folder = 'imaps://imap.yandex.ru:993' set spoolfile = '+INBOX' set postponed = '+Π§Π΅ΡΠ½ΠΎΠ²ΠΈΠΊΠΈ' set record = '+ΠΡΠΏΡΠ°Π²Π»Π΅Π½Π½ΡΠ΅' # SEND OPTIONS set ssl_starttls = yes set ssl_force_tls = yes set realname = $my_name set from = $my_yandex_user set smtp_url = 'smtps://'$my_yandex_user'@smtp.yandex.ru:465/' set smtp_pass = $my_yandex_pass
text/html; w3m -I %{charset} -T text/html; copiousoutput;
Π·Π°ΠΏΡΡΠΊΠ°Π΅ΠΌ mutt.
ΠΏΡΠΈ Π·Π°ΠΏΡΡΠΊΠ΅ ΠΎΠ½ ΡΠΏΡΠΎΡΠΈΡ ΠΏΠ°ΡΠΎΠ»Ρ ΠΎΡ Ρ ΡΠ°Π½ΠΈΠ»ΠΈΡΠ° ΠΊΠ»ΡΡΠ΅ΠΉ gpg.
ΠΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΌΠ΅ΠΆΠ΄Ρ gmail ΠΈ yandex - F2 ΠΈ F3 ΡΠΎΠΎΡΠ²Π΅ΡΡΡΠ²Π΅Π½Π½ΠΎ.
--------------------------------------------------------------------------------
ΠΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΠΌΡΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ:
https://gist.github.com/lazyfrost/ca4807e185d5e6816bf1
https://www.dmosk.ru/miniinstruktions.php?mini=mutt
https://techviewleo.com/configure-mutt-as-gmail-client-on-linux/