0
我需要構建一個像郵件列表一樣工作的應用程序。我想到了使用Mailman,DadaMail或GoogleGroups的想法,而不是重新發明輪子。但我需要我的Rails應用程序來添加和刪除這些列表中的電子郵件。有沒有可以添加郵件到Mailman或DadaMail列表的rails插件?
您推薦的任何好的導軌插件?
我需要構建一個像郵件列表一樣工作的應用程序。我想到了使用Mailman,DadaMail或GoogleGroups的想法,而不是重新發明輪子。但我需要我的Rails應用程序來添加和刪除這些列表中的電子郵件。有沒有可以添加郵件到Mailman或DadaMail列表的rails插件?
您推薦的任何好的導軌插件?
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應用程序調用這些命令。
謝謝。這一定會讓我走。我結束了與DadaMail,所以我只需要找到相應的命令。 – Leo 2010-12-25 12:36:28