summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFiles
2010-04-08Reflect recent RFC compatibility changes in Python/C++.Wojciech Polak2
* examples/python/mimetest.py: Update. * include/mailutils/cpp/message.h (get_attachment_name): Overload. * libmu_cpp/message.cc (Message::get_attachment_name): Overload. * python/libmu_py/message.c (api_message_get_attachment_name): Update. * python/mailutils/message.py (Message.get_attachment_name): Add optional charset parameter. Return (name, lang) tuple.
2010-04-06Improve compatibility with RFC 2231 and RFC 2047.Sergey Poznyakoff1
* mailbox/mimehdr.c: New file. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add mailbox/mimehdr.c. * mailbox/attachment.c (_header_get_param) (_get_attachment_name, mu_message_aget_attachment_name) (mu_message_get_attachment_name: Move to mailbox/mimehdr.c (with edits). (mu_message_save_attachment): Add a FIXME comment. * include/mailutils/message.h (MU_MIMEHDR_MULTILINE) (MU_MIMEHDR_CSINFO): New defines. (mu_mimehdr_get_disp,mu_mimehdr_aget_disp) (mu_mimehdr_get_param,mu_mimehdr_aget_param) (mu_mimehdr_decode_param) (mu_mimehdr_aget_decoded_param): New prototypes. (mu_message_aget_attachment_name): Change signature. (mu_message_aget_decoded_attachment_name): New prototype. * mailbox/mutil.c (mu_hex2ul): Fix a silly bug (have anybody ever tried to use that function?!?) * mailbox/testsuite/Urls: Update. * examples/mimetest.c (message_display_parts): Add a FIXME comment. * libmu_cpp/message.cc (Message::get_attachment_name): Likewise. * mh/mhn.c (store_handler): Likewise. * python/libmu_py/message.c (api_message_get_attachment_name): Likewise.
2010-01-05Update copyright years.Sergey Poznyakoff53
Happy GNU year!
2009-12-16Fix format specifiers and usage of const char* arguments/variables.Sergey Poznyakoff1
Affected files: * comsat/comsat.c * examples/header.c * examples/mailcap.c * examples/pop3client.c * examples/url-parse.c * imap4d/fetch.c * imap4d/id.c * imap4d/list.c * imap4d/select.c * imap4d/status.c * imap4d/store.c * imap4d/sync.c * imap4d/util.c * include/mailutils/sieve.h * libmu_argp/common.c * libmu_argp/muinit.c * libmu_sieve/actions.c * libmu_sieve/extensions/pipe.c * libmu_sieve/extensions/vacation.c * libmu_sieve/prog.c * libmu_sieve/require.c * libmu_sieve/runtime.c * libmu_sieve/sieve-priv.h * libmu_sieve/sieve.y * libproto/imap/folder.c * libproto/imap/mbox.c * libproto/mailer/sendmail.c * libproto/mbox/mbox.c * libproto/pop/pop3_list.c * libproto/pop/pop3_stat.c * maidag/lmtp.c * maidag/sieve.c * mail/copy.c * mail/decode.c * mail/envelope.c * mail/eq.c * mail/escape.c * mail/from.c * mail/mail.h * mail/mailline.c * mail/mailvar.c * mail/size.c * mail/util.c * mail/write.c * mailbox/cfg_format.c * mailbox/folder.c * mailbox/parse822.c * mailbox/system.c * messages/messages.c * mh/folder.c * mh/forw.c * mh/inc.c * mh/mh.h * mh/mh_alias.l * mh/mh_fmtgram.y * mh/mh_getopt.h * mh/mh_init.c * mh/mh_msgset.c * mh/mh_whatnow.c * mh/mhn.c * mh/pick.y * mimeview/mimetypes.y * python/libmu_py/debug.c * sieve/sieve.c
2009-10-25Variois fixes (mostly to placate gcc)Sergey Poznyakoff1
* examples/base64.c, examples/mta.c, imap4d/auth_gss.c, imap4d/imap4d.c, imap4d/preauth.c, libmu_auth/ldap.c, libmu_auth/virtual.c, libmu_scm/mu_body.c, libmu_scm/mu_port.c, libproto/mailer/smtp.c, mailbox/acl.c, mailbox/secret.c, pop3d/pop3d.c, python/libmu_py/address.c, sql/odbc.c: Fix argument signedness. * imap4d/fetch.c, imap4d/store.c (closures): Change type of `count' to int, to match the signature of util_msgset. * include/mailutils/guile.h (mu_scm_message_get): Fix return type (const is useless here). * libmu_scm/mu_message.c (mu_scm_message_get): Likewise. (scm_mu_message_copy): Fix type of the `wr' automatic variable. * libmu_scm/mu_mime.c (mu_scm_mime_get): Remove const qualifier from the return type. * libmu_argp/cmdline.c: Include stdlib.h.
2009-09-08Correct some pydocs.Wojciech Polak10
2009-09-02Python: Allow to set mu_pam_service.Wojciech Polak2
* python/libmu_py/auth.c (api_set_pam_service): New function. * python/mailutils/auth.py (set_pam_service): New function.
2009-08-29Update pydocs.alpha_2_0_90Wojciech Polak5
* python/mailutils/__init__.py: Update pydocs. * python/mailutils/mailbox.py: Likewise. * python/mailutils/mailcap.py: Likewise. * python/mailutils/registrar.py: Likewise. * python/mailutils/sieve.py: Likewise.
2009-08-27Improve configure script.Sergey Poznyakoff2
* configure.ac: New option --with-pythondir (PYTHON_SITE_DIR, PYTHON_EXEC_DIR): New subst variables. * python/libmu_py/Makefile.am: use pythonexec_LTLIBRARIES, instead of pythonexec_LTLIBRARIES. (pythonexecdir): New variable. * python/mailutils/Makefile.am: use pythonsite_PYTHON, instead of pkgpython_PYTHON. (pythonsitedir): New variable.
2009-08-21Python: Bugfixes.Wojciech Polak5
* python/libmu_py/mailbox.c (api_mailbox_append_message): Bugfix. * python/libmu_py/header.c (api_header_get_value_n): New function. * python/mailutils/header.py (Header.get_value_n): New method. * python/mailutils/mailbox.py (Mailbox.__str__): New method. * python/mailutils/message.py (Message.__str__): Likewise.
2009-08-21Minor fixes.Sergey Poznyakoff2
* .gitignore: Add pathdefs.h * examples/Makefile.am (muauth_CPPFLAGS) (muemail_CPPFLAGS): New variables. * examples/argcv.c (main): Remove unused local. * include/mailutils/gsasl.h [USE_GSASL]: Change to WITH_GSASL. * include/mailutils/libcfg.h (mu_acl_cfg_init): New prototype. * include/mailutils/mu_auth.h (mu_authenticate): Password is const. * include/mailutils/python.h: Fix indentation. (mu_py_script_data): module_name is const char *. * libmu_auth/radius.c: Include radius/debug.h * libproto/mailer/smtp.c: Include io.h and secret.h * mail/mail.c: Fix indentation. * mail/util.c (util_rfc2047_decode): Fix local variable declaration. * mailbox/mu_auth.c (mu_authenticate): Password is const. * mh/mh.h (mh_alias_get, mh_alias_get_address) (mh_alias_get_alias): Name is const. * mh/mh_alias.y: Likewise. * mh/mh_list.c (print_header_value): Fix improper use of mu_toupper. * mh/mh_whatnow.c (invoke): Add typecasts. * python/libmu_py/nls.c (api_nls_set_locale): Remove unused automatic. * python/libmu_py/sieve.c (_sieve_error_printer): Provide missing return value. (_sieve_debug_printer): Likewise.
2009-08-12Rewrite conditional compilation support.Sergey Poznyakoff2
* Makefile.am: Conditionally add directories to SUBDIRS. * am/enable.m4 (MU_ENABLE_BUILD): New macro. * configure.ac: Require automake 1.11 Add MU_ENABLE_BUILDs for each utility. Remove unused substitution variables. * guimb/Makefile.am: Remove substitution variables. * guimb/scm/Makefile.am: Likewise. * libmu_scm/Makefile.am: Likewise. * mh/Makefile.am: Likewise. * python/libmu_py/Makefile.am: Likewise. * python/mailutils/Makefile.am: Likewise. * README: Document --disable-build-* options.
2009-08-09Improve C++ and Python APIs.Wojciech Polak1
* include/mailutils/cpp/header.h (Header.has_key): New method. * libmu_cpp/header.cc: Likewise. * include/mailutils/cpp/mailbox.h (MailboxDefault): Make name optional. * libmu_cpp/mailbox.cc: Likewise. * python/mailutils/header.py (__contains__, has_key): New method.
2009-08-08BugfixWojciech Polak2
* python/libmu_py/mailbox.c (api_mailbox_create_default): Make name optional. * python/mailutils/mailbox.py (MailboxDefault.__init__): Likewise.
2009-07-29Add SieveMachine to C++/Python.Wojciech Polak9
* include/mailutils/cpp/sieve.h: New file. * libmu_cpp/sieve.cc: New file. * python/libmu_py/sieve.c: New file. * python/mailutils/sieve.py: New file. * include/mailutils/cstr.h: Do not use C++ keywords. * include/mailutils/tls.h: Likewise.
2009-07-14Add NLS to libmu_py.Wojciech Polak7
* python/libmu_py/nls.c: New file. * python/mailutils/nls.py: Likewise.
2009-07-13Add more is/set/unset attribute methods (Python).Wojciech Polak3
* python/libmu_py/attribute.c: Add userflag functions. * python/mailutils/attribute.py: Add more is/set/unset methods. * python/mailutils/mailbox.py (open): Bugfix.
2009-07-11Add mailbox.get_uidls() to Python/C++.Wojciech Polak2
* libmu_cpp/mailbox.cc (get_uidls): New method. * python/libmu_py/mailbox.c (api_mailbox_get_uidls): New function. * python/mailutils/mailbox.py (get_uidls): New method.
2009-07-05Fix namespaces and inclusion directories.Sergey Poznyakoff1
* README-hacking: Update. * configure.ac (MU_COMMON_INCLUDES): Remove. (MU_LIB_COMMON_INCLUDES,MU_APP_COMMON_INCLUDES): New variables. Link lib/gettext.h and lib.intprops.h to include. * gnulib.modules: Remove fnmatch. * comsat/Makefile.am, config/Makefile.am, dotlock/Makefile.am, frm/Makefile.am, guimb/Makefile.am, imap4d/Makefile.am, maidag/Makefile.am, mail/Makefile.am, movemail/Makefile.am, pop3d/Makefile.am, python/libmu_py/Makefile.am, readmsg/Makefile.am sieve/Makefile.am (INCLUDES): Use MU_APP_COMMON_INCLUDES * lib/Makefile.am, examples/Makefile.am, libmu_argp/Makefile.am, libmu_auth/Makefile.am, libmu_cpp/Makefile.am, libmu_sieve/Makefile.am, libproto/imap/Makefile.am, libproto/mailer/Makefile.am, libproto/mh/Makefile.am, libproto/nntp/Makefile.am, libproto/pop/Makefile.am, mailbox/Makefile.am, mapi/Makefile.am, messages/Makefile.am, mh/Makefile.am, sql/Makefile.am (INCLUDES): Use MU_LIB_COMMON_INCLUDES
2009-07-05Minor changes.Sergey Poznyakoff7
* examples/mta.c: Remove include mu_asprintf.h. * libmu_auth/radius.c: Remove include inttostr.h. * libmu_scm/mu_dbgport.c: Silence gcc warnings. * libmu_sieve/extensions/pipe.c: Remove include <mu_dbm.h>. * libmu_sieve/sieve-priv.h: Remove include mu_asprintf.h. * maidag/python.c: Remove unused locals. * python/libmu_py/address.c: Likewise. * python/libmu_py/auth.c: Likewise. * python/libmu_py/body.c: Likewise. * python/libmu_py/secret.c: Likewise. * python/libmu_py/stream.c: Likewise. * python/libmu_py/url.c: Likewise. * python/libmu_py/util.c: Likewise.
2009-05-28Add Secret class to Python interface.Wojciech Polak13
* python/libmu_py/secret.c: New file. * python/mailutils/secret.py: New file. * python/mailutils/url.py (get_secret): New method. (get_passwd): Remove. * python/mailutils/mailbox.py (MailboxBase.open): Access mode argument value can be now one of the following strings: "r", "w", "a", "c".
2009-05-25* include/mailutils/secret.h: New file.Sergey Poznyakoff2
* include/mailutils/types.hin (mu_secret_t): New type. * include/mailutils/auth.h (mu_ticket_destroy): Remove 2nd arg (owner). (mu_ticket_ref, mu_ticket_unref): New functions. (mu_ticket_set_destroy): New function. (mu_ticket_set_pop): Remove. (mu_ticket_get_cred, mu_ticket_set_get_cred): New functions. (mu_ticket_get_data): Return data pointer. (mu_ticket_set_secret, mu_ticket_set_plain): New functions. (mu_wicket_create): Remove 2nd arg. (mu_wicket_set_filename, mu_wicket_get_filename): Remove. (mu_wicket_set_ticket): Remove. (mu_wicket_get_ticket): Change proto. (mu_wicket_set_destroy, mu_wicket_set_data) (mu_wicket_get_data, mu_wicket_set_get_ticket): New functions. (mu_file_wicket_create): New function. * include/mailutils/mailutils.h: Include secret.h [MU_COMPAT]: Remove. * include/mailutils/url.h (mu_url_sget_passwd, mu_url_aget_passwd) (mu_url_get_passwd) (mu_url_get_secret): New function. * libproto/include/auth0.h: Rewrite. * libproto/include/imap0.h (struct _f_imap): Replace passwd with mu_secret_t secret. * libproto/include/url0.h (struct _mu_url): Replace passwd with mu_secret_t secret. (_get_passwd): Replace with _get_secret * mailbox/secret.c: New function. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add secret.c. * mailbox/ticket.c: Rewrite from scratch. * mailbox/wicket.c: Rewrite from scratch. * libproto/imap/folder.c: Rewrite using mu_secret_t. * libproto/pop/mbox.c: Rewrite using mu_secret_t. * libproto/mailer/prog.c, libproto/mailer/sendmail.c, mailbox/auth.c, mailbox/url.c, movemail/movemail.c: Reflect changes to ticket/wicket system. * mailbox/mbx_default.c: Use new mu_wicket_t functions. * python/libmu_py/auth.c (api_wicket_get_filename) (api_wicket_set_filename): Remove. Not applicable any more. * python/libmu_py/url.c (api_url_get_passwd): Temporarly commented out. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add secret.h. * examples/url-parse.c: Use mu_secret_t calls. * imap4d/namespace.c: Minor changes. * libmu_auth/pam.c: Likewise.
2009-03-30Capture Python output in maidag.Wojciech Polak1
* include/mailutils/python.h (mu_py_capture_stdout, mu_py_capture_stderr): New prototypes. * maidag/python.c (python_check_msg): Redirect output.
2009-03-25Return int from mu_py_init_*()Wojciech Polak15
2009-03-22Improve autoconf machinery, drop support for Guile < 1.8Sergey Poznyakoff2
* scripts/guile-1.4: Removed. * scripts/guile-1.6/guile-doc-snarf: Move to the parent dir. * scripts/guile-1.6/guile-doc-snarf.awk: Move to the parent dir. * scripts: Rename to mu-aux. All references updated. * am/enable.m4 (MU_ENABLE_SUPPORT): add fourth argument, action-default Translate + to x. * am/guile.m4 (MU_RESULT_ACTIONS): Remove. (MU_CHECK_GUILE): Rewrite. Drop support for versions < 1.8 * am/lib.m4 (MU_CHECK_LIB): Rewrite using a cleaner approach. * bootstrap.conf: Remove build_aux assignement. * configure.ac: Assume a new naming scheme for optional builds: for each subst variable named MU_whatever_BUILD there is a corresponing Makefile.am variable named MU_whatever_LIST, if `whatever' is to be built MU_whatever_BUILD is set to '$(MU_whatever_LIST)' New option --disable-c++. Improve status output. * examples/Makefile.am, examples/cpp/Makefile.am, include/mailutils/Makefile.am, libmu_cpp/Makefile.am, libmu_scm/Makefile.am, libmu_sieve/Makefile.am, libmu_sieve/extensions/Makefile.am, libmu_sieve/load.c, mail.remote/Makefile.am, mail.remote/testsuite/Makefile.am, mailbox/Makefile.am, mh/Makefile.am, mimeview/Makefile.am, mu-aux/Makefile.am, python/mailutils/Makefile.am: Reflect changes to autoconf machinery. * /include/mailutils/guile.h: Drop support for versions < 1.8 * libmu_scm/mu_util.c: Likewise.
2009-03-18Add scripting to libmu_py.Wojciech Polak4
* python/libmu_py/script.c: New file.
2009-03-14Split Python interface into libmu_py and c_api.so.Wojciech Polak41
* include/mailutils/python.h: New file. * python/c_api: Rename to python/libmu_py.
2009-03-08Add new Python interface and example programs.Wojciech Polak61

Return to:

Send suggestions and report system problems to the System administrator.