diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2016-11-04 22:31:24 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2016-11-04 22:33:14 +0100 |
| commit | 0c78c8988b7593c3bd43fd54021f71308c06f89d (patch) | |
| tree | b699236b0630df2f950d3754f8de0452b8ff148d | |
| parent | 8aebf25565bcf8f3db6bb7c275fc3d807a838a49 (diff) | |
| download | dotfiles-0c78c8988b7593c3bd43fd54021f71308c06f89d.tar.gz dotfiles-0c78c8988b7593c3bd43fd54021f71308c06f89d.zip | |
add muhq.space to offlineimap setup.
Other changes:
* fix syntax bug in setup.py
* change file permission for decryptet files to 600.
| -rw-r--r-- | offlineimap/MUHQ.IMAP.PASS.gpg | bin | 0 -> 609 bytes | |||
| -rw-r--r-- | offlineimap/offlineimaprc | 39 | ||||
| -rwxr-xr-x | setup.py | 7 |
3 files changed, 31 insertions, 15 deletions
diff --git a/offlineimap/MUHQ.IMAP.PASS.gpg b/offlineimap/MUHQ.IMAP.PASS.gpg Binary files differnew file mode 100644 index 0000000..5779c07 --- /dev/null +++ b/offlineimap/MUHQ.IMAP.PASS.gpg diff --git a/offlineimap/offlineimaprc b/offlineimap/offlineimaprc index d9f6aca..7c7b941 100644 --- a/offlineimap/offlineimaprc +++ b/offlineimap/offlineimaprc @@ -1,26 +1,41 @@ -# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to -# get started fast. +# offlineimap config file [general] -accounts = FAUMail - -[Account FAUMail] -localrepository = Local -remoterepository = Remote +accounts = FAUMail,MUHQ autorefresh=5 quick=10 -[Repository Local] -type = Maildir -localfolders = ~/Mail +[Account FAUMail] +localrepository = LocalFAU +remoterepository = FAU -[Repository Remote] +[Account MUHQ] +localrepository=LocalMUHQ +remoterepository=MUHQ + +[Repository FAU] type = IMAP remotehost = faumail.uni-erlangen.de remoteport = 993 remoteuser = aj46ezos remotepassfile = $DOTFILES_LOCATION/decrypted/FAU.IMAP.PASS - ssl=yes cert_fingerprint = BB9EE687E92693794C752F57C53483076DEF2755 + +[Repository LocalFAU] +type = Maildir +localfolders = ~/Mail/FAU/ + +[Repository MUHQ] +type = IMAP +remotehost = antares.uberspace.de +remoteport = 993 +remoteuser = muhq +remotepassfile = $DOTFILES_LOCATION/decrypted/MUHQ.IMAP.PASS +ssl=yes +cert_fingerprint = B53A1586456E35E454DA3581980330903753AD3E + +[Repository LocalMUHQ] +type = Maildir +localfolders = ~/Mail/MUHQ/ @@ -54,7 +54,7 @@ def dotfile_loc_helper(quiet): def offlineimap_passwd(quiet): """Write the environment file for the systemd unit""" - res = dotfile_loc_helper(quiet): + res = dotfile_loc_helper(quiet) if res: return res env_file_path = "/etc/systemd/system/offlineimap@fischerling.env" @@ -116,7 +116,8 @@ targets = { "offlineimap": [offlineimap_warn, ("offlineimap/offlineimaprc", home_dir + "/.offlineimaprc"), - ("offlineimap/FAU.IMAP.PASS.gpg", home_dir +"/.fau_imap_pass"), + ("offlineimap/FAU.IMAP.PASS.gpg", ""), + ("offlineimap/MUHQ.IMAP.PASS.gpg", ""), ("offlineimap/offlineimap@.service", "/etc/systemd/system/offlineimap@" + user + ".service"), offlineimap_passwd], @@ -156,7 +157,7 @@ def install_target(target, quiet): instruction[1]) # set privacy friendly file permissions - if not subprocess.run(["chmod", "660", instruction[0]]): + if not subprocess.run(["chmod", "600", instruction[0]]): print("Skipping because changing permissions of", instruction[1], "failed. This could be a", "privacy risk!", file=sys.stderr) |
