@@ -1975,16 +1975,16 @@ public override IMailFolder GetSubfolder (string name, CancellationToken cancell
19751975
19761976 Engine . Run ( ic ) ;
19771977
1978- folder = ProcessGetSubfolderResponse ( ic , list , encodedName ! ) ;
1978+ folder = ProcessGetSubfolderResponse ( ic , list , encodedName ) ;
19791979
1980- if ( list ! . Count > 1 || folder == null ) {
1980+ if ( list . Count > 1 || folder == null ) {
19811981 // Note: if any folders returned in the LIST command are unparented, have the ImapEngine look up their
19821982 // parent folders now so that they are not left in an inconsistent state.
19831983 Engine . LookupParentFolders ( list , cancellationToken ) ;
19841984 }
19851985
19861986 if ( folder == null )
1987- throw new FolderNotFoundException ( fullName ! ) ;
1987+ throw new FolderNotFoundException ( fullName ) ;
19881988
19891989 return folder ;
19901990 }
@@ -2035,16 +2035,16 @@ public override async Task<IMailFolder> GetSubfolderAsync (string name, Cancella
20352035
20362036 await Engine . RunAsync ( ic ) . ConfigureAwait ( false ) ;
20372037
2038- folder = ProcessGetSubfolderResponse ( ic , list ! , encodedName ! ) ;
2038+ folder = ProcessGetSubfolderResponse ( ic , list , encodedName ) ;
20392039
2040- if ( list ! . Count > 1 || folder == null ) {
2040+ if ( list . Count > 1 || folder == null ) {
20412041 // Note: if any folders returned in the LIST command are unparented, have the ImapEngine look up their
20422042 // parent folders now so that they are not left in an inconsistent state.
20432043 await Engine . LookupParentFoldersAsync ( list , cancellationToken ) . ConfigureAwait ( false ) ;
20442044 }
20452045
20462046 if ( folder == null )
2047- throw new FolderNotFoundException ( fullName ! ) ;
2047+ throw new FolderNotFoundException ( fullName ) ;
20482048
20492049 return folder ;
20502050 }
@@ -6135,8 +6135,8 @@ void OnFetchAsyncCompleted (MessageSummary message)
61356135 if ( ( message . Fields & MessageSummaryItems . UniqueId ) != 0 )
61366136 uid = message . UniqueId ;
61376137
6138- if ( ( message . Fields & MessageSummaryItems . Flags ) != 0 ) {
6139- var args = new MessageFlagsChangedEventArgs ( index , message . Flags ! . Value , ( HashSet < string > ) message . Keywords ) {
6138+ if ( message . Flags . HasValue ) {
6139+ var args = new MessageFlagsChangedEventArgs ( index , message . Flags . Value , ( HashSet < string > ) message . Keywords ) {
61406140 ModSeq = message . ModSeq ,
61416141 UniqueId = uid
61426142 } ;
0 commit comments