Есть ли плагин rails, который может добавлять электронные письма в список Mailman или DadaMail? - PullRequest
0 голосов
/ 02 сентября 2010

Мне нужно создать приложение, которое работает как список рассылки. Вместо того, чтобы изобретать велосипед, я подумал об использовании Mailman, DadaMail или GoogleGroups. Но мне нужно мое Rails-приложение для добавления и удаления писем из этих списков.

Какие плагины для рельсов, которые вы рекомендуете?

1 Ответ

0 голосов
/ 21 ноября 2010

Mailman включает в себя каталог bin со многими утилитами, которые вы можете вызвать из командной строки. Для добавления адресов электронной почты у вас есть:

# pwd
/usr/local/mailman

# bin/add_members --help
Add members to a list from the command line.

Usage:
    add_members [options] listname

Options:

    --regular-members-file=file
    -r file
        A file containing addresses of the members to be added, one
        address per line.  This list of people become non-digest
        members.  If file is `-', read addresses from stdin.  Note that
        -n/--non-digest-members-file are deprecated synonyms for this option.

    --digest-members-file=file
    -d file
        Similar to above, but these people become digest members.

    --welcome-msg=<y|n>
    -w <y|n>
        Set whether or not to send the list members a welcome message,
        overriding whatever the list's `send_welcome_msg' setting is.

    --admin-notify=<y|n>
    -a <y|n>
        Set whether or not to send the list administrators a notification on
        the success/failure of these subscriptions, overriding whatever the
        list's `admin_notify_mchanges' setting is.

    --help
    -h  
        Print this help message and exit.

    listname
        The name of the Mailman list you are adding members to.  It must
        already exist.

You must supply at least one of -r and -d options.  At most one of the
files can be `-'.

Аналогично есть команда remove_members. Вы можете вызывать эти команды из вашего приложения Rails.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...