Add mailbox account
This commit is contained in:
@@ -185,6 +185,61 @@ Expunge Near
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
** Mailbox Account
|
||||
#+BEGIN_SRC conf
|
||||
IMAPAccount mailbox
|
||||
Host imap.mailbox.org
|
||||
User thomas@tdehaeze.xyz
|
||||
PassCmd "pass email/thomas@tdehaeze.xyz"
|
||||
TLSType IMAPS
|
||||
AuthMechs LOGIN
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
IMAPStore mailbox-remote
|
||||
Account mailbox
|
||||
|
||||
MaildirStore mailbox-local
|
||||
Path ~/.local/share/mails/mailbox/
|
||||
Inbox ~/.local/share/mails/mailbox/Inbox
|
||||
|
||||
Channel mailbox-Home
|
||||
Far :mailbox-remote:INBOX
|
||||
Near :mailbox-local:Inbox
|
||||
|
||||
Channel mailbox-Drafts
|
||||
Far :mailbox-remote:Drafts
|
||||
Near :mailbox-local:Drafts
|
||||
|
||||
Channel mailbox-Archive
|
||||
Far :mailbox-remote:Archive
|
||||
Near :mailbox-local:Archive
|
||||
|
||||
Channel mailbox-Sent
|
||||
Far :mailbox-remote:Sent
|
||||
Near :mailbox-local:Sent
|
||||
|
||||
Channel mailbox-Trash
|
||||
Far :mailbox-remote:Trash
|
||||
Near :mailbox-local:Trash
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
Channel mailbox
|
||||
Far :mailbox-remote:
|
||||
Near :mailbox-local:
|
||||
#+END_SRC
|
||||
|
||||
For doing a quick sync of just the INBOX with =mbsync mailbox-download=.
|
||||
#+BEGIN_SRC conf
|
||||
Channel mailbox-download
|
||||
Far :mailbox-remote:INBOX
|
||||
Near :mailbox-local:Inbox
|
||||
Create Near
|
||||
Expunge Near
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
** ESRF Account
|
||||
#+BEGIN_SRC conf
|
||||
IMAPAccount esrf
|
||||
@@ -269,6 +324,17 @@ passwordeval "pass email/dehaeze.thomas@gmail.com"
|
||||
# proxy_port 8080
|
||||
#+END_SRC
|
||||
|
||||
** Mailbox Account
|
||||
#+BEGIN_SRC conf
|
||||
account mailbox
|
||||
host smtp.mailbox.org
|
||||
port 587
|
||||
protocol smtp
|
||||
from thomas@tdehaeze.xyz
|
||||
user thomas@tdehaeze.xyz
|
||||
passwordeval "pass email/thomas@tdehaeze.xyz"
|
||||
#+END_SRC
|
||||
|
||||
** ESRF Account
|
||||
#+BEGIN_SRC conf
|
||||
account esrf
|
||||
@@ -1031,9 +1097,11 @@ set from = "thomas.dehaeze@esrf.fr"
|
||||
|
||||
folder-hook gmail/* source $HOME/.config/neomutt/accounts/gmail
|
||||
folder-hook esrf/* source $HOME/.config/neomutt/accounts/esrf
|
||||
folder-hook mailbox/* source $HOME/.config/neomutt/accounts/mailbox
|
||||
|
||||
macro index,pager ge "<change-folder>+esrf/Inbox<enter>" "go to inbox"
|
||||
macro index,pager gm "<change-folder>+gmail/Inbox<enter>" "go to inbox"
|
||||
macro index,pager gb "<change-folder>+mailbox/Inbox<enter>" "go to inbox"
|
||||
#+END_SRC
|
||||
|
||||
*** Gmail
|
||||
@@ -1067,6 +1135,36 @@ This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
*** Mailbox
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/mailbox :comments none
|
||||
set from = "thomas@tdehaeze.xyz"
|
||||
set sendmail = "$HOME/.config/neomutt/bin/send_mail.sh mailbox"
|
||||
|
||||
# Other special folders.
|
||||
set mbox = "+mailbox/Archive"
|
||||
set record = "+mailbox/Sent"
|
||||
set postponed = "+mailbox/Drafts"
|
||||
|
||||
set signature = "$HOME/.config/neomutt/accounts/mailbox.signature"
|
||||
|
||||
macro index,pager d \
|
||||
"<save-message>+mailbox/Archive<enter>" \
|
||||
"Move message to the Archive"
|
||||
|
||||
macro index,pager D \
|
||||
"<save-message>+mailbox/Trash<enter>" \
|
||||
"Move message to the Trash"
|
||||
#+end_src
|
||||
|
||||
**** Signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/mailbox.signature :comments none :padline no
|
||||
Thomas DEHAEZE
|
||||
#+end_src
|
||||
This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/mailbox.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
*** ESRF
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf :comments none
|
||||
@@ -1257,6 +1355,12 @@ named-mailboxes " Sent" =gmail/Sent
|
||||
named-mailboxes " Drafts" =gmail/Drafts
|
||||
named-mailboxes " Archive" =gmail/Archive
|
||||
named-mailboxes " Trash" =gmail/Trash
|
||||
named-mailboxes " MAILBOX" =empty/mailbox
|
||||
named-mailboxes " Inbox" =mailbox/Inbox
|
||||
named-mailboxes " Sent" =mailbox/Sent
|
||||
named-mailboxes " Drafts" =mailbox/Drafts
|
||||
named-mailboxes " Archive" =mailbox/Archive
|
||||
named-mailboxes " Trash" =mailbox/Trash
|
||||
named-mailboxes " ESRF" =empty/esrf
|
||||
named-mailboxes " Inbox" =esrf/Inbox
|
||||
named-mailboxes " Sent" =esrf/Sent
|
||||
|
||||
Reference in New Issue
Block a user