1. 08 Sep, 2010 2 commits
    • * include/mailutils/stream.h (MU_STREAM_RDTHRU)
      (MU_STREAM_WRTHRU,MU_IOCTL_SET_TRANSPORT): New flags.
      (mu_xscript_stream_create, mu_iostream_create)
      (mu_dbgstream_create): New prototypes.
      * include/mailutils/sys/dbgstream.h: New header.
      * include/mailutils/sys/iostream.h: New header.
      * include/mailutils/sys/xscript-stream.h: New header.
      * include/mailutils/sys/Makefile.am (sysinclude_HEADERS): Add
      dbgstream.h, iostream.h and xscript-stream.h
      * mailbox/dbgstream.c: New file.
      * mailbox/iostream.c: New file.
      * mailbox/xscript-stream.c: New file.
      * mailbox/Makefile.am (libmailutils_la_SOURCES): Add dbgstream.c,
      iostream.c and xscript-stream.c
      * mailbox/filter_iconv.c (_icvt_ioctl): Simplify the declaration
      of ptrans.
      * mailbox/mapfile_stream.c (_mapfile_ioctl): Likewise.
      * mailbox/memory_stream.c (_memory_ioctl): Likewise.
      * mailbox/prog_stream.c (_prog_ioctl): Likewise.
      * mailbox/tcp.c (_tcp_ioctl): Likewise.
      * mailbox/fltstream.c (filter_ctl): Likewise.
      (filter_read_through, filter_write_through): New methods.
      (mu_filter_stream_create): Allow for use of MU_STREAM_RDTHRU
      and MU_STREAM_WRTHRU to create two-way filters (writing
      triggers filtering while reading is transparent or vice versa).
      * pop3d/extra.c (istream, ostream): Remove globals.
      (iostream): New variable.
      (real_istream, real_ostream): New variables.
      (pop3d_setio): Set transcript stream on top of the I/O one,
      if required.
      (pop3d_init_tls_server): Rewrite. Revert the meaning of the
      return code to match the usual convention (0 - success).
      (transcript): Removed.
      (pop3d_outf): Remove calls to transcript.
      * pop3d/pop3d.h (istream, ostream): Remove externs.
      (iostream): New extern.
      * pop3d/retr.c: Use iostream, instear of ostream.
      * pop3d/top.c: Likewise.
      * pop3d/stls.c: Update the call to pop3d_init_tls_server.
      
      * mailbox/stream_vprintf.c (mu_stream_vprintf): Fix return
      value to match the usual convention.
      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
  2. 05 Jan, 2010 1 commit
  3. 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
  4. 27 Jun, 2007 1 commit
  5. 17 May, 2005 1 commit
  6. 15 Nov, 2004 1 commit
  7. 14 Jan, 2003 1 commit
  8. 13 Jan, 2003 1 commit