mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(mail): elisp -> bash for pass noweb to avoid 3rd party packages
This commit is contained in:
parent
09aace32d7
commit
7049a69822
1 changed files with 6 additions and 4 deletions
10
Mail.org
10
Mail.org
|
|
@ -97,14 +97,16 @@ I have a few options for setting a username and password. First, I can run =pass
|
|||
|
||||
Another option is to use noweb and not push the file below to the version control. Then I have a plaintext password of email on my computer, but I think it's a lesser evil than the entire keyring.
|
||||
|
||||
I would use =password-store-get= from password-store.el, but I want this to be able to run without any 3rd party packages, so it's just bash.
|
||||
|
||||
#+NAME: mail-username
|
||||
#+begin_src emacs-lisp
|
||||
(password-store-get-field "Job/Infrastructure/pvkorytov@etu.ru" "username")
|
||||
#+begin_src bash
|
||||
pass show Job/Infrastructure/pvkorytov@etu.ru | sed -n 's/username: //;2p'
|
||||
#+end_src
|
||||
|
||||
#+NAME: mail-password
|
||||
#+begin_src emacs-lisp
|
||||
(password-store-get "Job/Infrastructure/pvkorytov@etu.ru")
|
||||
#+begin_src bash
|
||||
pass show Job/Infrastructure/pvkorytov@etu.ru | head -n 1
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf-unix :tangle ~/.offlineimaprc :noweb yes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue