@@ -52,7 +52,7 @@ pub(crate) struct MimeMessage {
52
52
pub parts : Vec < Part > ,
53
53
54
54
/// Message headers.
55
- header : HashMap < String , String > ,
55
+ headers : HashMap < String , String > ,
56
56
57
57
/// Addresses are normalized and lowercased:
58
58
pub recipients : Vec < SingleInfo > ,
@@ -386,7 +386,7 @@ impl MimeMessage {
386
386
387
387
let mut parser = MimeMessage {
388
388
parts : Vec :: new ( ) ,
389
- header : headers,
389
+ headers,
390
390
recipients,
391
391
list_post,
392
392
from,
@@ -692,7 +692,7 @@ impl MimeMessage {
692
692
self . parts . push ( part) ;
693
693
}
694
694
695
- if self . header . contains_key ( "auto-submitted" ) {
695
+ if self . headers . contains_key ( "auto-submitted" ) {
696
696
for part in & mut self . parts {
697
697
part. param . set ( Param :: Bot , "1" ) ;
698
698
}
@@ -773,11 +773,11 @@ impl MimeMessage {
773
773
/// Returns whether the email contains a `chat-version` header.
774
774
/// This indicates that the email is a DC-email.
775
775
pub ( crate ) fn has_chat_version ( & self ) -> bool {
776
- self . header . contains_key ( "chat-version" )
776
+ self . headers . contains_key ( "chat-version" )
777
777
}
778
778
779
779
pub ( crate ) fn has_headers ( & self ) -> bool {
780
- !self . header . is_empty ( )
780
+ !self . headers . is_empty ( )
781
781
}
782
782
783
783
pub ( crate ) fn get_subject ( & self ) -> Option < String > {
@@ -787,7 +787,7 @@ impl MimeMessage {
787
787
}
788
788
789
789
pub fn get_header ( & self , headerdef : HeaderDef ) -> Option < & String > {
790
- self . header . get ( headerdef. get_headername ( ) )
790
+ self . headers . get ( headerdef. get_headername ( ) )
791
791
}
792
792
793
793
fn parse_mime_recursive < ' a > (
0 commit comments