There is already a "type" attribute on the folders.  See mailapi/mailapi.js in GELAM.  The type for the local drafts folder is "localdrafts", as documented in mailapi/mailapi.js.  This will not do what we want because it will be affected by localized strings.