SetLabels Parameter (Set-IMAP Cmdlet)

Specifies GMail labels to be set on the message.


Set-IMAP -SetLabels string


This parameter optionally specifies a space separated list of GMail labels to be set for the message specified by Message. When the label to be set includes a space it must be surrounded by quotes. For instance the command below sets the labels testlabel1 and test label2.

Set-IMAP -ssl implicit -Server -Port 993 -Message 109575 -User -Password mypassword -Labels "testlabel1 `"test label2`""

Note: This setting is only applicable when connected to a GMail account.

Default Value


Parameter Alias


Copyright (c) 2021 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 7877]