- 02 Jan, 2011 1 commit
- 09 Oct, 2010 1 commit
-
-
- 08 Sep, 2010 3 commits
-
-
-
* include/mailutils/stream.h (MU_IOCTL_LEVEL): New ioctl op. (XSCRIPT_NORMAL, XSCRIPT_SECURE, XSCRIPT_PAYLOAD): New constants. * include/mailutils/sys/xscript-stream.h (_mu_xscript_stream) <level>: New member. * mailbox/xscript-stream.c (TRANS_DISABLED): New flag. (print_transcript): Amount of output varies depending on the current output level. For secure data, try to recognize passwords and to replace them with *** on output. (_xscript_ctl): Support MU_IOCTL_LEVEL. * pop3d/extra.c (set_xscript_level): New function. * pop3d/pop3d.h (set_xscript_level): New proto. * pop3d/retr.c (pop3d_retr): Set XSCRIPT_PAYLOAD level before sending actual data and reset it to XSCRIPT_NORMAL afterwards. * pop3d/top.c (pop3d_top): Likewise. * pop3d/user.c: Set XSCRIPT_SECURE level while expecting the PASS command. * imap4d/fetch.c (imap4d_fetch): Run imap4d_fetch0 in XSCRIPT_PAYLOAD level. * imap4d/uid.c (imap4d_uid): Likewise. * imap4d/imap4d.c (imap4d_mainloop): Unless started in preauth mode, select XSCRIPT_SECURE mode until authentication has been passed. * imap4d/imap4d.h (set_xscript_level): New proto. * imap4d/io.c (io_format_completion_response): Switch to XSCRIPT_NORMAL level when changing to the authenticated state. (imap4d_readline): Read literals in XSCRIPT_PAYLOAD level. * imap4d/util.c (set_xscript_level): New function. * include/mailutils/pop3.h (mu_pop3_trace_mask): New prototype. (MU_POP3_XSCRIPT_MASK): New macro. (_mu_pop3_xscript_level): New proto. * libproto/pop/pop3_pass.c (mu_pop3_pass): Set XSCRIPT_SECURE while sending the password. * libproto/pop/pop3_retr.c (mu_pop3_retr): Set XSCRIPT_PAYLOAD before going to MU_POP3_RETR_RX state. * libproto/pop/pop3_stream.c (_pop3_event_cb): Set XSCRIPT_NORMAL. * libproto/pop/pop3_top.c (mu_pop3_top): Set XSCRIPT_PAYLOAD before going to MU_POP3_TOP_RX state. * libproto/pop/pop3_trace.c (mu_pop3_trace_mask) (_mu_pop3_xscript_level): New functions. * libproto/pop/mbox.c (pop_open): Set trace masks depending on the trace6 and trace7 debug levels. * examples/pop3client.c (com_verbose): Allow to mask/unmask transcript levels.
Sergey Poznyakoff authored -
* mailbox/fltstream.c (filter_wr_flush): Fix erroneous conditional. (filter_wait): New method. (mu_filter_stream_create): Set wait method. * imap4d/io.c: New source. * imap4d/Makefile.am: Add io.c * imap4d/*: Update I/O function calls.
Sergey Poznyakoff authored
-
- 05 Jan, 2010 1 commit
- 07 Jul, 2009 1 commit
-
-
* include/mailutils/cctype.h: New file. * include/mailutils/cstr.h: New file. * include/mailutils/Makefile.am: Add new files. * mailbox/cstrcasecmp.c: New file. * mailbox/cstrlower.c: New file. * mailbox/cstrupper.c: New file. * mailbox/muctype.c: New file. * mailbox/strltrim.c: New file. * mailbox/strrtrim.c: New file. * mailbox/strskip.c: New file. * mailbox/Makefile.am: Add new files. * .gitignore: Update * gnulib.modules: Remove strcase. * comsat/comsat.h, imap4d/imap4d.h, include/mailutils/mailutils.h, include/mailutils/mutil.h, include/mailutils/sys/pop3.h, libmu_scm/mu_scm.h, mail/mail.h: Include cstr.h and cctype.h. * comsat/oldcfg.c, config/mailutils-config.c, examples/mimetest.c, examples/mta.c, examples/nntpclient.c, examples/pop3client.c, imap4d/append.c, imap4d/create.c, imap4d/delete.c, imap4d/fetch.c, imap4d/id.c, imap4d/idle.c, imap4d/list.c, imap4d/namespace.c, imap4d/rename.c, imap4d/search.c, imap4d/status.c, imap4d/store.c, imap4d/uid.c, imap4d/util.c, libmu_argp/compat.c, libmu_auth/ldap.c, libmu_auth/sql.c, libmu_scm/mu_message.c, libmu_sieve/actions.c, libmu_sieve/comparator.c, libmu_sieve/extensions/list.c, libmu_sieve/extensions/spamd.c, libmu_sieve/extensions/vacation.c, libmu_sieve/load.c, libmu_sieve/sieve.l, libmu_sieve/tests.c, libproto/imap/folder.c, libproto/mailer/smtp.c, libproto/mbox/mbox.c, libproto/mh/folder.c, libproto/mh/mbox.c, libproto/pop/folder.c, libproto/pop/mbox.c, libproto/pop/pop3_connect.c, maidag/forward.c, maidag/lmtp.c, maidag/maidag.c, maidag/maidag.h, maidag/mailquota.c, mail/alt.c, mail/copy.c, mail/decode.c, mail/escape.c, mail/followup.c, mail/mail.c, mail/mailline.c, mail/msgset.y, mail/print.c, mail/reply.c, mail/send.c, mail/shell.c, mail/util.c, mail/write.c, mailbox/address.c, mailbox/amd.c, mailbox/assoc.c, mailbox/attachment.c, mailbox/attribute.c, mailbox/cfg_lexer.l, mailbox/date.c, mailbox/filter.c, mailbox/gdebug.c, mailbox/header.c, mailbox/kwd.c, mailbox/locale.c, mailbox/mailcap.c, mailbox/mailer.c, mailbox/message.c, mailbox/message_stream.c, mailbox/mime.c, mailbox/msrv.c, mailbox/mutil.c, mailbox/parse822.c, mailbox/progmailer.c, mailbox/rfc2047.c, mailbox/syslog.c, mailbox/url.c, mailbox/version.c, mh/mh.h, mh/mh_alias.l, mh/mh_ctx.c, mh/mh_fmtgram.y, mh/mh_init.c, mh/mh_list.c, mh/mh_msgset.c, mh/mh_sequence.c, mh/mh_whatnow.c, mh/mh_whom.c, mh/mhn.c, mh/mhparam.c, mh/pick.y, mh/sortm.c, mimeview/mimetypes.y, pop3d/bulletin.c, pop3d/expire.c, pop3d/pop3d.c, pop3d/pop3d.h, pop3d/popauth.c, pop3d/user.c, readmsg/msglist.c, readmsg/readmsg.c, readmsg/readmsg.h, sql/mysql.c, sql/postgres.c: Use locale-independent cclass and str functions.
Sergey Poznyakoff authored
-
- 10 Aug, 2008 1 commit
-
-
* imap4d/util.c (util_getword, util_getitem, util_token) (util_unquote): Remove. (imap4d_readline): Rewrite to reduce memory reallocation. Add support for non-synchronizing literals (RFC 2088). (imap4d_readline_ex): Remove. (util_do_command): Rewrite using new imap4d_readline. (util_parse_internal_date0): Remove. (imap4d_tokbuf_init, imap4d_tokbuf_destroy, imap4d_tokbuf_argc) (imap4d_tokbuf_getarg, util_isdelim) (imap4d_tokbuf_from_string): New functions. * imap4d/append.c, imap4d/auth_gss.c, imap4d/authenticate.c, imap4d/check.c, imap4d/close.c, imap4d/commands.c, imap4d/copy.c, imap4d/create.c, imap4d/delete.c, imap4d/examine.c, imap4d/imap4d.h, imap4d/list.c, imap4d/login.c, imap4d/logout.c, imap4d/lsub.c, imap4d/expunge.c, imap4d/idle.c, imap4d/noop.c, imap4d/rename.c, imap4d/search.c, imap4d/select.c, imap4d/starttls.c, imap4d/status.c, imap4d/store.c, imap4d/subscribe.c, imap4d/uid.c, imap4d/unsubscribe.c, imap4d/version.c: Rewrite using new imap4d_readline. * imap4d/namespace.c: Use new imap4d_readline. Ensure that each reported prefix ends with a hierarchy delimiter. * imap4d/imap4d.c (imap4d_mainloop): Use new imap4d_readline. * imap4d/fetch.c: Rewrite parser from scratch. * imap4d/capability.c (imap4d_capability_init): Report LITERAL+ capability. * imap4d/testsuite/imap4d/anystate.exp: Account for the LITERAL+ capability. * imap4d/testsuite/imap4d/append.exp: Fix APPEND arguments (imap4d requires exactly three arguments, as per RFC3501. Fix octet count in literals returned by fetch (previous versions failed to include the trailing CRLF). * imap4d/testsuite/imap4d/create.exp: Likewise. * imap4d/testsuite/imap4d/fetch.exp: Fix FETCH arguments (previous versions incorrectly accepted header-list without parentheses. Fix result of FETCH 4 BODY[2.2.1]: it returns entire part, in the contrast to previous versions, which treated it as BODY[2.2.1.TEXT]. * maidag/mailtmp.c (mail_tmp_finish): Ensure /dev/null is treated as mailbox.
Sergey Poznyakoff authored
-
- 27 Jun, 2007 1 commit
-
-
- 17 May, 2005 1 commit
-
-
- 09 Feb, 2003 1 commit
-
-
- 29 Dec, 2002 1 commit
- 05 Aug, 2002 1 commit
-
-
- 30 May, 2001 1 commit
-
-
- 07 May, 2001 1 commit
-
-
- 18 Apr, 2001 1 commit
-
-
an email excerpt: states is the valid states for a command (eg. LOGIN is only valid in non-authenticated state, SELECT is valid in authenticated or selected). success is the state to enter when the command completes successfully (STATE_NONE means no change) and failure is the state to enter when the command fails. The fetch code is getting close to completion! ye!
Alain Magloire authored
-
- 26 Jan, 2001 1 commit
-
-
shape and ready. The biggest thing will be the awfull parsing done for FETCH/SEARCH etc .. "This will be for another day" -- Scarlet O'hara
Alain Magloire authored
-
- 04 Sep, 2000 2 commits
-
-
-
Begin the great IMAP4d rewrite - most of the infrastructure is there, now just fill in the blanks
Jakob Kaivo authored
-