- 16 Dec, 2001 5 commits
-
-
-
-
-
take the specific arguments appropriate to them and setup a stream_t so that stream_open(), which now takes no arguments, can perform whatever actions are appropriate when opening that particular kind of stream. I have tested the changes with the example programs and sieve, but not with the imap or pop servers.
Sam Roberts authored
-
- 13 Dec, 2001 4 commits
-
-
- 11 Dec, 2001 2 commits
-
-
- 04 Dec, 2001 2 commits
-
-
-
drop a dumb version in lib/getpass.c for missing plaforms. * configure.in: Check for getpass (); * lib/getpass.c: New file. * lib/Makefile.am: Updated.
Alain Magloire authored
-
- 03 Dec, 2001 5 commits
-
-
-
-
--modify when the user is not the owner of the database. This allows usual users to use popauth the way they use system passwd command, provided popauth is installed setuid.
Sergey Poznyakoff authored
-
- 30 Nov, 2001 1 commit
- 27 Nov, 2001 7 commits
-
-
- 25 Nov, 2001 1 commit
- 21 Nov, 2001 3 commits
-
-
- 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
-
- 15 Nov, 2001 4 commits
-
-
-
-
* mailbox/mailbox.c (mailbox_get_stream): Get the stream for the mailbox object if it is null try the folder. (mailbox_set_stream): Always set it on the mailbox object.
Alain Magloire authored -
-
- 14 Nov, 2001 2 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 -
-