On 7/13/06, Dragon <[EMAIL PROTECTED]> wrote:
> Just a quick question about using the inject script to put a message
> in a list queue...
>
> What exactly is the inject script expecting? As in what exactly is
> the format of the file that gets fed into it?

[EMAIL PROTECTED]:~$ /usr/lib/mailman/bin/inject
Inject a message from a file into Mailman's incoming queue.

Usage: inject [options] [filename]

Options:

    -h / --help
        Print this text and exit.

    -l listname
    --listname=listname
        The name of the list to inject this message to.  Required.

    -q queuename
    --queue=queuename
        The name of the queue to inject the message to.  The queuename must be
        one of the directories inside the qfiles directory.  If omitted, the
        incoming queue is used.

filename is the name of the plaintext message file to inject.  If omitted,
standard input is used.

A list name is required


So, inject --listname=<list> <file>

<file> should be just an email in a text file.. I.e.,
From: [EMAIL PROTECTED]
To: <listname>@<listhost>
Subject: Foo

etc. All of the necessary headers. If your mail client has a way to
export a mail, it's that format. AKA, .eml, I guess. Refer to the SMTP
specifications for details on this, perhaps.

-- 
- Patrick Bogen
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to