mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +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.
|
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
|
#+NAME: mail-username
|
||||||
#+begin_src emacs-lisp
|
#+begin_src bash
|
||||||
(password-store-get-field "Job/Infrastructure/pvkorytov@etu.ru" "username")
|
pass show Job/Infrastructure/pvkorytov@etu.ru | sed -n 's/username: //;2p'
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+NAME: mail-password
|
#+NAME: mail-password
|
||||||
#+begin_src emacs-lisp
|
#+begin_src bash
|
||||||
(password-store-get "Job/Infrastructure/pvkorytov@etu.ru")
|
pass show Job/Infrastructure/pvkorytov@etu.ru | head -n 1
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_src conf-unix :tangle ~/.offlineimaprc :noweb yes
|
#+begin_src conf-unix :tangle ~/.offlineimaprc :noweb yes
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue