SetLabels Parameter (Set-IMAP Cmdlet)

Specifies GMail labels to be set on the message.

Syntax

Set-IMAP -SetLabels string

Remarks

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 imap.gmail.com -Port 993 -Message 109575 -User me@gmail.com -Password mypassword -Labels "testlabel1 `"test label2`""

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

Default Value

""

Parameter Alias

Labels

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