salmon.commands module

salmon.commands.blast_command(parser)[source]

Given a Maildir, this command will go through each email and blast it at your server. It does nothing to the message, so it will be real messages hitting your server, not cleansed ones.

salmon.commands.cleanse_command(parser)[source]

Uses Salmon mail cleansing and canonicalization system to take an input Maildir (or mbox) and replicate the email over into another Maildir. It’s used mostly for testing and cleaning.

salmon.commands.function(parser)

Used as a testing sendmail replacement for use in programs like mutt as an MTA. It reads the email to send on the stdin and then delivers it based on the port and host settings.

salmon.commands.gen_command(parser)[source]

Generates various useful things for you to get you started.

salmon.commands.log_command(parser)[source]

Runs a logging only server on the given hosts and port. It logs each message it receives and also stores it to the run/queue so that you can make sure it was received in testing.

salmon.commands.main()[source]

Salmon script entry point

salmon.commands.queue_command(parser)[source]

Lets you do most of the operations available to a queue.

salmon.commands.routes_command(parser)[source]

Prints out valuable information about an application’s routing configuration after everything is loaded and ready to go. Helps debug problems with messages not getting to your handlers. Path has the search paths you want separated by a ‘:’ character, and it’s added to the sys.path.

salmon.commands.send_command(parser)[source]

Sends an email to someone as a test message. See the sendmail command for a sendmail replacement.

salmon.commands.sendmail_command(parser)[source]

Used as a testing sendmail replacement for use in programs like mutt as an MTA. It reads the email to send on the stdin and then delivers it based on the port and host settings.

salmon.commands.start_command(parser)[source]

Runs a salmon server out of the current directory

salmon.commands.status_command(parser)[source]

Prints out status information about salmon useful for finding out if it’s running and where.

salmon.commands.stop_command(parser)[source]

Stops a running salmon server