#g4gmail_getLabelInfo

      *//////////////////////////////////////////////////////////////*
      * #g4gmail_getLabelInfo - Get information for a specific       *
      *                          label such as total messages        *
      *                          and unread count.                   *
      *                          This will update the data in the    *
      *                          G4GMLPF File for the label.         *
      *                                                              *
      * Output:                                                      *
      *   out_errMsg - The error message (if error exists).          *
      *                                                              *
      * Returns:                                                     *
      *   -1 for error, 0 for success                                *
      *                                                              *
      * Settable Variables ([r]=required)                            *
      *   id - Google ID [r]                                         *
      *   label_id - Label ID [r]                                    *
      *   ccsid - The CCSID to use (1208)                            *
      *   debug - Turn on Debug (*NO, *YES)                          *
      *   debug_file - The debug file name.                          *
      *                 (/tmp/g4g_[id]_getLabelInfo.txt)             *
      *                                                              *
      *//////////////////////////////////////////////////////////////*
     D #g4gmail_getLabelInfo...
     D                 PR            10i 0
     D  out_errMsg                  256    Options(*NOPASS)

#g4gmail_getLabelnfo will retrieve information specific to a label (such as total messages and unread messages).  For each record in the G4GMLPF file the records will be updated with the specific information.

Returns: 0 for success, -1 for error.

Optional Parameters:
  • Error Message (output) - Error message  
Settable Variables (use #g4gmail_setValue):
  • id (required) - Your Google ID
  • label_id (required) - The label ID to retrieve information for.
  • 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]_getLabelInfo.txt.
Comments