File tree 1 file changed +6
-7
lines changed 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1110,6 +1110,12 @@ impl<T: Read + Write> Session<T> {
1110
1110
///
1111
1111
/// The [`\Recent` flag](https://tools.ietf.org/html/rfc3501#section-2.3.2) is not
1112
1112
/// allowed as an argument to `APPEND` and will be filtered out if present in `flags`.
1113
+ ///
1114
+ /// Pass a date in order to set the date that the message was originally sent.
1115
+ ///
1116
+ /// > If a date-time is specified, the internal date SHOULD be set in
1117
+ /// > the resulting message; otherwise, the internal date of the
1118
+ /// > resulting message is set to the current date and time by default.
1113
1119
pub fn append_with_flags_and_date < S : AsRef < str > , B : AsRef < [ u8 ] > > (
1114
1120
& mut self ,
1115
1121
mailbox : S ,
@@ -1124,13 +1130,6 @@ impl<T: Read + Write> Session<T> {
1124
1130
. map ( |f| f. to_string ( ) )
1125
1131
. collect :: < Vec < String > > ( )
1126
1132
. join ( " " ) ;
1127
-
1128
- // date-time = DQUOTE date-day-fixed "-" date-month "-" date-year SP time SP zone DQUOTE
1129
- // date-day-fixed = (SP DIGIT) / 2DIGIT
1130
- // date-month = "Jan" / "Feb" / "Mar" / "Apr" / "May" / "Jun" / "Jul" / "Aug" / "Sep" / "Oct" / "Nov" / "Dec"
1131
- // date-year = 4DIGIT
1132
- // time = 2DIGIT ":" 2DIGIT ":" 2DIGIT
1133
- // zone = ("+" / "-") 4DIGIT
1134
1133
let datestr = match date {
1135
1134
Some ( date) => format ! ( " \" {} +0000\" " , date. format( "%d-%h-%Y %T" ) ) ,
1136
1135
None => "" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments