docs: function(messagelist, next) {
            var keyList = JSON.parse(messagelist.Body);
            if (CONSOLE_MESSAGES) console.log(new Date().toISOString(),'Raw messageList object:',keyList);
            // update last modified timestamp
            // also reset message list count
            // not using yet so don't modify and save
            //keyList.last_checked = new Date().getTime();
  
            keyList.messages.forEach(function(item, index) {
              //if (item.key.search('.json') > -1) return; // skip non-message files
              data.INBOX.messages.push({
                key: item.key,
                raw: '',
                flags: [],
                internaldate: formatInternalDate(new Date(item.created))
              }); // push
              //data.INBOX.marker = item.Key; // update marker
            }); // forEach
            
            indexFolders();
  
            if (CONSOLE_MESSAGES) console.log(new Date().toISOString(),'Refreshed INBOX:',data);
            if (CONSOLE_MESSAGES) console.log(new Date().toISOString(),'INBOX message detail:',data.INBOX.messages);
  
            // should save data here
            next(null);
          }