Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
client-config-examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai
client-config-examples
Commits
c3af5216
Commit
c3af5216
authored
8 years ago
by
lucha
Browse files
Options
Downloads
Patches
Plain Diff
offlineimap config
parent
0b1abe6a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
offlineimap/offlineimap.py
+6
-0
6 additions, 0 deletions
offlineimap/offlineimap.py
offlineimap/offlineimaprc
+39
-0
39 additions, 0 deletions
offlineimap/offlineimaprc
with
45 additions
and
0 deletions
offlineimap/offlineimap.py
0 → 100755
+
6
−
0
View file @
c3af5216
#! /usr/bin/env python
# save as $HOME/.offlineimap.py
from
subprocess
import
check_output
def
get_pass
(
account
):
return
check_output
(
"
gpg --no-tty --quiet --for-your-eyes-only -d ~/.password-store/
"
+
account
+
"
.gpg
"
,
shell
=
True
).
rstrip
()
This diff is collapsed.
Click to expand it.
offlineimap/offlineimaprc
0 → 100644
+
39
−
0
View file @
c3af5216
# example configuration for offlineimap
# save as $HOME/.offlineimaprc
# remember to set permission to 700 with
# chmod 700 $HOME/.offlineimaprc
[general]
accounts = Autistici
# you can call external commands via a python script
# mostly useful for obtaining a password from an encrypted file
pythonfile = ~/.offlineimap.py
[Account Autistici]
localrepository = autistici-local
remoterepository = autistici-remote
status_backend = sqlite
[Repository autistici-local]
type = Maildir
localfolders = ~/Mail/Autistici
[Repository autistici-remote]
type = IMAP
remotehost = mail.autistici.org
remoteuser = username@domain.org
remotepass = PASSWORD
# alternatevely, you can use an external command via
remotepasseval = get_pass("autistici.org")
ssl = yes
# location of SSL/TLS CA certificate
sslcacertfile = /etc/ssl/certs/ca-certificates.crt # Most Linux distributions. Might be different on your system.
# If you use mutt, you might want to enable the following
#[mbnames]
#enabled = yes
#filename = ~/.mutt/mailboxes
#header = "mailboxes "
#peritem = "+%(accountname)s/%(foldername)s"
#sep = " "
#footer = "\n"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment