 
   # Removes a label from a message (thread)
   @removeLabel: (name, message) ->
-    @getLabel(name, false)?.removeFromThread message.getThread()  if label
+    @getLabel(name, false)?.removeFromThread message.getThread()
     return
 
   @normalize: (messageId, noPrefix) ->

  lock.releaseLock()
  return

testProcessForm = ->
  processForm
    msgId: "13a1a6948cb7471f"
    when: "delta:"+ (2 * 1000 * 60)


    ContentService.createTextOutput(ret.join '').setMimeType ContentService.MimeType.JSON

  @setup: ->
    if ScriptApp.getScriptTriggers().length is 0
      Logger.log "Installing trigger"
      ScriptApp.newTrigger("process").timeBased().everyMinutes(MailButler.FREQUENCY_MINUTES).create()
    return

  @processButlerMails: (d) ->
    Logger.log "Checking for scheduled mails on %s", d

