Update pgp documentation #259
Labels
No Label
IMAP
JMAP
Maildir
Retired
User Experience
User Interface
bsd
bug
contacts
currently worked on
documentation
duplicate
easy
enhancement
help wanted
invalid
linux-gnu
macos
mbox
notmuch
question
security
wishlist
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: meli/meli#259
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
@epilys to the key to use to encrypt msgs' from the [pgp] part of the docs
says not functional but you mention you fixed it, so I tried so I can encrypt msgs since I have diff private keys, I am telling meli witch one to use. Cheers.
[update] when I do it with out key it errors and says something error, bug "report this" dont have time to see the full msg the pop up goes away fast I could turn in debug or logs later when i get back home
Do you have an example in how to configure nntp to post? as I mention above I tried again and did not work, prob something not configure right.
Originally posted by @r3k2 in /meli/meli/issues/256#issuecomment-1364
Looks like the manpage is out of date, here's the actual options:
@epilys thanks! I added the decrypt_key, encrypt_key, sign_key, values (that are the same, seems a bit redundent 😄 ). and now it likes the configuration but on the square box says "no keys to encrypt with!" and of course when I press "s" to send, no luck
sorry for all this trouble dont really want to get you with more work.
Here's how key selection works: (press
e
to edit when the cursor is over the encrypt/sign toggleboxes)They need to be documented as well
Hello @epilys thanks for the video, I got the latest fixes you did and tried again but no luck.
Indeed I can select the keys as you show in the video, but still does not work right.
here is my obsevations:
Here is what I think is related in the log:
Cheers
@r3k2 huh weird, because it works for me. Can you retry with
8abc9358
?@epilys thanks, I just tried, and same result, here is more detailed log.
Hm there's no error here. In fact it says that both sending via smtp and saving the file to the sent folder finished successfully.
@epilys wow that is indeed weird they actually going to my draft folder, here I attach screenshot.
These just might be the automatic draft saves.
@r3k2 if you can, add
log::trace!(..)
debug prints in the code path that performs encryption and submission and finally saving. Since it happens on your setup/account I cannot debug myself this unfortunately.@epilys sorry I was busy at work today, I will clone the git repo and try to debug a bit, will need to see how gpgme integrates with rust etc to understand whats going on.
@epilys ok so I figure out the issue and you are right is not related to gpg, I was not even testing it because the main issue is with my smtp config.
looks like my mail provider "migadu" is not liking the way I have meli configure.
what do I have wrong here?
all this I got from the documentation and is how I have configure aerc
TLS, plain, port 465
according to this is correct:
https://www.migadu.com/guides/
Thanks.
PD: After I get this resolved with gpg I can start testing/looking into the nntp stuff.
@r3k2 can you try this patch with the current
master
? The ref is8e698cab
.Save to file (or use a HEREDOC) and e.g.:
patch -p1 < smtp-tls.patch
@epilys I did the patch and recompiled, still the same issue with SMTP :(
is my smtp config correct?
@r3k2 Looks like it is correct. Maybe try one more time with auth type "plain" instead of auto.
How did you find out that this is the problem? Were there any smtp errors in the log?
I just finished trying this,
and still same issue I get a msg saying
Meli "invalid SMTP reply"
I found out because I was not getting any thing that pop out (was in a hurry to) then I remember I never actually tested smtp so I dissabled gpg and extras and tried to send a regular email to another of my accounts at protonmail.com and it failed the same way, this makes sense why I cant post to nntp or smtp, so why I though my config was wrong.
@r3k2 I added a feature
smtp-trace
that is off by default, you can enable it and it will log all communication with the SMTP server. (I thinkdebug-tracing
must be on too)run like so
cargo run --features smtp-trace,debug-tracing 2> meli.log
4874e30f3c
Hello @epilys thanks for helping with this obscure issue.
I did run it, two times, one with a regular build adding the features, and the last time with the cargo run as you wrote above, in both cases not much information got piped to stderr, here is the screenshot with both results.
In both cases says invalid number of options. FYI I have turned off signing and encrypting until I can actually send email :)
@r3k2 um that's peculiar. There's something else going on here, most probably unrelated. The command should work. Also that error string seems to be from
notify-send
. Can you addsmtp-trace
to the default features list inmelib/Cargo.toml
and retry sending an e-mail?@epilys ok, now I get debug and trace output lines in the log.
so far this is what I think is interesting:
and
there is more but I think is reference to saving to draft.
@r3k2 you want the log lines that start with
melib::utils::connections
, these are the raw logs of the smtp connection.@r3k2 I think I fixed it. The connection was sending some plain text data before it turned on TLS.
ae25ffba43
It should work now.
@epilys Sorry I was working from client site and got back home tonight, I was able to test it but no luck with the lates AUR package I will try tomorrow with git master. here is the output from my test now attached. Let me know if you find something I saw some errors
BTW: I also see some nntp errors
prob not related but....
@r3k2 this says
[nntp]
not[smtp]
@r3k2 hmm it did not attached the file? on https://git.meli.delivery/meli/meli/issues/259#issuecomment-1423 it was late in a hurry about to go to bed when I wrote this, maybe I forgot to attach the output file, should be melib::utils::connections for imap here is attached
@epilys ok is not allowing me to paste files, that is why you did not see it the nntp was not the paste I wanted to sent you only a add-on. I uploaded it here [deleted]
@epilys funny I just got and update from AUR for meli and the test smtp fails, I add the backtrace env later need to run to work.