add pgp support

This commit is contained in:
Clément DOUIN
2023-08-02 18:03:47 +02:00
parent 183aa2f306
commit 99ec7c6d97
9 changed files with 141 additions and 98 deletions
+4 -4
View File
@@ -76,8 +76,8 @@ pub async fn edit_tpl_with_editor<P: Printer>(
Ok(PostEditChoice::Send) => {
printer.print_log("Sending email…")?;
let email = tpl
.some_pgp_sign_cmd(config.email_writing_sign_cmd.clone())
.some_pgp_encrypt_cmd(config.email_writing_encrypt_cmd.clone())
.with_pgp_encrypt(config.pgp.clone())
.with_pgp_sign(config.pgp.clone())
.compile()
.await?
.write_to_vec()?;
@@ -103,8 +103,8 @@ pub async fn edit_tpl_with_editor<P: Printer>(
}
Ok(PostEditChoice::RemoteDraft) => {
let email = tpl
.some_pgp_sign_cmd(config.email_writing_sign_cmd.clone())
.some_pgp_encrypt_cmd(config.email_writing_encrypt_cmd.clone())
.with_pgp_encrypt(config.pgp.clone())
.with_pgp_sign(config.pgp.clone())
.compile()
.await?
.write_to_vec()?;