March 26, 2020 Contributors


ec_show — show spool or message information


/opt/msys/ecelerity/bin/ec_show [ -c config_file ] [ –end_date PCRE ] [ -h ] [ -m message id ] [ -n ] [ –recipient PCRE ] [ -s ] [ –sender PCRE ] [ –start_date PCRE ]


ec_show is a utility to show spool or message information. It can also show messages matching a specified PCRE (Perl Compatible Regular Expression).


ec_show provides a "best guess" calculation of retries and next_attempt based on the messages on disk. (Retries and next_attempt (and code) are not rewritten to disk for cost and performance reasons.) If you need exact information for these values, use the ec_console command message details, which looks at the live message’s metadata in memory.

ec_show has the following options:

-c *`/path/to/config`*

Specify a Momentum configuration file to work with.

–end_date *`PCRE`*

Show the messages whose creation time is no later than the time specified in the PCRE.


Show a help message.

-m *`message_id`*

Show the message specified by message_id.


Show the count of messages in the spool only.

–recipient *`PCRE`*

Show the messages whose recipients match the specified PCRE.


Show spool the directory including the messages. Spool directory is the default or the file specified by the Momentum configuration file.

–sender *`PCRE`*

Show the messages whose sender match the specified PCRE.

–start_date *`PCRE`*

Show the messages whose creation time is no earlier than the time specified in the PCRE.

Find below the output of the command ec_show -s when there is one message in the message queue:

Message: 00/00-02001-C6DD1CA4
  ID: (slot: 1254219116, pid: 2001, counter: 0)
  BatchID: (slot: 1254219116, pid: 2001, counter: 0)
  ConnID: (slot: 1254219116, pid: 2001, counter: 1)
  Swapped: Yes
  Created: 2009-09-29 06:11:56
  Next Attempt: 2009-09-29 06:11:56
  Retries: 0
  Received From: ESMTP
  Received Via:
  Sender: peter@kubuntu
  Size: 505
  Connection Context: [
  connection_message_count = "1"
  pathway = "default"
  ehlo_domain = "kubuntu"
  connection_rcpt_count = "1"
  can_relay = "true"
  ehlo_string = "EHLO kubuntu"
  message_rcpt_count = "1"
  Message Context: [
  rcptto_string = "RCPT TO:<>"
    mailfrom_localpart = "peter"
    mailfrom_string = "MAIL FROM:<peter@kubuntu>"
      rcptto_localpart = "peter"
      rcptto_domain = ""
      mailfrom_domain = "kubuntu"

      Return-Path: <peter@kubuntu>
        Received: from [] ([] helo=kubuntu)
        by centos (envelope-from <peter@kubuntu>)
          (ecelerity r(33348)) with ESMTP
          id 00/00-02001-C6DD1CA4; Tue, 29 Sep 2009 06:11:56 -0400
          Date: Tue, 29 Sep 2009 10:11:58 -0400
          Message-ID: <00.00.02001.C6DD1CA4@centos>
            From: peter@kubuntu
            Subject: test Tue, 29 Sep 2009 10:11:58 -0400
            X-Mailer: swaks v20061116.0

            This is a test mailing