- [Signatures and Away Messages](#signatures-and-away-messages) - [Setting a Signature](#setting-a-signature) - [Retrieving a Signature](#retrieving-a-signature) - [Enabling/Disabling and Setting a Vacation (Away) Message](#enablingdisabling-and-setting-a-vacation-away-message) - [Retrieving Vacation Settings](#retrieving-vacation-settings) - [Labels and Filters](#labels-and-filters) - [Create a Label](#create-a-label) - [Retrieving User's Labels](#retrieving-users-labels) - [Delete a Label](#delete-a-label) - [Create a Filter](#create-a-filter) - [Retrieve a Filter](#retrieve-a-filter) - [Delete a Filter](#delete-a-filter) - [Print Filter Details](#print-filter-details) - [Show Filter Details](#show-filter-details) - [IMAP, POP](#imap-pop) - [Setting IMAP Settings](#setting-imap-settings) - [Retrieving IMAP Settings](#retrieving-imap-settings) - [Setting POP Settings](#setting-pop-settings) - [Retrieving POP Settings](#retrieving-pop-settings) - [Send As](#send-as) - [Add a Send As Address (Custom From)](#add-a-send-as-address-custom-from) - [Update a Send As Address](#update-a-send-as-address) - [Delete a Send As Address](#delete-a-send-as-address) - [Retrieve a Send As Address](#retrieve-a-send-as-address) - [Print Send As Addresses](#print-send-as-addresses) - [Show Send As Addresses](#show-send-as-addresses) - [Forwarding](#forwarding) - [Add a Forwarding Address](#add-a-forwarding-address) - [Delete a Forwarding Address](#delete-a-forwarding-address) - [Retrieve a Forwarding Address](#retrieve-a-forwarding-address) - [Print Forwarding Addresses](#print-forwarding-addresses) - [Show Forwarding Addresses](#show-forwarding-addresses) - [Setting a Forward](#setting-a-forward) - [Print Forward Settings](#print-forward-settings) - [Show Forward Settings](#show-forward-settings) - [Delegates](#delegates) - [Creating a Gmail delegate](#creating-a-gmail-delegate) - [Deleting a Gmail delegate](#deleting-a-gmail-delegate) - [Print Gmail delegates](#print-gmail-delegates) - [Show Gmail delegates](#show-gmail-delegates) - [Creating a Contact delegate](#creating-a-contact-delegate) - [Deleting a Contact delegate](#deleting-a-contact-delegate) - [Print Contact delegates](#print-contact-delegates) - [Show Contact delegates](#show-contact-delegates) - [Managing S/MIME Certificates](#managing-smime-certificates) - [Adding S/MIME Certificates](#adding-smime-certificates) - [Updating S/MIME Certificates](#updating-smime-certificates) - [Deleting S/MIME Certificates](#deleting-smime-certificates) - [Show/Print S/MIME Certificates](#show-print-smime-certificates) - [Hiding/Unhiding users from the domain contacts](#hidingunhiding-users-from-the-domain-contacts) - [Changing a users profile to hidden/unhidden](#changing-a-users-profile-to-hiddenunhidden) - [Showing users profile hidden/unhidden status](#showing-users-profile-hiddenunhidden-status) - [User Profile Photos](#user-profile-photos) - [Updating Profile Photos](#updating-profile-photos) - [Getting Profile Photos](#getting-profile-photos) - [Deleting Profile Photos](#deleting-profile-photos) - [Managing User Email](#managing-user-email) - [Modifying User Emails](#modifying-user-emails) - [Deleting or Trashing User Emails](#deleting-trashing-or-untrashing-user-emails) - [Sending Email as a User](#sending-email-as-a-user) - [Dropping Emails into a User Mailbox](#dropping-emails-into-a-user-mailbox) - [Drafting Emails for a User](#drafting-emails-for-a-user) - [Print/Show User Gmail Profile](#print-show-user-gmail-profile) - [Print User Gmail Profile](#print-user-gmail-profile) - [Show User Gmail Profile](#show-user-gmail-profile) - [Managing User Display Language](#managing-user-display-language) - [Set User Language](#set-user-language) - [Get User Language](#get-user-language) # Signatures and Away Messages ## Setting a Signature ### Syntax ``` gam user |group |ou |all users [signature ] [file ] [replyto ] (replace )* ``` sets a email signature for the given users' primary email address. Use quotes around the signature text if it contains spaces (which it almost certainly will). New lines can be specified with \n. HTML can also be used. An empty string like "" will disable the signature. Use the optional `file` argument to specify a filename that contains the signature text. This is easier for long, complex signatures. Use the optional `replyto` argument to specify a reply to address for use with this signature. The optional argument `replace` can be used to insert values into the signature text. Every instance of {`Tag`} in the signature will be replaced by `String`. Instances of the form {RT}...{`Tag`}...{/RT} will be eliminated if that `Tag` was not specified or if `Tag` was specified but the accompanying `String` is empty. {RT} and {/RT} are eliminated from the signature. ### Example This example sets all user's signatures to be: ``` Acme Inc 1321 Main Ave http://www.acme.com ``` ``` gam all users signature "Acme Inc
1321 Main Ave
http://www.acme.com ``` This example reads the signature from a file: ``` gam user bob@example.com signature file bobs-sig.txt ``` This example reads the signature from an HTML file: ``` gam user sue@example.com signature file sues-html-sig.html html ``` ---- ## Retrieving a Signature ### Syntax ``` gam user | group | ou | all users show signature [format] ``` Shows the email signature for the given users. By default, the raw HTML of the signature is shown, the optional argument `format` causes the HTML to be interpreted. ### Example This example shows all user's signature ``` gam all users show signature ``` ---- ## Enabling/Disabling and Setting a Vacation (Away) Message ### Syntax ``` gam user | group | ou | all users vacation on|off subject [message ] | [file ] [html] startdate enddate [contactsonly] [domainonly] (replace )* ``` enable or disable a vacation/away message for the given users. `subject ` will set the away message subject. `message ` will set the away message text. Use quotes around `` and `` if they contain spaces (which they probably will). If `file` is specified instead of message, the message will be read from the given text file. In ``, \n will be replaced with a new line. The optional argument `html` says to interpret the message text as HTML. Except for the simplest messages, you should specify `html` even if your message doesn't contain HTML as Google does unexpected line wrapping when `html` is not specified. The optional `startdate` and `enddate` arguments set a start and end date for the vacation message to be enabled. The optional argument `contactsonly` will only send away messages to persons in the user's Contacts. The optional argument `domainonly` will prevent vacation messages from going to users outside the Google Apps domain. The optional argument `replace` can be used to insert values into the away message text. Every instance of {`Tag`} in the message will be replaced by `String`. Instances of the form {RT}...{`Tag`}...{/RT} will be eliminated if that `Tag` was not specified or if `Tag` was specified but the accompanying `String` is empty. {RT} and {/RT} are eliminated from the message. ### Example This example sets the away message for the user ``` gam user epresley vacation on subject "Elvis has left the building" message "I will be on Mars for the next 100 years. I'll get back to you when I return.\n\nElvis" ``` This example reads the message from a text file: ``` gam user bob@example.com vacation on subject "I am away" file bobs-away-message.txt ``` ---- ## Retrieving Vacation Settings ### Syntax ``` gam user | group |ou | all users show vacation [format] ``` Show the given user's vacation message and settings. By default, the plain text or raw HTML of the vacation message is shown, the optional argument `format` causes the HTML to be interpreted. ## Example This example shows the vacation settings for jsmith ``` gam user jsmith show vacation ``` # Labels and Filters ## Create a Label ### Syntax ``` gam user |group |ou |all users label