B2G/gaia/apps/email/js/ext/mailapi/worker-bootstrap.js
// -- add the header/body to the target folder
add the header/body to the target folder
add the header / body to the target folder
function deleted_nowAdd() {
        var sourceSuid = header.suid;
        header.id = targetStorage._issueNewHeaderId();
        header.suid = targetStorage.folderId + '/' + header.id;
        if (nukeServerIds)
          header.srvid = null;
        stateDelta.moveMap[sourceSuid] = header.suid;
        addWait = 2;
        targetStorage.addMessageHeader(header, added);
        targetStorage.addMessageBody(header, body, added);
      }
function deleted_nowAdd ( ) { var sourceSuid = header . suid ; header . id = targetStorage . _issueNewHeaderId ( ) ; header . suid = targetStorage . folderId + '/' + header . id ; if ( nukeServerIds ) header . srvid = null ; stateDelta . moveMap [ sourceSuid ] = header . suid ; addWait = 2 ; targetStorage . addMessageHeader ( header , added ) ; targetStorage . addMessageBody ( header , body , added ) ; }
add the header/body to the target folder
add the header / body to the target folder
// - update id fields