#g4gmail_listLabels

      *//////////////////////////////////////////////////////////////*
      * #g4gmail_listLabels - List Labels                            *
      *                                                              *
      * Output:                                                      *
      *   out_errMsg - The error message (if error exists).          *
      *                                                              *
      * Returns:                                                     *
      *   -1 for error, number of labels                             *
      *                                                              *
      * Settable Variables ([r]=required)                            *
      *   id - Google ID [r]                                         *
      *   get_label_info - Retrieve information on for the label     *
      *                     Such as total messages and unread count. *
      *                     (*YES, *NO)                              *
      *   ccsid - The CCSID to use (1208)                            *
      *   debug - Turn on Debug (*NO, *YES)                          *
      *   debug_file - The debug file name.                          *
      *                 (/tmp/g4g_[id]_listGmailLabelsDebug.txt)     *
      *                                                              *
      *//////////////////////////////////////////////////////////////*
     D #g4gmail_listLabels...
     D                 PR            10i 0
     D  out_errMsg                  256    Options(*NOPASS)


#g4gmail_listLabels will list the available email labels associated with the Google ID.  The list of labels will populate the file G4GMLPF.  Any existing labels in the file will be removed before this process takes place.

Returns:
Number of Labels, or -1 for error.

Optional Parameters:
  • Error Message (output) - Error message  
Settable Variables (use #g4gmail_setValue):
  • id (required) - Your Google ID
  • get_label_inf0 - Specify *YES or *NO to retrieve the label info such as total messages and unread messages for each folder.  The default is *YES.
  • ccsid - The CCSID to use.  The default is 1208.
  • debug - Specify *YES to turn on debug, or *NO to turn off debug.  The default is *NO.
  • debug_file - Specify the fully qualified file name for the main debug file.  The default is /tmp/g4g_[id]_listGmailLabelsDebug.txt.

Comments