diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-01-14 22:54:02 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-01-14 22:54:02 +0800 |
commit | 9852abd6acd492830310e5718ed08e76bcb35778 (patch) | |
tree | 9ec87ba77698dc37c2532e1a46002bd09b64cade /_offlineimap | |
parent | b6a89d6feb06c066d09a83d562879c8a80242be4 (diff) | |
download | dotfiles-9852abd6acd492830310e5718ed08e76bcb35778.tar.bz2 |
Small updates.
* `_Xmodmap`: add comment about `setxkbmap`
* `_ncmpcpp/bindings`: add back syntax documentation
* `_notmuch-config`: avoid use absolute/explicit home path
* `_offlineimap/offlineimap.py`: add comment on password file creation
Diffstat (limited to '_offlineimap')
-rwxr-xr-x | _offlineimap/offlineimap.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/_offlineimap/offlineimap.py b/_offlineimap/offlineimap.py index e3ae422..7d9d2fd 100755 --- a/_offlineimap/offlineimap.py +++ b/_offlineimap/offlineimap.py @@ -11,16 +11,24 @@ # remotepasseval = mailpasswd("<accountname>") # ... # +# Create encrypted password file: +# > echo "password" | gpg2 -e -r foo@bar.com > account.gpg +# # Reference: # [1] Encrypt OfflineIMAP Password -# http://unix.stackexchange.com/questions/44214/encrypt-offlineimap-password +# http://unix.stackexchange.com/a/48355 +# # -# Updated: 2015/02/02 +# Aaron LI +# Created: 2015-02-02 +# Updated: 2016-01-11 # + import os import subprocess + def mailpasswd(account): account = os.path.basename(account) path = '{0}/.offlineimap/{1}.gpg'.format(os.environ['HOME'], account) |