     return
 
 doGet = (request) ->
+  MailButler.setup()
   butler = new MailButler request.parameter.prefix
   butler.schedule request.parameter
 
-process = (e) ->
+# This is just a helper until the Google Apps Script Code Editor can deal with bla = function assignments
+`function process() {
+  _process.apply(this, arguments);
+}`
+
+_process = (e) ->
   
   # Get a lock for the current user
   lock = LockService.getPrivateLock()


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

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


      # refresh its state
      message.refresh()

      if @hasLabel @LABEL_OUTBOX, message
        # Has the outbox label
        Logger.log "Start processing message with ID '%s'", props.messageId
        
        # remove the outbox label from the message
        @removeLabel @LABEL_OUTBOX, message
