applyImapFlagOperationWithHttpInfo method

Future<Response> applyImapFlagOperationWithHttpInfo(
  1. String emailId,
  2. ImapFlagOperationOptions imapFlagOperationOptions
)

Set IMAP flags associated with a message. Only supports '\Seen' flag.

Apply RFC3501 section-2.3.2 IMAP flag operations on an email

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> applyImapFlagOperationWithHttpInfo(String emailId, ImapFlagOperationOptions imapFlagOperationOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/{emailId}/imap-flag-operation'
    .replaceAll('{emailId}', emailId);

  // ignore: prefer_final_locals
  Object? postBody = imapFlagOperationOptions;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}