Instale o mutt
# apt-get install mutt
configure o muttrc em /home/USER/.config/mutt obs: caso o diretório não exista crie!
criar diretorio
$ mkdir /home/USER/.config/mutt
crie o arquivo muttrc no diretório
$ touch /home/USER/.config/mutt/muttrc
configure o arquivo
$ vim /home/USER/.config/mutt/muttrc
# MailBox em $HOME. set mbox_type=maildir set mbox="~/mail/inbox/" set spoolfile="~/mail/inbox/" set folder="~/mail/" set record="~/mail/sent/" set postponed="~/mail/postponed/" # Conta Gmail. set from = "SEU_LOGIN@gmail.com" set realname = "SEU_NOME" set imap_user = "SEU_LOGIN@gmail.com" set imap_pass = "SUA_SENHA" # Editor padrão. set editor=nano # Pastas IMAP. set folder = "imaps://imap.gmail.com:993" set spoolfile = "+INBOX" set postponed ="+[Gmail]/Drafts" # Pastas Locais. set header_cache =~/.mutt/cache/headers set message_cachedir =~/.mutt/cache/bodies set certificate_file =~/.mutt/certificates # SMTP Config. set smtp_url = "smtp://SEU_LOGIN@smtp.gmail.com:587/" set smtp_pass = "SUA_SENHA" # Special Keybindings. bind editor <space> noop macro index gi "<change-folder>=INBOX<enter>" "Go to inbox" macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail" macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to Sent Mail" macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts" # Mutt Session Security. set move = no set imap_keepalive = 900 # Cores. color hdrdefault cyan default color attachment yellow default color header brightyellow default "From: " color header brightyellow default "Subject: " color header brightyellow default "Date: " color quoted green default color quoted1 cyan default color quoted2 green default color quoted3 cyan default color error red default color message white default color indicator white red color status white blue color tree red default color search white blue color markers red default color index yellow default '~O' color index yellow default '~N' color index brightred default '~F' color index blue default '~D' # Cores. # emails. color body brightred black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ # URLs. color body brightblue black (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
autorize o google a utilizar o mutt
site 1: https://www.google.com/settings/security/lesssecureapps
site 2: https://accounts.google.com/DisplayUnlockCaptcha
para enviar um email
$ echo 'texto' | mutt -s 'assunto do e-mail' email@dominio.com
Nenhum comentário:
Postar um comentário