commit d31687969e1b8a8c9581fff4a400c0b38543fc73
parent 8002fdaec00b0ba3698ceeedbb7b55830463dfbf
Author: Holger Berndt <hb@claws-mail.org>
Date: Sun, 21 Jul 2013 12:44:27 +0200
Python plugin: Const fix and better description of MessageInfo objects
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/plugins/python/messageinfotype.c b/src/plugins/python/messageinfotype.c
@@ -214,7 +214,7 @@ static PyObject* remove_tag(PyObject *self, PyObject *args)
static PyObject* get_header(PyObject *self, PyObject *args)
{
int retval;
- const char *header_str;
+ char *header_str;
char *header_str_dup;
MsgInfo *msginfo;
gchar header_content[HEADER_CONTENT_SIZE];
@@ -353,7 +353,8 @@ static PyTypeObject clawsmail_MessageInfoType = {
0, /* tp_as_buffer*/
Py_TPFLAGS_DEFAULT, /* tp_flags*/
"A MessageInfo represents" /* tp_doc */
- "a single message.",
+ " a single message.\n\n"
+ "Do not construct objects of this type yourself.",
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */