Update pgp documentation #259

Closed
opened 2023-07-15 17:00:17 +03:00 by Manos Pitsidianakis · 27 comments

@epilys to the key to use to encrypt msgs' from the [pgp] part of the docs

key String
(optional) Key to be used when signing/encrypting (not functional yet) (none)

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

@epilys to the key to use to encrypt msgs' from the [pgp] part of the docs ``` key String (optional) Key to be used when signing/encrypting (not functional yet) (none) ``` 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:

pub struct PGPSettings {
    /// auto verify signed e-mail according to RFC3156
    /// Default: true
    #[serde(default = "true_val", alias = "auto-verify-signatures")]
    pub auto_verify_signatures: bool,

    /// auto decrypt encrypted e-mail
    /// Default: true
    #[serde(default = "true_val", alias = "auto-decrypt")]
    pub auto_decrypt: bool,

    /// always sign sent e-mail
    /// Default: false
    #[serde(default = "false_val", alias = "auto-sign")]
    pub auto_sign: bool,

    /// Auto encrypt sent e-mail
    /// Default: false
    #[serde(default = "false_val", alias = "auto-encrypt")]
    pub auto_encrypt: bool,

    // https://tools.ietf.org/html/rfc4880#section-12.2
    /// Default: None
    #[serde(default = "none", alias = "sign-key")]
    pub sign_key: Option<String>,

    /// Default: None
    #[serde(default = "none", alias = "decrypt-key")]
    pub decrypt_key: Option<String>,

    /// Default: None
    #[serde(default = "none", alias = "encrypt-key")]
    pub encrypt_key: Option<String>,

    /// Allow remote lookups
    /// Default: None
    #[serde(default = "internal_value_false", alias = "allow-remote-lookups")]
    pub allow_remote_lookup: ToggleFlag,

    /// Remote lookup mechanisms.
    /// Default: "local,wkd"
    #[cfg_attr(
        feature = "gpgme",
        serde(
            default = "default_lookup_mechanism",
            alias = "remote-lookup-mechanisms"
        )
    )]
    #[cfg(feature = "gpgme")]
    pub remote_lookup_mechanisms: melib::gpgme::LocateKey,
    #[cfg(not(feature = "gpgme"))]
    #[cfg_attr(
        not(feature = "gpgme"),
        serde(default, alias = "remote-lookup-mechanisms")
    )]
    pub remote_lookup_mechanisms: String,
}
Looks like the manpage is out of date, here's the actual options: ```rust pub struct PGPSettings { /// auto verify signed e-mail according to RFC3156 /// Default: true #[serde(default = "true_val", alias = "auto-verify-signatures")] pub auto_verify_signatures: bool, /// auto decrypt encrypted e-mail /// Default: true #[serde(default = "true_val", alias = "auto-decrypt")] pub auto_decrypt: bool, /// always sign sent e-mail /// Default: false #[serde(default = "false_val", alias = "auto-sign")] pub auto_sign: bool, /// Auto encrypt sent e-mail /// Default: false #[serde(default = "false_val", alias = "auto-encrypt")] pub auto_encrypt: bool, // https://tools.ietf.org/html/rfc4880#section-12.2 /// Default: None #[serde(default = "none", alias = "sign-key")] pub sign_key: Option<String>, /// Default: None #[serde(default = "none", alias = "decrypt-key")] pub decrypt_key: Option<String>, /// Default: None #[serde(default = "none", alias = "encrypt-key")] pub encrypt_key: Option<String>, /// Allow remote lookups /// Default: None #[serde(default = "internal_value_false", alias = "allow-remote-lookups")] pub allow_remote_lookup: ToggleFlag, /// Remote lookup mechanisms. /// Default: "local,wkd" #[cfg_attr( feature = "gpgme", serde( default = "default_lookup_mechanism", alias = "remote-lookup-mechanisms" ) )] #[cfg(feature = "gpgme")] pub remote_lookup_mechanisms: melib::gpgme::LocateKey, #[cfg(not(feature = "gpgme"))] #[cfg_attr( not(feature = "gpgme"), serde(default, alias = "remote-lookup-mechanisms") )] pub remote_lookup_mechanisms: String, } ```
Manos Pitsidianakis added the
bug
documentation
labels 2023-07-15 17:00:53 +03:00

@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

t, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: prefix = ""
Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: err = ENOENT
Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: prefix = ""
Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: err = ENOENT
Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: prefix = ""
Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: err = ENOENT
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(Input((Char('\n'), [13])))
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(ChangeMode(Normal)))
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(Input((Char('s'), [115])))
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(Input((Char('\n'), [13])))
Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 1 got task "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c
Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 1 returned after "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c
Sat, 15 Jul 2023 17:34 [TRACE]: meli::components::mail::pgp: main attachment is Attachment { Content-Type: Text { kind: Plain, parameters: [([102, 111, 114, 109, 97, 116], [102, 108, 111, 119, 101, 100])], charset: UTF8 }, Content-Transfer-Encoding: _8Bit, bytes: 27, body: "test encryption with meli\r\n" }
Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 3 got task "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c
Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 3 returned after "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c))
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Job finished 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c))))
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c))))
Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c))))

sorry for all this trouble dont really want to get you with more work.

@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 ``` t, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: prefix = "" Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: err = ENOENT Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: prefix = "" Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: err = ENOENT Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: prefix = "" Sat, 15 Jul 2023 17:34 [DEBUG]: melib::utils::shellexpand: err = ENOENT Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(Input((Char('\n'), [13]))) Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(ChangeMode(Normal))) Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(Input((Char('s'), [115]))) Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(Input((Char('\n'), [13]))) Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 1 got task "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 1 returned after "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c Sat, 15 Jul 2023 17:34 [TRACE]: meli::components::mail::pgp: main attachment is Attachment { Content-Type: Text { kind: Plain, parameters: [([102, 111, 114, 109, 97, 116], [102, 108, 111, 119, 101, 100])], charset: UTF8 }, Content-Transfer-Encoding: _8Bit, bytes: 27, body: "test encryption with meli\r\n" } Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 3 got task "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c Sat, 15 Jul 2023 17:34 [TRACE]: meli::jobs: Worker 3 returned after "compose::submit" 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c)) Sat, 15 Jul 2023 17:34 [TRACE]: meli: Job finished 11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c)))) Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c)))) Sat, 15 Jul 2023 17:34 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(11b3ad19-1e98-4f8c-9281-4d7d9ac63e5c)))) ``` 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)

key_selection.mp4

They need to be documented as well

Here's how key selection works: (press `e` to edit when the cursor is over the encrypt/sign toggleboxes) ![key_selection.mp4](/attachments/97deda8e-88da-4a72-8c54-aa2667d02af9) 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:

  1. if keys are added to the config they should be pickup by default, I notice the signature does but not the encrypt option.
  2. if I select them both manually with e like you show above still errors out and I get this pop up just waiting until it says SMTP not understood or similar.(img attached)

Here is what I think is related in the log:

Sat, 15 Jul 2023 21:41 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" 570b1566-b1ae-4121-88bb-01a00bc1eb2e
Sat, 15 Jul 2023 21:41 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" 570b1566-b1ae-4121-88bb-01a00bc1eb2e
Sat, 15 Jul 2023 21:41 [TRACE]: meli::components::mail::pgp: main attachment is Attachment { Content-Type: Text { kind: Plain, parameters: [([102, 111, 114, 109, 97, 116], [102, 108, 111, 119, 101, 100])], charset: UTF8 }, Content-Transfer-Encoding: _8Bit, bytes: 30, body: "\r\nesto es un test de cifrado\r\n" }
Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: error in parsing attachment: Parsing Error: ParsingError { input: "Version: 1", error: "Alternative, Many1, Alternative, header_value(): expected new line after header value" }
Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: 
-------------------------------
Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: Version: 1

Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: -------------------------------

Cheers

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: 1. if keys are added to the config they should be pickup by default, I notice the signature does but not the encrypt option. 2. if I select them both manually with e like you show above still errors out and I get this pop up just waiting until it says SMTP not understood or similar.(img attached) Here is what I think is related in the log: ``` Sat, 15 Jul 2023 21:41 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" 570b1566-b1ae-4121-88bb-01a00bc1eb2e Sat, 15 Jul 2023 21:41 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" 570b1566-b1ae-4121-88bb-01a00bc1eb2e Sat, 15 Jul 2023 21:41 [TRACE]: meli::components::mail::pgp: main attachment is Attachment { Content-Type: Text { kind: Plain, parameters: [([102, 111, 114, 109, 97, 116], [102, 108, 111, 119, 101, 100])], charset: UTF8 }, Content-Transfer-Encoding: _8Bit, bytes: 30, body: "\r\nesto es un test de cifrado\r\n" } Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: error in parsing attachment: Parsing Error: ParsingError { input: "Version: 1", error: "Alternative, Many1, Alternative, header_value(): expected new line after header value" } Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: ------------------------------- Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: Version: 1 Sat, 15 Jul 2023 21:41 [DEBUG]: melib::email::attachments: ------------------------------- ``` Cheers

@r3k2 huh weird, because it works for me. Can you retry with 8abc9358 ?

@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.

Sun, 16 Jul 2023 17:01 [TRACE]: meli::jobs: Worker 1 got task "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40
Sun, 16 Jul 2023 17:01 [TRACE]: meli::jobs: Worker 1 returned after "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40
Sun, 16 Jul 2023 17:01 [TRACE]: meli::components::mail::pgp: main attachment is Attachment { Content-Type: Text { kind: Plain, parameters: [([102, 111, 114, 109, 97, 116], [102, 108, 111, 119, 101, 100])], charset: UTF8 }, Content-Transfer-Encoding: _8Bit, bytes: 19, body: "\r\ntesting testing\r\n" }
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(Callback(CallbackFn)))
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(7ae43736-d318-4f29-b6d9-ee12844a7b07))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished b75e9fb2-a15a-4c0d-bfa8-98417214cc40
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 9 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(BackendEvent(AccountHash(8808954225396028897), Refresh(RefreshEvent { mailbox_hash: MailboxHash(2107659269461600757), account_hash: AccountHash(8808954225396028897), kind: Create(Envelope { Subject: "test", Date: "Sun, 16 Jul 2023 17:00:36 +0200", From: [Address::Mailbox { display_name: "ReK2", address_spec: "rek2@hispagatos.org" }], To: [Address::Mailbox { display_name: "", address_spec: "rek2@hispagatos.org" }], Message-ID: "<xw9q8.vr30tgigotyv@hispagatos.org>", In-Reply-To: None, References: None, Flags: SEEN | DRAFT, Hash: EnvelopeHash(6880501869038632337) }) }))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 got task "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 returned after "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 9 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(cd972dce-035b-4d6e-9d8b-7dd91255f88c))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(BackendEvent(AccountHash(8808954225396028897), Refresh(RefreshEvent { mailbox_hash: MailboxHash(2107659269461600757), account_hash: AccountHash(8808954225396028897), kind: Create(Envelope { Subject: "test", Date: "Sun, 16 Jul 2023 17:00:36 +0200", From: [Address::Mailbox { display_name: "ReK2", address_spec: "rek2@hispagatos.org" }], To: [Address::Mailbox { display_name: "", address_spec: "rek2@hispagatos.org" }], Message-ID: "<xw9q8.vr30tgigotyv@hispagatos.org>", In-Reply-To: None, References: None, Flags: SEEN | DRAFT, Hash: EnvelopeHash(6880501869038632337) }) }))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 got task "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 returned after "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(7ae43736-d318-4f29-b6d9-ee12844a7b07))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished 7ae43736-d318-4f29-b6d9-ee12844a7b07
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(cd972dce-035b-4d6e-9d8b-7dd91255f88c))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished cd972dce-035b-4d6e-9d8b-7dd91255f88c
Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: got payload in status for 2107659269461600757
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(7ae43736-d318-4f29-b6d9-ee12844a7b07))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(cd972dce-035b-4d6e-9d8b-7dd91255f88c))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(ca75b62f-0765-4444-8ac1-354f63e86df8))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(MailboxUpdate((AccountHash(8808954225396028897), MailboxHash(2107659269461600757)))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 5 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 5 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(ca75b62f-0765-4444-8ac1-354f63e86df8))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished ca75b62f-0765-4444-8ac1-354f63e86df8
Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: got payload in status for 2107659269461600757
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "rest_fetch" 43cd2751-534e-458d-95b4-e88f97288b25
Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "rest_fetch" 43cd2751-534e-458d-95b4-e88f97288b25
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(ca75b62f-0765-4444-8ac1-354f63e86df8))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(43cd2751-534e-458d-95b4-e88f97288b25))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(43cd2751-534e-458d-95b4-e88f97288b25))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished 43cd2751-534e-458d-95b4-e88f97288b25
Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: got payload in status for 2107659269461600757
Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: finished in status for 2107659269461600757
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(MailboxUpdate((AccountHash(8808954225396028897), MailboxHash(2107659269461600757)))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(43cd2751-534e-458d-95b4-e88f97288b25))))
Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(MailboxUpdate((AccountHash(8808954225396028897), MailboxHash(2107659269461600757)))))
@epilys thanks, I just tried, and same result, here is more detailed log. ``` Sun, 16 Jul 2023 17:01 [TRACE]: meli::jobs: Worker 1 got task "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40 Sun, 16 Jul 2023 17:01 [TRACE]: meli::jobs: Worker 1 returned after "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40 Sun, 16 Jul 2023 17:01 [TRACE]: meli::components::mail::pgp: main attachment is Attachment { Content-Type: Text { kind: Plain, parameters: [([102, 111, 114, 109, 97, 116], [102, 108, 111, 119, 101, 100])], charset: UTF8 }, Content-Transfer-Encoding: _8Bit, bytes: 19, body: "\r\ntesting testing\r\n" } Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(Callback(CallbackFn))) Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" b75e9fb2-a15a-4c0d-bfa8-98417214cc40 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(7ae43736-d318-4f29-b6d9-ee12844a7b07)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40)) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished b75e9fb2-a15a-4c0d-bfa8-98417214cc40 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(b75e9fb2-a15a-4c0d-bfa8-98417214cc40)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 9 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(BackendEvent(AccountHash(8808954225396028897), Refresh(RefreshEvent { mailbox_hash: MailboxHash(2107659269461600757), account_hash: AccountHash(8808954225396028897), kind: Create(Envelope { Subject: "test", Date: "Sun, 16 Jul 2023 17:00:36 +0200", From: [Address::Mailbox { display_name: "ReK2", address_spec: "rek2@hispagatos.org" }], To: [Address::Mailbox { display_name: "", address_spec: "rek2@hispagatos.org" }], Message-ID: "<xw9q8.vr30tgigotyv@hispagatos.org>", In-Reply-To: None, References: None, Flags: SEEN | DRAFT, Hash: EnvelopeHash(6880501869038632337) }) })))) Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 got task "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 2 returned after "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 9 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(cd972dce-035b-4d6e-9d8b-7dd91255f88c)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 got task "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(BackendEvent(AccountHash(8808954225396028897), Refresh(RefreshEvent { mailbox_hash: MailboxHash(2107659269461600757), account_hash: AccountHash(8808954225396028897), kind: Create(Envelope { Subject: "test", Date: "Sun, 16 Jul 2023 17:00:36 +0200", From: [Address::Mailbox { display_name: "ReK2", address_spec: "rek2@hispagatos.org" }], To: [Address::Mailbox { display_name: "", address_spec: "rek2@hispagatos.org" }], Message-ID: "<xw9q8.vr30tgigotyv@hispagatos.org>", In-Reply-To: None, References: None, Flags: SEEN | DRAFT, Hash: EnvelopeHash(6880501869038632337) }) })))) Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 returned after "save" 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 got task "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 7 returned after "mailbox_fetch" cd972dce-035b-4d6e-9d8b-7dd91255f88c Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(7ae43736-d318-4f29-b6d9-ee12844a7b07)) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished 7ae43736-d318-4f29-b6d9-ee12844a7b07 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(cd972dce-035b-4d6e-9d8b-7dd91255f88c)) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished cd972dce-035b-4d6e-9d8b-7dd91255f88c Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: got payload in status for 2107659269461600757 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(7ae43736-d318-4f29-b6d9-ee12844a7b07)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(cd972dce-035b-4d6e-9d8b-7dd91255f88c)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(ca75b62f-0765-4444-8ac1-354f63e86df8)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(MailboxUpdate((AccountHash(8808954225396028897), MailboxHash(2107659269461600757))))) Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 5 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 5 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 3 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 got task "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 1 returned after "rest_fetch" ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(ca75b62f-0765-4444-8ac1-354f63e86df8)) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished ca75b62f-0765-4444-8ac1-354f63e86df8 Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: got payload in status for 2107659269461600757 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 got task "rest_fetch" 43cd2751-534e-458d-95b4-e88f97288b25 Sun, 16 Jul 2023 17:02 [TRACE]: meli::jobs: Worker 0 returned after "rest_fetch" 43cd2751-534e-458d-95b4-e88f97288b25 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(ca75b62f-0765-4444-8ac1-354f63e86df8)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(43cd2751-534e-458d-95b4-e88f97288b25)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(JobFinished(43cd2751-534e-458d-95b4-e88f97288b25)) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Job finished 43cd2751-534e-458d-95b4-e88f97288b25 Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: got payload in status for 2107659269461600757 Sun, 16 Jul 2023 17:02 [TRACE]: meli::conf::accounts: finished in status for 2107659269461600757 Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(MailboxUpdate((AccountHash(8808954225396028897), MailboxHash(2107659269461600757))))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(43cd2751-534e-458d-95b4-e88f97288b25)))) Sun, 16 Jul 2023 17:02 [TRACE]: meli: Ok(UIEvent(MailboxUpdate((AccountHash(8808954225396028897), MailboxHash(2107659269461600757))))) ```

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.

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.

@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.

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 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?

composing.send_mail = { hostname = "smtp.migadu.com", port = 465, auth = { type = "auto", username = "rek2@hispagatos.org", password = { type = "command_eval", value = "gopass show -o -f email/rek2@hispagatos.org" } }, security = { type = "TLS" } }

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.

@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? ``` composing.send_mail = { hostname = "smtp.migadu.com", port = 465, auth = { type = "auto", username = "rek2@hispagatos.org", password = { type = "command_eval", value = "gopass show -o -f email/rek2@hispagatos.org" } }, security = { type = "TLS" } } ``` 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 is 8e698cab.

Save to file (or use a HEREDOC) and e.g.: patch -p1 < smtp-tls.patch

diff --git a/melib/src/smtp.rs b/melib/src/smtp.rs
index 0b8fac84..9d55a6a9 100644
--- a/melib/src/smtp.rs
+++ b/melib/src/smtp.rs
@@ -291,8 +291,8 @@ impl SmtpConnection {
                         ));
                     }
                 }
-                socket.write_all(b"EHLO meli.delivery\r\n").await?;
                 if matches!(server_conf.security, SmtpSecurity::StartTLS { .. }) {
+                    socket.write_all(b"EHLO meli.delivery\r\n").await?;
                     let pre_tls_extensions_reply = read_lines(
                         &mut socket,
                         &mut res,
@r3k2 can you try this patch with the current `master`? The ref is 8e698cab. Save to file (or use a HEREDOC) and e.g.: `patch -p1 < smtp-tls.patch` ```diff diff --git a/melib/src/smtp.rs b/melib/src/smtp.rs index 0b8fac84..9d55a6a9 100644 --- a/melib/src/smtp.rs +++ b/melib/src/smtp.rs @@ -291,8 +291,8 @@ impl SmtpConnection { )); } } - socket.write_all(b"EHLO meli.delivery\r\n").await?; if matches!(server_conf.security, SmtpSecurity::StartTLS { .. }) { + socket.write_all(b"EHLO meli.delivery\r\n").await?; let pre_tls_extensions_reply = read_lines( &mut socket, &mut res, ```

@epilys I did the patch and recompiled, still the same issue with SMTP :(
is my smtp config correct?

@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?

@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.

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 think debug-tracing must be on too)

run like so cargo run --features smtp-trace,debug-tracing 2> meli.log

4874e30f3c

@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 think `debug-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 :)

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 add smtp-trace to the default features list in melib/Cargo.toml and retry sending an e-mail?

@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 add `smtp-trace` to the default features list in `melib/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:

Sat, 22 Jul 2023 22:09 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433
Sat, 22 Jul 2023 22:09 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433
Sat, 22 Jul 2023 22:09 [TRACE]: melib::utils::connections: Tcp { inner: TcpStream { addr: 192.168.0.10:44670, peer: 51.255.82.75:465, fd: 19 }, trace: true } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })

and

Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(Callback(CallbackFn)))
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 2 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 2 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433))
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Job finished f0530ca1-8ea3-421e-8a7b-612f163b7433
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(30c7d75c-95a0-46bf-81b7-bd59711a1c20))))
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433))))
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433))))
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433))))
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 6 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::protocol_parser: select response: * OK [CLOSED] Previous mailbox closed.

Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: loading mailbox state 2107659269461600757 from cache
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache uidvalidity 1651256861
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache highestmodseq Some(ModSequence(69))
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 inserting flags: ""
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 6 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 4 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 4 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::protocol_parser: Parse untagged response from "* 12 EXISTS\r\n"
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: exists 12
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: responses len is 1
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: Create event 9706159565893358457 eeeeee Drafts
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: insert_envelopes mailbox_hash 2107659269461600757 len 1
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: loading mailbox state 2107659269461600757 from cache
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache uidvalidity 1651256861
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache highestmodseq Some(ModSequence(69))
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 inserting flags: ""
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(BackendEvent(AccountHash(8808954225396028897), Refresh(RefreshEvent { mailbox_hash: MailboxHash(2107659269461600757), account_hash: AccountHash(8808954225396028897), kind: Create(Envelope { Subject: "eeeeee", Date: "Sat, 22 Jul 2023 22:07:48 +0200", From: [Address::Mailbox { display_name: "ReK2", address_spec: "rek2@hispagatos.org" }], To: [Address::Mailbox { display_name: "", address_spec: "rek2@protonmail.com" }], Message-ID: "<y7rz7.yn9okez5omo@hispagatos.org>", In-Reply-To: None, References: None, Flags: SEEN | DRAFT, Hash: EnvelopeHash(9706159565893358457) }) }))))
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::protocol_parser: Parse untagged response from "* 1 RECENT\r\n"
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "mailbox_fetch" 779e01a5-0400-42b8-9282-135db2845bb1
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "mailbox_fetch" 779e01a5-0400-42b8-9282-135db2845bb1
Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(779e01a5-0400-42b8-9282-135db2845bb1))))
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 5 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20
Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: responses len is 1

there is more but I think is reference to saving to draft.

@epilys ok, now I get debug and trace output lines in the log. so far this is what I think is interesting: ``` Sat, 22 Jul 2023 22:09 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433 Sat, 22 Jul 2023 22:09 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433 Sat, 22 Jul 2023 22:09 [TRACE]: melib::utils::connections: Tcp { inner: TcpStream { addr: 192.168.0.10:44670, peer: 51.255.82.75:465, fd: 19 }, trace: true } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) ``` and ``` Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(Callback(CallbackFn))) Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 0 got task "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 2 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 0 returned after "compose::submit" f0530ca1-8ea3-421e-8a7b-612f163b7433 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 2 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433)) Sat, 22 Jul 2023 22:10 [TRACE]: meli: Job finished f0530ca1-8ea3-421e-8a7b-612f163b7433 Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(30c7d75c-95a0-46bf-81b7-bd59711a1c20)))) Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433)))) Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433)))) Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(JobFinished(f0530ca1-8ea3-421e-8a7b-612f163b7433)))) Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 6 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::protocol_parser: select response: * OK [CLOSED] Previous mailbox closed. Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: loading mailbox state 2107659269461600757 from cache Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache uidvalidity 1651256861 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache highestmodseq Some(ModSequence(69)) Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 inserting flags: "" Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 6 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 4 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 4 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::protocol_parser: Parse untagged response from "* 12 EXISTS\r\n" Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: exists 12 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: responses len is 1 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: Create event 9706159565893358457 eeeeee Drafts Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: insert_envelopes mailbox_hash 2107659269461600757 len 1 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: loading mailbox state 2107659269461600757 from cache Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache uidvalidity 1651256861 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 in cache highestmodseq Some(ModSequence(69)) Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::cache::sqlite3_m: mailbox state 2107659269461600757 inserting flags: "" Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(BackendEvent(AccountHash(8808954225396028897), Refresh(RefreshEvent { mailbox_hash: MailboxHash(2107659269461600757), account_hash: AccountHash(8808954225396028897), kind: Create(Envelope { Subject: "eeeeee", Date: "Sat, 22 Jul 2023 22:07:48 +0200", From: [Address::Mailbox { display_name: "ReK2", address_spec: "rek2@hispagatos.org" }], To: [Address::Mailbox { display_name: "", address_spec: "rek2@protonmail.com" }], Message-ID: "<y7rz7.yn9okez5omo@hispagatos.org>", In-Reply-To: None, References: None, Flags: SEEN | DRAFT, Hash: EnvelopeHash(9706159565893358457) }) })))) Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::protocol_parser: Parse untagged response from "* 1 RECENT\r\n" Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "mailbox_fetch" 779e01a5-0400-42b8-9282-135db2845bb1 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "mailbox_fetch" 779e01a5-0400-42b8-9282-135db2845bb1 Sat, 22 Jul 2023 22:10 [TRACE]: meli: Ok(UIEvent(StatusEvent(NewJob(779e01a5-0400-42b8-9282-135db2845bb1)))) Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 1 returned after "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [TRACE]: meli::jobs: Worker 5 got task "save" 30c7d75c-95a0-46bf-81b7-bd59711a1c20 Sat, 22 Jul 2023 22:10 [DEBUG]: melib::backends::imap::untagged: responses len is 1 ``` 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 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.

@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

@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

Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } read 11 bytes:"��\\�t�*��\u{1c}?"
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } read 5 bytes:"\u{17}\u{3}\u{3}\0E"
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } read 69 bytes:";]��\"Ѥ���_�ډ�\u{c}��I\u{13}�� �c|�\r<aƞl\u{1a}��ϻ�[�@%���JA���z2�XG�{)&�\u{4}p\\/In�\n"
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } writing 80 bytes:"\u{14}\u{3}\u{3}\0\u{1}\u{1}\u{17}\u{3}\u{3}\0E!P�Cr}����\"�\\��׀�������˕1�\u{3}�q�Dm�@\u{c}��M��k1��v�,��`�A�\u{b}e�\u{b}�h�sia}Q\0"
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } set_keepalive(Some(540s))
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:52496, peer: 135.181.20.170:563, fd: 14 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:52496, peer: 135.181.20.170:563, fd: 14 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } read 79 bytes:"200 news.hispagatos.org InterNetNews NNRP server INN 2.7.1 ready (no posting)\r\n"
Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:52496, peer: 135.181.20.170:563, fd: 14 } } } read 106 bytes:"200 news.eternal-september.org InterNetNews NNRP server INN 2.8.0 (20230610 snapshot) ready (posting ok)\r\n"

prob not related but....

BTW: I also see some nntp errors ``` Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } read 11 bytes:"��\\�t�*��\u{1c}?" Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } read 5 bytes:"\u{17}\u{3}\u{3}\0E" Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } read 69 bytes:";]��\"Ѥ���_�ډ�\u{c}��I\u{13}�� �c|�\r<aƞl\u{1a}��ϻ�[�@%���JA���z2�XG�{)&�\u{4}p\\/In�\n" Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tcp", trace: true, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } writing 80 bytes:"\u{14}\u{3}\u{3}\0\u{1}\u{1}\u{17}\u{3}\u{3}\0E!P�Cr}����\"�\\��׀�������˕1�\u{3}�q�Dm�@\u{c}��M��k1��v�,��`�A�\u{b}e�\u{b}�h�sia}Q\0" Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } set_keepalive(Some(540s)) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:52496, peer: 135.181.20.170:563, fd: 14 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:52496, peer: 135.181.20.170:563, fd: 14 } } } could not read Err(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:51100, peer: 170.187.188.247:563, fd: 17 } } } read 79 bytes:"200 news.hispagatos.org InterNetNews NNRP server INN 2.7.1 ready (no posting)\r\n" Wed, 26 Jul 2023 02:24 [TRACE]: melib::utils::connections: [nntp]: Connection { variant: "Tls", trace: true, id: Some("nntp"), inner: Connection { variant: "Tcp", trace: false, id: Some("nntp"), inner: TcpStream { addr: 192.168.0.10:52496, peer: 135.181.20.170:563, fd: 14 } } } read 106 bytes:"200 news.eternal-september.org InterNetNews NNRP server INN 2.8.0 (20230610 snapshot) ready (posting ok)\r\n" ``` prob not related but....

@r3k2 this says [nntp] not [smtp]

@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

@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 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.

test smtp::test::test_smtp ... FAILED
test text_processing::line_break::test_reflow ... ok

failures:

---- smtp::test::test_smtp stdout ----
Running smtp server at localhost:8825
thread 'smtp::test::test_smtp' panicked at 'called `Result::unwrap()` on an `Err` value: Error { summary: "Connection refused (os error 111)", details: Some("connection refused"), source: Some(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }), kind: OSError }', melib/src/smtp.rs:1309:91
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    smtp::test::test_smtp

test result: FAILED. 86 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

error: test failed, to rerun pass `-p melib --lib`
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'meli-git-0.6.2.r236.gb085703-3': 
error: packages failed to build: meli-git-0.6.2.r236.gb085703-3
@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. ``` test smtp::test::test_smtp ... FAILED test text_processing::line_break::test_reflow ... ok failures: ---- smtp::test::test_smtp stdout ---- Running smtp server at localhost:8825 thread 'smtp::test::test_smtp' panicked at 'called `Result::unwrap()` on an `Err` value: Error { summary: "Connection refused (os error 111)", details: Some("connection refused"), source: Some(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }), kind: OSError }', melib/src/smtp.rs:1309:91 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: smtp::test::test_smtp test result: FAILED. 86 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s error: test failed, to rerun pass `-p melib --lib` ==> ERROR: A failure occurred in check(). Aborting... error: failed to build 'meli-git-0.6.2.r236.gb085703-3': error: packages failed to build: meli-git-0.6.2.r236.gb085703-3 ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#259
There is no content yet.