- 27 Jun, 2007 1 commit
-
-
- 15 Nov, 2005 1 commit
-
-
- 27 Aug, 2005 1 commit
-
-
- 26 Aug, 2005 1 commit
-
-
- 16 Aug, 2005 1 commit
-
-
- 17 May, 2005 1 commit
-
-
- 03 Jun, 2004 1 commit
-
-
- 02 Jun, 2004 1 commit
-
-
- 28 Aug, 2003 1 commit
-
-
- 26 Jul, 2003 1 commit
-
-
- 23 Mar, 2003 1 commit
-
-
- 09 Feb, 2003 1 commit
-
-
- 05 Feb, 2003 1 commit
-
-
- 29 Dec, 2002 1 commit
- 17 Jan, 2002 1 commit
-
-
- 16 Dec, 2001 2 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
- 17 Nov, 2001 1 commit
-
-
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
-
- 31 Oct, 2001 1 commit
-
-
* mailbox/mbx_imap.c (mailbox_imap_close): Clear the callback string structure. (imap_scan0): Clear the callback string structure. (imap_append_message): Remove unused variable.
Alain Magloire authored
-
- 24 Oct, 2001 1 commit
-
-
properly overriden given the wrong size and line number, fixed. * mailbox/mbx_imap.c (mailbox_imap_close): Not to send another SELECT but rather just close the mailbox if not selected. (imap_scan0): If there is no messages in the mailbox no need to send the FETCH 1:*. * mailbox/message.c (message_is_modified): Protect against null pointer. * TODO: Some stuff todo 8).
Alain Magloire authored
-
- 15 Oct, 2001 1 commit
-
-
it is the same approach as in mail/util.c(environment) settings. The old code was simply overkill, property_t was seldomly use if at all and no need for heavy hash table and all that jazz. * mailbox/property.c: New code, the same as mail/util.c environment. * mailbox/mbx_mbox.c (_mbx_init): Remove property_add_defaults() etc .. no longer in use in the initialisation code. * mailbox/mbx_imap.c: Likewised * mailbox/mbx_pop.c: Likewised * mailbox/mbx_mh.c: Likewised * mailbox/header.c: Remove property code. * mailbox/body.c: Remove property code. * mailbox/message.c: Remove property code. * mailbox/filter.c: Change the code according to the new property_t. * mailbox/filter_rfc822.c: Change the code according to the new property_t. * include/mailutils/header.h: Remove property. * include/mailutils/body.h: Remove property. * include/mailutils/message.h: Remove property. * include/mailutils/property.h: Remove property_add_defaults() property_set_valued () takes one more argument for overwrite. * mailbox/include/header0.hy: Remove property field. * mailbox/include/body0.hy: Remove property field. * mailbox/include/message0.hy: Remove property field. * mailbox/mailbox.c(mailbox_get_property mailbox_set_property): Changed Property code. * mailbox/mailer.c(mailer_set_property mailer_get_property): Changed Property code. * mailbox/folder_imap.c (imap_search imap_expunge imap_status): Stubs Search is not implemented yet, STATUS neither and EXPUNGE is not used. * mailbox/list.c: Rename variable index to indx to shutup gcc whos confusing with index() when warning level was high. * mailbox/md5-rsa.c: Likewised. * mailbox/mailbox.c (mailbox_get_debug mailbox_set_debug): The debug object was being set on the folder not the mailbox. * mailbox/mbx_imap.c (imap_messages_count): Attempt to reconnect if the connection timeout. Is this wise ? (imap_scan0): Move gut of imap_scan() code tho here. (imap_scan): Stub calling imap_scan0() with notification enable. (imap_expunge): After CLOSE, call imap_scan0() wiht notification disable. Memory leak in parse822, this was a real pain to trace, because of the recursive nature of the algorithm. Sam should buy me a beer for this. * mailbox/parse822.c: Use more assert to catch errors. (parse822_group): phrase was not free() in case of failure. (parse822_mail_box): Dead if branch remove and free phrase. (parse822_route): accumulator was not being freed. (parse822_local_part): Move down st_free(more). (parse822_domain): Move down st_free(more).
Alain Magloire authored
-
- 10 Apr, 2001 1 commit
-
-
* mailbox/attachment.c (message_create_attachment): use filter_create(). (message_save_attachment): use filter_create(). * mailbox/body.c (body_set_lines): Wrong comparison for the owner. * mailbox/mbx_mbox.c: Do not count the line separtor of part of the mailbox. * mailbox/url.c (url_is_same_sheme): New function. (url_is_same_user): New function. (url_is_same_path): New function. (url_is_same_host): New function. (url_is_same_port): New function. * mailbox/folder.c : Moved the is_same_*() functions in url.c they can be generally usefull. (is_same_sheme): Removed. (is_same_user): Removed. (is_same_path): Removed. (is_same_host): Removed. (is_same_port): Removed. * mailbox/folder_imap.c (folder_imap_create): New function, CREATE a new mailbox. (folder_imap_open): Calls folder_imap_create when the MU_STREAM_CREAT flag is set. * mailbox/mbx_imap.c: Appending messages implemented, if the message comes from the same imap folder, it is COPY otherwise APPEND. (is_same_folder): New function. (imap_append_message): Implemented. (attribute_string): New functions. (imap_copy_message): New function. * mailbox/include/imap0.h: New enum, IMAP_APPEND, IMAP_APPEND_ACK, IMAP_APPEND_CONT, IMAP_APPEND_SEND, IMAP_COPY, IMAP_COPY_ACK, IMAP_CREATE, IMAP_CREATE_ACK. * mailbox/parse822.c: New parser. * include/mailutils/parse822.h: New file. * mailbox/address.c (address_create): Remove the old parsing and use parse822 as the underlying engine. (address_parse): Removed. (gettoken): Removed. (quotes): Removed. (address_get_personal): Remove the code to unquote, parse822 takes care if it. Return value when no field is ENOENT. (address_get_comments): Reutrn value when no field ENOENT. (address_get_local_part): Reutrn value when no field ENOENT. (address_get_domain): Reutrn value when no field ENOENT. (address_get_email): Reutrn value when no field ENOENT. (address_get_route): Reutrn value when no field ENOENT. * mailbox/message.c (message_sender): Use parse822 to retrieve the email from the From: field. (message_set_mailbox): New function. * mailbox/misc.c : Removed the old parsing code. (gettoken): Removed. (parseaddr): Removed. * mailbox/include/misc.h : Removed parseaddr() prototypes. From Sam Roberts, the new parse822 parser..
Alain Magloire authored
-
- 05 Apr, 2001 1 commit
-
-
perform some filtering on it. All the decoding streams will move to this i.e. quoted-printable, base64 etc .. This scheme will also permit users to add to the list new filters. Still work in progress. * mailbox/Makefile.am : Add filter.c filter_rfc822.c. * mailbox/body.c ( : When creating a floating body i.e creating a temporary file, the stream was not "own" by the body_t. (_body_get_fd): Likewised. (_body_read):_ Likewised. (_body_readline): Likewised. (_body_write): Likewised. (_body_truncate): Likewised. (_body_size): Likewised. (_body_flush): Likewised. * mailbox/folder_imap.c (imap_literal_string): Check if the callback.buffer is NULL. (imap_body): Do no set the callback.type if "FIELDS" is part of the string. * mailbox/header.c: Remove the support for RFC822 it will be part of the filter_t object. * mailbox/mbx_mbox.c: Likewised. * mailbox/mailbox.c (mailbox_size): Rename to mailbox_get_size(). * mailbox/stream.c (stream_is_seekable): New function. (stream_set_property): New function. (stream_get_property): New function. * mailbox/trans_stream.c: Beautify.
Alain Magloire authored
-
- 07 Feb, 2001 1 commit
-
-
- 17 Jan, 2001 1 commit
-
-
- 16 Jan, 2001 1 commit
-
-
address.c mime.c misc.c: Always cast to (unsigned char) when using the ctype functions like isspace(); mbx_default.c: If _PATH_SENDMAIL not set via paths.h use "/usr/spool/mail" message.c: uidl is now <md5 . time . sequene> tcp.c: INADDR_NONE is not define on solaris define it to -1.
Alain Magloire authored
-
- 15 Jan, 2001 3 commits
-
-
- 14 Jan, 2001 1 commit
-
-
When expunging check if the message as been modified, for example "X-UIDL" maybe add in the header it will now be save in the message. expunge reuse the same code of mbox_append_message(). add a new header_set_fill() to get the header of the messages form the mailbox.
Alain Magloire authored
-
- 11 Nov, 2000 1 commit
-
-
- 10 Nov, 2000 1 commit
-
-
- 24 Oct, 2000 1 commit
-
-
via dlopen() different type of mailboxes and mailer. For that the client must register the mailbox. So in the future we can have something like plugin ... still a hack/draft. Commited some code to be able to send mail with sendmail or via SMTP.
Alain Magloire authored
-
- 02 Sep, 2000 1 commit
-
-
mailutils/from will use the new mailbox API mailutils/mail will use the new mailbox API to convert pop3d(still use libmailbox the old API). mailutils/mail is incomplete and should is equivalent to LEGACY mail from Unix98.
Alain Magloire authored
-
- 01 Aug, 2000 1 commit
-
-
mbx_unix.c message.c include/private/io0.h include/private/mailbox0.h include/private/message0.h include/public/header.h include/public/io.h include/public/mailbox.h include/public/message.h Try new mailutils_error.h
Alain Magloire authored
-
- 23 Jun, 2000 1 commit
-
-
mbx_unixscan.c message.c include/private/message0.h include/public/io.h cleanup, finish the POP client code hopefully.
Alain Magloire authored
-
- 21 Jun, 2000 1 commit
-
-
mbx_unix.c mbx_unixscan.c message.c mime.c tcp.c transcode.c include/private/attribute0.h include/private/io0.h include/private/mailbox0.h include/private/tcp.h include/public/attribute.h include/public/auth.h include/public/io.h include/public/mailbox.h include/public/message.h added the first basic support for pop. include/private/auth0.h move the definition of auth_t struct here. net.c include/private/net0.h include/public/net.h Overhaul change of the net_t by D. I.
Alain Magloire authored
-
- 19 Jun, 2000 1 commit
-
-
net.c tcp.c transcode.c url_pop.c include/private/io0.h include/private/url0.h include/public/attribute.h include/public/io.h include/public/mailbox.h all function *_init() rename to *_create().
Alain Magloire authored
-
- 12 Jun, 2000 1 commit
-
-
include/private/attribute0.h include/private/body0.h include/private/mailer0.h include/private/net0.h include/private/tcp.h include/public/body.h include/public/mailer.h include/public/net.h parsing and little of networking code, making a path for Pop and IMAP.
Alain Magloire authored
-