 _test = ->
   doGet
     parameter:
-      msgId: "13a1a6948cb7471f" # works with joscha@feth.com only
-      when: "delta:"+ (2 * 1000 * 60)
-      inbox: true
-      unread: true
+      msgId:    "13a1a6948cb7471f" # works with joscha@feth.com only
+      when:     "delta:"+ (2 * 1000 * 60)
+      inbox:    true
+      unread:   true
       noanswer: true
-      action: 'schedule'
+      action:   'schedule'
+      archive:  false
   return
 
 # This is just a helper until the Google Apps Script Code Editor can deal with bla = function assignments
 `function test() {
   _test.apply(this, arguments);
 }`
-
-#deleteProps = ->
-#  UserProperties.deleteAllProperties()
-#  return
 
 #testLastMessageDate = ->
 #  message = GmailApp.getMessageById("13a1a6948cb7471f")

      Logger.log "Finished processing message with ID '%s'", messageId

    # delete the scheduled butler mail, because we couldn't find the real message
    @deleteButlerMail messageId # pass "" + x in case messageId is undefined (should not happen)
    return

  # Get a label or create it

      ScriptApp.newTrigger("process").timeBased().everyMinutes(MailButler.FREQUENCY_MINUTES).create()
    return

  @getEmail: ->
    Session.getEffectiveUser().getEmail()

  @getScheduledMails: ->
    q =
      user:     @getEmail()
      type:     @TYPE
    result = @DB.query q
    result.next() while result.hasNext()

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

    q =
      user:     @getEmail()
      version:  @VERSION
      type:     @TYPE
      when:     @DB.lessThanOrEqualTo d.getTime()

    Logger.log "Using the query #{q}"

    result = @DB.query(q).sortBy 'when', @DB.ASCENDING

    if (s = result.getSize()) > 0    
      # yep there are some
      Logger.log "Found %s candidates", s

      while result.hasNext()
        @processButlerMail result.next()

    else
      # No scheduled messages available
