From 9852abd6acd492830310e5718ed08e76bcb35778 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 14 Jan 2016 22:54:02 +0800 Subject: 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 --- _offlineimap/offlineimap.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '_offlineimap') 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("") # ... # +# 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) -- cgit v1.2.2