1. 27 Nov, 2001 5 commits
  2. 25 Nov, 2001 1 commit
  3. 21 Nov, 2001 3 commits
  4. 17 Nov, 2001 4 commits
    • 	mailbox_destroy_folder().
      	* mailbox/mailbox.c (mailbox_destroy_folder): Remove.
      	* comsat/comsat.c (notify_user): remove mailbox_destroy_folder().
      Alain Magloire authored
    • 	url in  ticket_pop.
      	* mailbox/mbx_pop.c (pop_get_user): Pass the url in ticket_pop()
      	* mailbox/mbx_pop.c (pop_get_passwd): Pass the url in ticket_pop()
      	* mailbox/ticket.c (ticket_set_pop): Change the prototype.
      	(ticket_pop): Change the prototype.
      	* mailbox/wicket.c (get_pass): New function get passwd.
      	(get_user): New function get user.
      	(myticket_create): Take filenanme as argument and
      	save the information.
      	(_get_ticket): Removed.
      	(myticket_pop): Take an url in argument.
      	* mailbox/include/auth0.h: field _pop() prototype changed.
      	* include/mailutils/auth.h: ticket_pop and ticket_set_pop
      	proptotype changed, add url. Include <mailutils/url.h>
      Alain Magloire authored
    • 	* include/mailutils/mutil.h: util_cpystr() to mu_cpystr().
      	* mailbox/address.c: util_cpystr() to mu_cpystr().
      	* mailbox/url.c: util_cpystr() to mu_cpystr().
      	* mailbox/mutil.c: util_cpystr() to mu_cpystr().
      	* mailbox/wicket.c: util_cpystr() to mu_cpystr().
      Alain Magloire authored
    • 	set a stream on the message and have the message_t do
      	the rfc822 parsing.
      	{
      	  message_t mesg = NULL;
      	  header_t header = NULL;
      	  stream_t stream = NULL;
      	  char buffer[512];
      	  off_t off = 0;
      	  size_t n = 0;
      
      	  message_create (mesg, NULL);
      	  file_stream_crete (&stream, "/home/user/mh/mesg_1");
      	  message_set_stream (mesg, stream, NULL);
      
      	  stream = NULL;
      	  message_get_header (mesg, &header);
      	  header_get_stream (header, &stream);
      	  while (stream_readline (stream, buffer, sizeof buffer, off, &n) == 0
      	          && n > 0) {
      	    printf ("%s", buffer);
      	    off += n;
      	  }
      	  message_destroy (&mesg, NULL);
      	}
      
      	* mailbox/message.c (message_header_fill): New
      	function implements a header if there was a stream set on the message.
      	(message_body_read): Implements the stream_read of body_t of
      	a message if there were a stream set.
      	(message_is_modified): Check if an object was set to message_t
      	and flag it as modified.
      	(message_get_body): If a stream was set on the message create a
      	temporary stream for the body.
      	(message_set_body): Set the message modified.
      	(message_set_header): Set the message modified.
      	(message_set_envelope): Set the message modified.
      	(message_set_attribute): Set the message modified.
      
      	* mailbox/wicket.c (wicket_destroy): return void.
      	* include/mailutils/auth.h: wicket_destroy ()
      	should return void.
      	* mailbox/body.c (body_is_modified): Implemented.
      	(body_clear_modified): Implemented.
      	* mailbox/body.c (body_is_modified): Implemented.
      	(body_clear_modified): Implemented.
      	(_body_get_size0): New function.
      	(_body_get_lines0): New function.
      	(body_get_lines): Call _body_get_lines0().
      	(body_get_size): Call _body_get_size0().
      	(body_lines): Fall back on the stream and iterate
      	the entire stream to find the  line numbers.
      	(body_size):  Fall back on the stream for the size.
      
      	* mailbox/folder_imap.c: Check if memory_stream_create()
      	succeed and bailout if not.
      
      	* mailbox/header.c (header_destroy): Free header->mstream.
      	(fill_blurb): Remove redundant code, header_free_cache was
      	doing the same.  Implement the code in term of a memory
      	stream to hold the temporary header blurb.
      	(header_write): Implemented.
      
      	* mailbox/memory_stream.c (_memory_read): Cast the offset to size_t
      	(_memory_readline): Cast the offset to size_t.
      	(_memory_write): Cast the offset to size_t.
      Alain Magloire authored
  5. 15 Nov, 2001 4 commits
  6. 14 Nov, 2001 3 commits
    •         a file, one can create a wicket_t and fetch ticket_t's
              for different users to set on the authority.
              {
                wicket_t (&wicket, "/home/alain/.tickets");
                wicket_get_ticket (wicket, &ticket, "alain", NULL);
                authority_set_ticket (wicket, ticket);
              }
      
              * include/mailutils/auth.h: Added wicket_t prototypes
              functions: wicket_create(), wicket_destroy,
              wicket_get_ticket().  New prototype ticket_set_data ()
              ticket_get_data () ticket_set_destroy (), ticket_set_owner();
              * mailbox/wicket.c: New file, implements wicket_t.
              * mailbox/ticket.c: New file, implements ticket_t.
              * mailbox/auth.c: Implements only authority_t.
              * mailbox/Makefile.am: Update for ticket.c and wicket.c
      Alain Magloire authored
    • Sergey Poznyakoff authored
    • Sergey Poznyakoff authored
  7. 13 Nov, 2001 9 commits
  8. 12 Nov, 2001 10 commits
  9. 11 Nov, 2001 1 commit
    • 	a generic one, lib/daemon.c, so any bug fix will impact the
      	others and reduce maintainance/duplication.
      
      	* lib/Makefile.am: Addition daemon.c
      	* lib/daemon.c: New file.
      	* pop3d/pop3d.c (pop3d_daemon_init): Use lib/daemon.c:daemon() code
      	instead.
      	* imap4d/imap4d.c (imap4d_daemon_init): Use lib/daemon.c:daemon code
      	instead.
      	* comstat/comstat.c (comstat_daemon_init): Use lib/daemon.c:daemon code
      	instead. Remove trailing spaces.
      Alain Magloire authored