mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
Rename MimeParser to MimeMessage in mimeparser.rs
The struct really represents a parsed MIME message and is not used as a parser itself. After the from_bytes() call (which should arguably use the FromStr trait instead) the struct is fully populated.
This commit is contained in:
committed by
Alexander Krotov
parent
7aeddc63ac
commit
9a3bdfb14b
@@ -341,7 +341,7 @@ impl Default for HandshakeMessageStatus {
|
||||
/// Handle incoming secure-join handshake.
|
||||
pub(crate) fn handle_securejoin_handshake(
|
||||
context: &Context,
|
||||
mimeparser: &MimeParser,
|
||||
mimeparser: &MimeMessage,
|
||||
contact_id: u32,
|
||||
) -> Result<HandshakeMessageStatus, Error> {
|
||||
let own_fingerprint: String;
|
||||
@@ -717,7 +717,7 @@ fn mark_peer_as_verified(context: &Context, fingerprint: impl AsRef<str>) -> Res
|
||||
* Tools: Misc.
|
||||
******************************************************************************/
|
||||
|
||||
fn encrypted_and_signed(mimeparser: &MimeParser, expected_fingerprint: impl AsRef<str>) -> bool {
|
||||
fn encrypted_and_signed(mimeparser: &MimeMessage, expected_fingerprint: impl AsRef<str>) -> bool {
|
||||
if !mimeparser.was_encrypted() {
|
||||
warn!(mimeparser.context, "Message not encrypted.",);
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user