This file is indexed.

/usr/bin/sup-server is in sup-mail 0.12.1+git20120407.aaa852f-1+deb7u1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/ruby1.9.1
#require 'rubygems'
require 'trollop'
require 'sup'
require 'sup/server'
require 'pp'
require 'yaml'
include Redwood

global_opts = Trollop::options do
  #version = "sup-cmd (sup #{Redwood::VERSION})"
  banner <<EOS
Interact with a Sup index.

Usage:
  sup-server [options]
EOS

  opt :host, "address to listen on", :type => :string, :default => 'localhost', :short => 'o'
  opt :port, "port to listen on", :type => :int, :default => 4300
  opt :verbose
end

Redwood.start
Index.init
Index.lock_interactively or exit
begin
  if(s = Redwood::SourceManager.source_for SentManager.source_uri)
    SentManager.source = s
  else
    Redwood::SourceManager.add_source SentManager.default_source
  end

  Index.load

  EM.run do
    EM.start_server global_opts[:host], global_opts[:port],
                    Redwood::Server, Index.instance
    EM.next_tick { puts "ready" }
  end

ensure
  Index.unlock
end