aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-11-29 03:15:39 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-11-29 03:15:39 +0100
commitfd7d4f74ccd43f96e95d70ce1c61ade76139c455 (patch)
treefad7d7077e60ae01b84e2973a4596bebbe1319bb
parenteb84b0d46d6024eabf11cfca3986802b5f8b2c6d (diff)
downloaddotfiles-fd7d4f74ccd43f96e95d70ce1c61ade76139c455.tar.gz
dotfiles-fd7d4f74ccd43f96e95d70ce1c61ade76139c455.zip
add snfmt email
-rw-r--r--config/lumail/lumail.lua10
-rw-r--r--config/offlineimap/config23
-rw-r--r--msmtprc11
3 files changed, 41 insertions, 3 deletions
diff --git a/config/lumail/lumail.lua b/config/lumail/lumail.lua
index 678f805..7add262 100644
--- a/config/lumail/lumail.lua
+++ b/config/lumail/lumail.lua
@@ -60,16 +60,24 @@ function on_folder_changed(folder)
local path = folder:path()
if path:find("FAU") then
account = "fau"
+ Config:set("global.name", "Florian Fischer")
Config:set("global.address", "florian.fl.fischer@fau.de")
Config:set("global.sent-mail", MAILPREFIX .. "/FAU/Sent")
Config:set("global.trash-mail", MAILPREFIX.."/FAU/Trash")
Config:set("gpg.mode", "auto")
elseif path:find("MUHQ") then
account = "muhq"
+ Config:set("global.name", "Florian Fischer")
Config:set("global.address", "florian.fischer@muhq.space")
Config:set("global.sent-mail", MAILPREFIX .. "/MUHQ/Sent")
Config:set("global.trash-mail", MAILPREFIX.."/MUHQ/Trash")
Config:set("gpg.mode", "")
+ elseif path:find("SNFMT") then
+ account = "snfmt"
+ Config:set("global.name", "The Supernova")
+ Config:set("global.address", "snfmt@supernovafickmichtot.de")
+ Config:set("global.sent-mail", MAILPREFIX .. "/SNFMT/Sent")
+ Config:set("global.trash-mail", MAILPREFIX.."/SNFMT/Trash")
end
-- update sender
Config:set("global.sender", Config:get("global.name").." <"..Config:get("global.address")..">")
@@ -185,3 +193,5 @@ colour_table['message'] = {
-- Specify address book command.
--
Config:set("complete.addressbookcmd", "khard email --parsable")
+
+_G["message_replace"] = nil
diff --git a/config/offlineimap/config b/config/offlineimap/config
index efe780b..0edd597 100644
--- a/config/offlineimap/config
+++ b/config/offlineimap/config
@@ -1,7 +1,7 @@
# offlineimap config file
[general]
-accounts = FAUMail,MUHQ
+accounts = FAUMail,MUHQ,SNFMT
maxsyncaccounts = 2
pythonfile = ~/.config/offlineimap/offlineimap.py
@@ -47,3 +47,24 @@ newmail_hook = lambda: __import__("os").system("notify-send \"new mail in MUHQ\"
[Repository LocalMUHQ]
type = Maildir
localfolders = ~/.local/share/maildir/MUHQ/
+
+[Account SNFMT]
+localrepository=LocalSNFMT
+remoterepository=SNFMT
+
+autorefresh=1
+quick=10
+
+[Repository SNFMT]
+type = IMAP
+remotehost = alnilam.uberspace.de
+remoteport = 993
+remoteuser = snfmt
+remotepasseval = get_passwd("SNFMT")
+ssl=yes
+cert_fingerprint = ED32CD6A6126478D47EFDB2B2E79EC1F3A6BD39A
+newmail_hook = lambda: __import__("os").system("notify-send \"new mail in SNFMT\"")
+
+[Repository LocalSNFMT]
+type = Maildir
+localfolders = ~/.local/share/maildir/SNFMT/
diff --git a/msmtprc b/msmtprc
index a4852c6..a179e63 100644
--- a/msmtprc
+++ b/msmtprc
@@ -12,14 +12,21 @@ host faumail.uni-erlangen.de
tls_fingerprint BB:9E:E6:87:E9:26:93:79:4C:75:2F:57:C5:34:83:07:6D:EF:27:55
from florian.fl.fischer@fau.de
user aj46ezos
-passwordeval pass internet/studium/FAU_idM
+passwordeval pass email/FAU
# MUHQ
account muhq
host antares.uberspace.de
tls_fingerprint B5:3A:15:86:45:6E:35:E4:54:DA:35:81:98:03:30:90:37:53:AD:3E
user muhq
-passwordeval pass internet/uberspace/ssh
+passwordeval pass email/MUHQ
+
+# SNFMT
+account snfmt
+host alnilam.uberspace.de
+tls_fingerprint ED:32:CD:6A:61:26:47:8D:47:EF:DB:2B:2E:79:EC:1F:3A:6B:D3:9A
+user snfmt
+passwordeval pass email/SNFMT
# Set a default account
account default : fau