- 22 Jan, 2016 1 commit
-
-
- 02 Mar, 2015 1 commit
-
-
- 05 Feb, 2014 1 commit
-
-
- 29 Jul, 2012 1 commit
-
-
* imap4d/imap4d.c (tls_required): Remove. (tls_mode): New variable. (imap4d_srv_config) <tls>: Remove. (imap4d_srv_config) <tls_mode>: New member. (imap4d_srv_param): Change the definition of the "tls" statement. Mark "tls-required" as deprecated. (imap4d_mainloop): Change type of the tls argument. Initialize session and pass it to each handler. * imap4d/imap4d.h (imap4d_session): New struct. (imap4d_command) <func>: Change signature. All uses changed. (tls_mode): New enum. (tls_required): Remove. (tls_available): New global. * imap4d/io.c (io_setio): Don't call tls_encryption_on, leave it to the caller. * imap4d/login.c (imap4d_login): Use session. * imap4d/starttls.c (tls_available): Global. Present even if !WITH_TLS (tls_encryption_on): Change signature. All callers updated.
Sergey Poznyakoff authored
-
- 05 Jan, 2012 1 commit
-
-
- 15 Jan, 2011 1 commit
-
-
Previously implemented way of signal handling was unsafe because of the use of unsafe functions in signal handlers. It also allowed for recursive invocations of MU calls not supposed to handle recursion (such as mu_mailbox_expunge, for example). This changeset fixes it. * imap4d/imap4d.c (imap4d_child_signal_setup): Change signal set. (imap4d_mainloop): Set a jump point for signal handling. Restore default handling for SIGILL, SIGBUS, SIGFPE, SIGSEGV, SIGSTOP. (master_jmp): New variable. (imap4d_master_signal): New function. (main): Redo signal handling. * imap4d/imap4d.h (child_jmp): New extern. (imap4d_enter_critical,imap4d_leave_critical): New protos. * imap4d/signal.c (imap4d_master_signal): Move to imap4d.c (imap4d_enter_critical,imap4d_leave_critical): New functions. (imap4d_child_signal): Rewrite. * imap4d/append.c: Protect critical sections. * imap4d/bye.c: Likewise. * imap4d/close.c: Likewise. * imap4d/copy.c: Likewise. * imap4d/delete.c: Likewise. * imap4d/expunge.c: Likewise. * imap4d/rename.c: Likewise. * imap4d/select.c: Likewise. * imap4d/status.c: Likewise. * scheme/Makefile.am (sievemod_DATA): Add guimb.scmi.
Sergey Poznyakoff authored
-
- 14 Jan, 2011 1 commit
-
-
* imap4d/expunge.c (imap4d_expunge): Clear attribute table before resynching. * imap4d/imap4d.h (imap4d_sync_invalidate): New extern. * imap4d/sync.c (invalidate_attr_table): Rename to imap4d_sync_invalidate; make extern. All callers updated.
Sergey Poznyakoff authored
-
- 02 Jan, 2011 1 commit
- 09 Oct, 2010 1 commit
-
-
- 08 Sep, 2010 1 commit
-
-
* 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
- 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
-
-
- 26 Aug, 2005 1 commit
-
-
- 17 May, 2005 1 commit
-
-
- 09 Feb, 2003 1 commit
-
-
- 29 Dec, 2002 1 commit
- 05 Aug, 2002 1 commit
-
-
- 20 Oct, 2001 1 commit
-
-
* doc/texinfo/mbox.texi: Update the doc for mbox(Unix). * doc/texinfo/pop.texi: Update the doc for mbox(Unix). * imap4d/expunge.c: Bug: Expunge was not sending the untag "* %d EXPUNGED" for message deleted. Call imap4d_sync () which will do the right thing. * imap4d/noop.c: Bug: It should call imap4d_sync () to notify the client of any changes. * imap4d/sync.c (notify_deleted): Typo should be EXPUNGED with a D. (imap4d_sync): Bug: Checked also if the number of messages changed. * mailbox/folder_imap.c (imap_flags): Bug: Rewrite it to be generic and sets the flags for the attribute. (imap_fetch_flags): Call imap_flags(). (imap_permanentflags): Call imap_flags(). * mailbox2/include/mailutils/mbox.h: Update prototypes. * mailbox2/include/mailutils/sys/mbox.h: Update prototypes. * mailbox2/include/mailutils/pop3.h: Update prototypes. * mailbox2/mbox/mbox_expunge.c (mbox_expunge): Calls mbox_expunge0 (). (mbox_save): Calls mbox_expunge0(). * mailbox2/mbox/mbox_scan.c (mbox_scan): Calls mbox_scan0 (). (mbox_count): Calls mbox_scan0(). * mailbox2/pop3/pop3_capa.c: Provide a special iterator. * mailbox2/pop3/pop3_lista.c: Provide a special iterator. * mailbox2/pop3/pop3_uidla.c: Provide a special iterator.
Alain Magloire authored
-
- 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
-
- 14 Apr, 2001 1 commit
-
-
* mailbox/folder_imap.c: When calling imap_writeline () the cookie for the tag should be unsigned %d --> %u. (imap_send) : The number of bytes in memmove was wrong. * mailbox/mbx_imap.c: Some duplicate degug calls MAILBOX_DEBUG0() removed. (attribute_string): IMAP does not have a \\Read flag it should be the same as \\Seen so attribute_read() == attribute_seen(). (flag_string): New function. (imap_attr_set_flags): Use flag_string(), instead. * mailbox/include/imap0.h: CLEAR_STATE() should also deselect the current mailbox. * mailbox/mbx_pop.c (pop_write): The number of bytes in the memmove was wrong. * imap4d/imap4d.h: Add HAVE_SECURITY_PAM_APPL_H. * imap4d/login.c: PAM_ERROR wrongly define. * imap4d/expunge.c: Initialise variable sp. * imap4d/logout.c: Initialise variable sp. * imap4d/noop.c: Initialise variable sp. * configure.in: AC_REP_FUNC(vasprintf). * include/mailutils/Makefile.am: Add property.h, parse822.h. * lib/vasprintf.c: Taken from libit. (AM_INIT_AUTOMAKE): Change version to 0.0.9
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
-