- 08 Sep, 2010 2 commits
-
-
STLS in pop3d is already working. * include/mailutils/sys/tls-stream.h: New header. * include/mailutils/tls.h (mu_tls_stream_create) (mu_tls_stream_create_client) (mu_tls_stream_create_client_from_tcp): Remove. (mu_tls_server_stream_create, mu_tls_client_stream_create): New protos. * libmu_auth/tls.c: Rewrite. * imap4d/util.c: Use mu_tls_server_stream_create. * libproto/pop/mbox.c: Use mu_tls_server_stream_create/ mu_tls_client_stream_create. * libproto/pop/pop3_stls.c: Use mu_tls_client_stream_create. * libproto/imap/folder.c: Use mu_tls_client_stream_create. * pop3d/capa.c (pop3d_capa): CAPA is allowed in both states. * pop3d/extra.c (pop3d_setio): Rewrite.
Sergey Poznyakoff authored -
* pop3d/pop3d.h: Include filter.h. (istream, ostream): New externs. * pop3d/extra.c (pop3d_setio): Set a crlf filter on the output stream. This allows to forget about \r in the rest of the code. * pop3d/retr.c (pop3d_retr): Use mu_stream_copy instead of copying streams manually. * pop3d/top.c (pop3d_top): Rewrite using streamrefs and mu_stream_copy. * all sources: Use \n instead of \r\n in output strings.
Sergey Poznyakoff authored
-
- 05 Jan, 2010 1 commit
- 11 Aug, 2009 1 commit
-
-
* pop3d/pop3d.h: Remove unused includes. (ABORT): New state. (pop3d_command_handler_t, struct pop3d_command): New types. (pop3d_find_command): New function. (pop3d_stat,pop3d_top,pop3d_uidl,pop3d_user,pop3d_apop) (pop3d_auth,pop3d_capa,pop3d_dele,pop3d_list,pop3d_noop) (pop3d_quit,pop3d_retr,pop3d_rset): Remove const from the arguments. Functions are free to modify it. (pop3d_parse_command): New function. * pop3d/cmd.c: New file. * pop3d/Makefile.am: Link in cmd.o * pop3d/apop.c: Use pop3d_parse_command to parse commands * pop3d/auth.c: Likewise. * pop3d/extra.c (pop3d_args, pop3d_cmd): Remove. (pop3d_parse_command): New function. (pop3d_abquit): use pop3d_error_string to convert error numbers to messages. * pop3d/pop3d.c (cb_bulletin_db): Protect by #ifdef USE_DBM (pop3d_mainloop): Change loop condition. Use pop3d_parse_command to parse commands, pop3d_find_command to lookup handlers in the command table and pop3d_error_string to convert error numbers to messages. (main): Call enable_stls if necessary. * pop3d/capa.c, pop3d/dele.c, pop3d/list.c, pop3d/noop.c, pop3d/quit.c, pop3d/retr.c, pop3d/rset.c, pop3d/stat.c, pop3d/stls.c, pop3d/top.c, pop3d/uidl.c, pop3d/user.c: Remove const qualifier from the command handler argument.
Sergey Poznyakoff authored
-
- 28 Dec, 2007 1 commit
-
-
appear in any local URLs. * TODO, NEWS: Update. * examples/url-parse.c: Print field/value pairs. * include/mailutils/argcv.h (MU_ARGCV_RETURN_DELIMS): New macro. (mu_argcv_get_np): New function. (mu_argcv_remove): New function. * include/mailutils/mutil.h (mu_scheme_autodetect_p): Change prototype. * include/mailutils/registrar.h (mu_registrar_lookup_url): New function. (struct _mu_record._is_scheme): Change signature. * include/mailutils/url.h (mu_url_sget_fvpairs) (mu_url_aget_fvpairs): New functions. (mu_url_expand_path): New function. * libproto/imap/folder.c (folder_imap_list): Fix signature. * libproto/nntp/folder.c (nntp_folder_list): Fix signature. * libproto/include/amd.h (amd_url_init): Remove. * libproto/include/registrar0.h: Fix scheme defines. * libproto/include/url0.h (struct _mu_url.fvpairs,fvcount): New members. * libproto/maildir/folder.c (_maildir_is_scheme): Change signature. (_maildir_url_init): Remove (_maildir_record): Remove url_init. * libproto/mbox/folder.c (_path_record): Remove url_init. (_mbox_record): Use mu_url_expand_path as url_init. (_path_is_scheme): Change signature. * libproto/mh/folder.c (_mh_is_scheme): Change signature. (_mh_url_init): Remove. (_mh_record): Use mu_url_expand_path as url_init. * libproto/mbox/Makefile.am (libmu_mbox_la_SOURCES): Remove url.c * libproto/mbox/url.c: Remove. * mail/mail.h, mail/util.c (util_url_to_string): New function. * mail/quit.c, mail/summary.c: Use util_url_to_string where appropriate. * mailbox/amd.c (amd_url_destroy, amd_url_init): Remove. * mailbox/argcv.c (mu_argcv_get_np): New function. (argcv_scan): Change signature. All callers updated. (argcv_get_n): Rewrite using argcv_get_np. (mu_argcv_remove): New function. * mailbox/file_stream.c (struct _prog_stream.argc): Fix data type. * mailbox/folder.c (mu_folder_create_from_record): URL initializer is optional. * mailbox/gdebug.c (mu_global_debug_from_string): Fix datatype of argc. * mailbox/mailbox.c (mailbox_folder_create): Rewrite. (_create_mailbox): Split off _create_mailbox0 function. Make URL initializer optional. * mailbox/mutil.c (mu_scheme_autodetect_p): Rewrite. * mailbox/registrar.c (mu_registrar_lookup_url): New function. (mu_registrar_lookup): Rewrite using mu_registrar_lookup_url. (mu_record_is_scheme,mu_record_set_is_scheme): Change signature. * mailbox/url.c (mu_url_destroy): Destroy fvpairs. (url_parse0): Use scheme "file" for URLs beginning with a /. Parse parameters. (mu_url_sget_fvpairs, mu_url_aget_fvpairs): New functions. (mu_url_expand_path): New function. * mailbox/testsuite/Urls: Update. * pop3d/bulletin.c (set_bulletin_db,set_bulletin_source): Allocate string storage. (read_bulletin_db): Return 0 if no record was found. (get_last_delivered_num): Return error code. (deliver_pending_bulletins): Rewrite. * pop3d/capa.c (pop3d_capa): Bugfix.
Sergey Poznyakoff authored
-
- 27 Jun, 2007 1 commit
-
-
- 20 Jan, 2006 1 commit
-
-
- 17 May, 2005 1 commit
-
-
- 15 Nov, 2004 1 commit
-
-
- 18 Oct, 2003 2 commits
-
-
-
Add EXPIRE in capa.c new optio --expire in pop3d.c in update state set the new header in quit.c in retr.c mark the message Downloaded. new file.
Alain Magloire authored
-
- 09 Feb, 2003 1 commit
-
-
- 13 Jan, 2003 1 commit
-
-
- 29 Dec, 2002 1 commit
- 07 Aug, 2002 1 commit
-
-
- 26 Jul, 2002 1 commit
-
-
- 02 May, 2001 1 commit
-
-
- 24 Apr, 2001 1 commit
-
-
* pop3d/*.[ch]: Rename all the pop function pop3d_xx() instead of pop3_xx() to be consistent with imap4d/*. * mailbox/mbx_pop.c (pop_user): This is sudden death; for many pop servers, it is important to let them time to remove locks or move the .user.pop files. This happen when we do BUSY_CHECK(). For example, the user does not want to read the entire file, and wants start to read a new message, closing the connection and immediately contact the server again, and we'll end up having "-ERR Mail Lock busy" or something similar. To prevent this race condition we sleep 2 seconds. 2001-04-23 Sergey Poznyakoff It is often convenient to separte log outputs from POP and SMTP servers. --with-log-facility flag which allows to specify to which log facility the loggin output should be directed. System administrators often prefere to have more information about unsuccessfull authentications. I have added more verbose logging to pop3d/user.c. Both failed attempts and possible account probes (USER immediately followed by QUIT) are logged. Made pop3d to be less verbose about its WELCOME prompt. When the symbol TERSE_MODE is defined, pop3d introduces itself just as +OK POP3 ready <apop_hash> insead of divulging its type and version. This is a bit paranoid, but it is better to be on the safe side...
Alain Magloire authored
-
- 29 Jan, 2001 1 commit
-
-
and update Copyrigth. * pop3d/pop3d.c : Remove mbox_record register, only need path_record. * pop3d/retr.c : When retrieve a message should be mark as read. since we do not strip out the header "Status:". * pop3d/top.c : Adjust stream_readline().
Alain Magloire authored
-
- 23 Sep, 1999 1 commit
- 16 Sep, 1999 1 commit
-
-