gs.group.messages.add.smtp2gs Internals¶
The gs.group.messages.add.smtp2gs does not have a public
API, other than what is provided by the script itself. However,
the internals are documented below.
The script¶
The smtp2gs script is provided by the module
script. The main() function takes the name of the
default configuration file a single argument, which is normally
supplied by buildout when it generates the smtp2gs script
from the entry point.
The script parses the command-line arguments, and calls two further functions:
servercomms.get_group_info_from_address():- This calls the page
/gs-group-messages-add-group-exists.htmlto check if the group exists, and to get some information about the group. servercomms.add_post():- This calls the page
/gs-group-messages-add-email.htmlto actually add the post.
Both pages are provided by the gs.group.messages.add.base
product [1]; the data is sent by the
gs.form.post_multipart function [2], with
gs.auth.token [3] providing authentication (see
Configuration file).
Exit values¶
XVERP¶
Locking¶
Server communications¶
| [1] | See gs.group.messages.add.base
<https://github.com/groupserver/gs.group.messages.add.base> |
| [2] | See gs.form
<https://github.com/groupserver/gs.form> |
| [3] | See gs.auth.token
<https://github.com/groupserver/gs.auth.token> |