clear mailboxes and display current email address

pull/10/head
gotbletu 8 years ago
parent e423357fc8
commit 4b5fc5e1bd

@ -13,8 +13,8 @@ Mutt is a small but very powerful text based program for reading and sending el
### add email accounts ### add email accounts
- create the text files for each account you want to use - create the text files for each account you want to use
- replace gotbletu with your username - replace **gotbletu** with your username and **realname** to whatever you want to showup
- edit PASSWORD - edit **PASSWORD**
GMAIL GMAIL
@ -34,45 +34,61 @@ GMAIL
vim ~/.mutt/account.com.gmail.gotbletu vim ~/.mutt/account.com.gmail.gotbletu
set imap_user = "gotbletu@gmail.com" unmailboxes *
set imap_pass = "PASSWORD" set imap_user = "gotbletu@gmail.com"
set smtp_url = "smtp://gotbletu@smtp.gmail.com:587/" set imap_pass = "PASSWORD"
set smtp_pass = "PASSWORD" set smtp_url = "smtp://gotbletu@smtp.gmail.com:587/"
set from = "gotbletu@gmail.com" set smtp_pass = "PASSWORD"
set realname = "Lord Mizukage" set from = "gotbletu@gmail.com"
set folder = "imaps://imap.gmail.com:993" set realname = "Lord Mizukage"
set spoolfile = "+INBOX" set folder = "imaps://imap.gmail.com:993"
set postponed = "+[Gmail]/Drafts" set spoolfile = "+INBOX"
set header_cache = ~/.mutt/com.gmail.gotbletu/cache/headers set postponed = "+[Gmail]/Drafts"
set message_cachedir = ~/.mutt/com.gmail.gotbletu/cache/bodies set header_cache = ~/.mutt/com.gmail.gotbletu/cache/headers
set certificate_file = ~/.mutt/com.gmail.gotbletu/certificates set message_cachedir = ~/.mutt/com.gmail.gotbletu/cache/bodies
set certificate_file = ~/.mutt/com.gmail.gotbletu/certificates
set ssl_starttls = yes set ssl_starttls = yes
set ssl_force_tls = yes set ssl_force_tls = yes
set status_format = "$from -%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
YAHOO YAHOO
> Make sure to "Allow apps that use less secure sign in" so mutt can work with yahoo
> https://login.yahoo.com/account/security#other-apps
> Hit Skip password change ...etc until you get to "Account security"
> Allow apps that use less secure sign in: ON
> Some non-Yahoo apps and devices use less secure sign-in technology, which could leave your account vulnerable. You can turn off access (which we recommend) or choose to use them despite the risks.
vim ~/.mutt/account.com.yahoo.gotbletu vim ~/.mutt/account.com.yahoo.gotbletu
unmailboxes *
set imap_user = "gotbletu@yahoo.com" set imap_user = "gotbletu@yahoo.com"
set imap_pass = "PASSWORD" set imap_pass = "PASSWORD"
set smtp_url = "smtps://gotbletu@smtp.mail.yahoo.com:465" set smtp_url = "smtps://gotbletu@smtp.mail.yahoo.com:465"
set smtp_pass = "PASSWORD" set smtp_pass = "PASSWORD"
set from = "gotbletu@yahoo.com" set from = "gotbletu@yahoo.com"
set realname = "Lord Raikage" set realname = "Lord Raikage"
set folder = "imaps://imap.mail.yahoo.com:993" set folder = "imaps://imap.mail.yahoo.com:993"
set spoolfile = "+INBOX" set spoolfile = "+INBOX"
set postponed = "+[Yahoo]/Drafts" set postponed = "+[Yahoo]/Drafts"
set header_cache = ~/.mutt/com.yahoo.gotbletu/cache/headers set header_cache = ~/.mutt/com.yahoo.gotbletu/cache/headers
set message_cachedir = ~/.mutt/com.yahoo.gotbletu/cache/bodies set message_cachedir = ~/.mutt/com.yahoo.gotbletu/cache/bodies
set certificate_file = ~/.mutt/com.yahoo.gotbletu/certificates set certificate_file = ~/.mutt/com.yahoo.gotbletu/certificates
set status_format = "$from -%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
LIVE/msn/hotmail/outlook LIVE/msn/hotmail/outlook
vim ~/.mutt/account.com.live.gotbletu vim ~/.mutt/account.com.live.gotbletu
unmailboxes *
set imap_user = "gotbletu@live.com" set imap_user = "gotbletu@live.com"
set imap_pass = "PASSWORD" set imap_pass = "PASSWORD"
set smtp_url = "smtp://gotbletu@live.com@smtp.live.com:587/" set smtp_url = "smtp://gotbletu@live.com@smtp.live.com:587/"
@ -82,16 +98,18 @@ LIVE/msn/hotmail/outlook
set folder = "imaps://imap-mail.outlook.com:993" set folder = "imaps://imap-mail.outlook.com:993"
set spoolfile = "+INBOX" set spoolfile = "+INBOX"
set postponed = "+[Live]/Drafts" set postponed = "+[Live]/Drafts"
set header_cache = ~/.mutt/com.live.gotbletu/cache/headers set header_cache = ~/.mutt/com.live.gotbletu/cache/headers
set message_cachedir = ~/.mutt/com.live.gotbletu/cache/bodies set message_cachedir = ~/.mutt/com.live.gotbletu/cache/bodies
set certificate_file = ~/.mutt/com.live.gotbletu/certificates set certificate_file = ~/.mutt/com.live.gotbletu/certificates
set ssl_force_tls = yes set ssl_force_tls = yes
set status_format = "$from -%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
Hotmail example Hotmail example
vim ~/.mutt/account.com.hotmail.gotbletu vim ~/.mutt/account.com.hotmail.gotbletu
unmailboxes *
set imap_user = "gotbletu@hotmail.com" set imap_user = "gotbletu@hotmail.com"
set imap_pass = "PASSWORD" set imap_pass = "PASSWORD"
set smtp_url = "smtp://gotbletu@hotmail.com@smtp.live.com:587/" set smtp_url = "smtp://gotbletu@hotmail.com@smtp.live.com:587/"
@ -101,17 +119,19 @@ Hotmail example
set folder = "imaps://imap-mail.outlook.com:993" set folder = "imaps://imap-mail.outlook.com:993"
set spoolfile = "+INBOX" set spoolfile = "+INBOX"
set postponed = "+[Hotmail]/Drafts" set postponed = "+[Hotmail]/Drafts"
set header_cache = ~/.mutt/com.hotmail.gotbletu/cache/headers set header_cache = ~/.mutt/com.hotmail.gotbletu/cache/headers
set message_cachedir = ~/.mutt/com.hotmail.gotbletu/cache/bodies set message_cachedir = ~/.mutt/com.hotmail.gotbletu/cache/bodies
set certificate_file = ~/.mutt/com.hotmail.gotbletu/certificates set certificate_file = ~/.mutt/com.hotmail.gotbletu/certificates
set ssl_force_tls = yes set ssl_force_tls = yes
set status_format = "$from -%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
Openmailbox https://www.openmailbox.org/ Openmailbox https://www.openmailbox.org/
vim ~/.mutt/account.org.openmailbox.gotbletu vim ~/.mutt/account.org.openmailbox.gotbletu
# imaps # imaps
unmailboxes *
set spoolfile = "imaps://imap.openmailbox.org:993/INBOX" set spoolfile = "imaps://imap.openmailbox.org:993/INBOX"
set folder = "imaps://imap.openmailbox.org:993" set folder = "imaps://imap.openmailbox.org:993"
set imap_user = "gotbletu@openmailbox.org" set imap_user = "gotbletu@openmailbox.org"
@ -121,7 +141,7 @@ Openmailbox https://www.openmailbox.org/
set imap_check_subscribed = "yes" set imap_check_subscribed = "yes"
set imap_list_subscribed = "yes" set imap_list_subscribed = "yes"
set mail_check = 60 set mail_check = 60
#smtps #smtps
set smtp_url = "smtps://user@openmailbox.org@openmailbox.org:465" set smtp_url = "smtps://user@openmailbox.org@openmailbox.org:465"
set smtp_pass = "XXX" set smtp_pass = "XXX"
@ -131,17 +151,18 @@ Openmailbox https://www.openmailbox.org/
set charset = "utf-8" set charset = "utf-8"
set assumed_charset = "utf-8" set assumed_charset = "utf-8"
set send_charset = "utf-8:iso-8859-15:us-ascii" set send_charset = "utf-8:iso-8859-15:us-ascii"
set status_format = "$from -%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
# force SSL # force SSL
set ssl_starttls = "yes" set ssl_starttls = "yes"
set ssl_force_tls = "yes" set ssl_force_tls = "yes"
### configuration ### configuration
set your folder hooks, macros hotkey, default account and text editor set your folder hooks, macros hotkey, default account and text editor
vim ~/.muttrc vim ~/.muttrc
@ -151,20 +172,20 @@ set your folder hooks, macros hotkey, default account and text editor
folder-hook 'account.com.yahoo.gotbletu' 'source ~/.mutt/account.com.yahoo.gotbletu' folder-hook 'account.com.yahoo.gotbletu' 'source ~/.mutt/account.com.yahoo.gotbletu'
folder-hook 'account.com.live.gotbletu' 'source ~/.mutt/account.com.live.gotbletu' folder-hook 'account.com.live.gotbletu' 'source ~/.mutt/account.com.live.gotbletu'
folder-hook 'account.com.hotmail.gotbletu' 'source ~/.mutt/account.com.hotmail.gotbletu' folder-hook 'account.com.hotmail.gotbletu' 'source ~/.mutt/account.com.hotmail.gotbletu'
# Default account # Default account
source ~/.mutt/account.com.gmail.gotbletu source ~/.mutt/account.com.gmail.gotbletu
# Macros for switching accounts # Macros for switching accounts
macro index <F12> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.gotbletu<enter><change-folder>!<enter>' macro index <F12> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.gotbletu<enter><change-folder>!<enter>'
macro index <F11> '<sync-mailbox><enter-command>source ~/.mutt/account.com.yahoo.gotbletu<enter><change-folder>!<enter>' macro index <F11> '<sync-mailbox><enter-command>source ~/.mutt/account.com.yahoo.gotbletu<enter><change-folder>!<enter>'
macro index <F10> '<sync-mailbox><enter-command>source ~/.mutt/account.com.live.gotbletu<enter><change-folder>!<enter>' macro index <F10> '<sync-mailbox><enter-command>source ~/.mutt/account.com.live.gotbletu<enter><change-folder>!<enter>'
macro index <F9> '<sync-mailbox><enter-command>source ~/.mutt/account.com.hotmail.gotbletu<enter><change-folder>!<enter>' macro index <F9> '<sync-mailbox><enter-command>source ~/.mutt/account.com.hotmail.gotbletu<enter><change-folder>!<enter>'
# Set default text editor # Set default text editor
set editor = "$EDITOR" set editor = "$EDITOR"
#-------- Basic Config {{{ #-------- Basic Config {{{
#------------------------------------------------------ #------------------------------------------------------
set ssl_starttls = yes set ssl_starttls = yes
@ -188,23 +209,23 @@ set your folder hooks, macros hotkey, default account and text editor
auto_view text/html auto_view text/html
bind editor <Tab> complete-query bind editor <Tab> complete-query
bind editor ^T complete bind editor ^T complete
bind editor <space> noop bind editor <space> noop
# }}} # }}}
#-------- Color Theme {{{ #-------- Color Theme {{{
#------------------------------------------------------ #------------------------------------------------------
color hdrdefault cyan default color hdrdefault cyan default
color attachment yellow default color attachment yellow default
color header brightyellow default "From: " color header brightyellow default "From: "
color header brightyellow default "Subject: " color header brightyellow default "Subject: "
color header brightyellow default "Date: " color header brightyellow default "Date: "
color quoted green default color quoted green default
color quoted1 cyan default color quoted1 cyan default
color quoted2 green default color quoted2 green default
color quoted3 cyan default color quoted3 cyan default
color error red default # error messages color error red default # error messages
color message white default # message informational messages color message white default # message informational messages
color indicator white red # indicator for the "current message" color indicator white red # indicator for the "current message"
@ -212,12 +233,12 @@ set your folder hooks, macros hotkey, default account and text editor
color tree red default # the "tree" display of threads within the folder index color tree red default # the "tree" display of threads within the folder index
color search white blue # search matches found with search within the internal pager color search white blue # search matches found with search within the internal pager
color markers red default # The markers indicate a wrapped line hen showing messages with looong lines color markers red default # The markers indicate a wrapped line hen showing messages with looong lines
color index yellow default '~O' color index yellow default '~O'
color index yellow default '~N' color index yellow default '~N'
color index brightred default '~F' # Flagged Messages are important! color index brightred default '~F' # Flagged Messages are important!
color index blue default '~D' # Deleted Mails - use dark color as these are already "dealt with" color index blue default '~D' # Deleted Mails - use dark color as these are already "dealt with"
# }}} # }}}
### hotkeys to remember ### hotkeys to remember
@ -231,16 +252,16 @@ set your folder hooks, macros hotkey, default account and text editor
- https://github.com/narkoleptik/dotfiles/blob/master/.mutt/account.yahoo - https://github.com/narkoleptik/dotfiles/blob/master/.mutt/account.yahoo
- http://profectium.blogspot.com/2013/12/how-to-set-up-hotmail-in-mutt.html - http://profectium.blogspot.com/2013/12/how-to-set-up-hotmail-in-mutt.html
- http://lifehacker.com/5574557/how-to-use-the-fast-and-powerful-mutt-email-client-with-gmail - http://lifehacker.com/5574557/how-to-use-the-fast-and-powerful-mutt-email-client-with-gmail
### contact ### contact
_ _ _ _ _ _ _ _
__ _ ___ | |_| |__ | | ___| |_ _ _ __ _ ___ | |_| |__ | | ___| |_ _ _
/ _` |/ _ \| __| '_ \| |/ _ \ __| | | | / _` |/ _ \| __| '_ \| |/ _ \ __| | | |
| (_| | (_) | |_| |_) | | __/ |_| |_| | | (_| | (_) | |_| |_) | | __/ |_| |_| |
\__, |\___/ \__|_.__/|_|\___|\__|\__,_| \__, |\___/ \__|_.__/|_|\___|\__|\__,_|
|___/ |___/
- http://www.youtube.com/user/gotbletu - http://www.youtube.com/user/gotbletu
- https://twitter.com/gotbletu - https://twitter.com/gotbletu

Loading…
Cancel
Save