aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/smtp/camel-smtp-transport.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the linewrap filter to achieve full RFC0821 compliance.Jeffrey Stedfast2000-09-201-128/+133
| | | | | | | | | | | 2000-09-19 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.c (smtp_data): Use the linewrap filter to achieve full RFC0821 compliance. * camel-mime-filter-linewrap.[c,h]: New mime-filter to word-wrap. svn path=/trunk/; revision=5510
* Updated to check for EXPUNGE notificationsJeffrey Stedfast2000-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | 2000-08-29 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-store.c (camel_imap_command_extended): Updated to check for EXPUNGE notifications * providers/imap/camel-imap-folder.c (camel_imap_folder_changed): Updated to account for messages which have been expunged (now takes a new arg, a GPtrArray of message id's that have been expunged) (imap_expunge): Updated (we may want to just use the code in folder_changed now instead of doing our own summary expunging...but that can be fixed later) (imap_append_message): Updated. (imap_copy_message_to): Updated. (imap_move_message_to): Updated. svn path=/trunk/; revision=5098
* Automatically connect services when given a valid URL (should hopefully ↵Peter Williams2000-08-231-5/+18
| | | | | | disconnect, too); remove the old movemail folder correctly. svn path=/trunk/; revision=4965
* Fixed some warnings.Christopher James Lahey2000-08-111-0/+3
| | | | | | | | | | | | | | | | 2000-08-10 Christopher James Lahey <clahey@helixcode.com> * camel-folder-search.c, camel-folder-summary.c, camel-medium.c, camel-mime-filter-charset.c, camel-mime-filter.c, camel-mime-filter.h, camel-mime-message.c, camel-mime-parser.c, camel-mime-part-utils.c, camel-mime-part.c, camel-mime-utils.c, camel-movemail.c, camel-multipart.c, camel-object.c, camel-stream-mem.c, providers/mbox/camel-mbox-folder.c, providers/mbox/camel-mbox-summary.c, providers/mh/camel-mh-folder.c, providers/smtp/camel-smtp-transport.c: Fixed some warnings. svn path=/trunk/; revision=4719
* Merge with camel-async.Peter Williams2000-08-111-22/+16
| | | | svn path=/trunk/; revision=4687
* When forced to use the IP, place it in square brackets.Jeffrey Stedfast2000-08-021-7/+12
| | | | | | | | | 2000-08-01 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.c (smtp_helo): When forced to use the IP, place it in square brackets. svn path=/trunk/; revision=4462
* Update to reflect past changes in the Camel API. Use gtk macro castsJeffrey Stedfast2000-07-091-33/+35
| | | | | | | | | | | | | | | | | | | | | | | | 2000-07-08 Jeffrey Stedfast <fejj@helixcode.com> * providers/nntp/camel-nntp-folder.c: * providers/nntp/camel-nntp-utils.c: * providers/nntp/camel-nntp-store.c: Update to reflect past changes in the Camel API. Use gtk macro casts wherever possible and use glib's memory functions instead of standard c's (since they are not compatable) * providers/smtp/camel-smtp-transport.c: * providers/imap/camel-imap-store.c: Wrap debug print statements in a macro * providers/imap/camel-imap-stream.c (stream_read): Make sure that we get up to and including the last \n of the mime part. * providers/imap/camel-imap-folder.c (imap_get_message): Make sure that we get up to and including the last \n of the mime part. Wrap debug print statements in a macro. svn path=/trunk/; revision=3984
* Fixed the parser to actually workJeffrey Stedfast2000-07-081-14/+12
| | | | | | | | | 2000-07-07 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.c (esmtp_get_authtypes): Fixed the parser to actually work svn path=/trunk/; revision=3950
* Oops. Don't pass port # as a string in the error code (if it fails toJeffrey Stedfast2000-07-061-4/+5
| | | | | | | | | 2000-07-06 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.c (smtp_connect): Oops. Don't pass port # as a string in the error code (if it fails to connect). svn path=/trunk/; revision=3917
* New method, to return an end-user-friendly name corresponding to aDan Winship2000-07-021-0/+13
| | | | | | | | | | | | | | | * camel-service.c (camel_service_get_name): New method, to return an end-user-friendly name corresponding to a service. (eg, "POP service for danw on trna.helixcode.com"). * providers/imap/camel-imap-store.c, providers/mbox/camel-mbox-store.c, providers/nntp/camel-nntp-store.c, providers/pop3/camel-pop3-store.c, providers/sendmail/camel-sendmail-transport.c, providers/smtp/camel-smtp-transport.c: Implement. svn path=/trunk/; revision=3851
* Don't close the filter stream when done with it (this causes the sourceChristopher James Lahey2000-06-281-1/+1
| | | | | | | | | | 2000-06-27 Christopher James Lahey <clahey@helixcode.com> * providers/smtp/camel-smtp-transport.c: Don't close the filter stream when done with it (this causes the source stream to close); Instead, just flush it when done. svn path=/trunk/; revision=3763
* Deprecated.Jeffrey Stedfast2000-06-131-8/+8
| | | | | | | | | | | | | | | | | | | 2000-06-12 Jeffrey Stedfast <fejj@helixcode.com> * camel-mime-filter-smtp.c: Deprecated. * providers/smtp/camel-smtp-transport.c (smtp_data): Updated to use camel-mime-filter-crlf with my 'dot' extension in place of camel-mime-filter-smtp * camel-mime-part.c (write_to_stream): Updated to reflect changes made to camel-mime-filter-crlf.c * camel-mime-filter-crlf.c (filter): Modified to be able to encode/decode dots ("\n.\n"<->"\n..\n"). Also fixed the decoder so that it should no longer get caught in an infinite loop. svn path=/trunk/; revision=3536
* Will now always send EHLO first, if that fails it will fall back on HELO.Jeffrey Stedfast2000-06-101-4/+15
| | | | | | | | | | 2000-06-09 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.c (smtp_connect): Will now always send EHLO first, if that fails it will fall back on HELO. (esmtp_get_authtypes): Should now correctly parse authtypes. svn path=/trunk/; revision=3490
* worked on getting providers/imap/* to build cleanly, fixed a number of ↵Jeffrey Stedfast2000-06-071-115/+115
| | | | | | | | stupid errors and things like that am commit'ing code since there are some volunteers that would like to work on imap svn path=/trunk/; revision=3440
* moved some debug print statements to better locationsJeffrey Stedfast2000-06-031-20/+21
| | | | svn path=/trunk/; revision=3395
* Implemented a few more imap functions in providers/imap/camel-imap-folder.cJeffrey Stedfast2000-05-311-2/+3
| | | | svn path=/trunk/; revision=3286
* Took out code that had been there to reconnect to the server if it was notJeffrey Stedfast2000-05-261-4/+0
| | | | | | | | | | | | | 2000-05-25 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.c (_send_to): Took out code that had been there to reconnect to the server if it was not already connected - Mailer code was fixed so that this should not be needed. * providers/imap/camel-imap-store.[c,h]: Initial code. svn path=/trunk/; revision=3202
* Fixes to make the SMTP transport thread-safeEDT 2000 Jeffrey Stedfast2000-05-251-17/+25
| | | | | | | | | Wed May 24 18:09:26 EDT 2000 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.[c,h]: Fixes to make the SMTP transport thread-safe svn path=/trunk/; revision=3190
* Added debug fprintfs, tested with a few messages (smtp_data): Fixed to useEDT 2000 Jeffrey Stedfast2000-05-241-3/+44
| | | | | | | | | | | | | | | Tue May 23 17:49:21 EDT 2000 Jeffrey Stedfast <fejj@helixcode.com> * providers/smtp/camel-smtp-transport.c: Added debug fprintfs, tested with a few messages (smtp_data): Fixed to use data_wrapper_write_to_stream() * camel-mime-filter-smtp.c (filter): Modified to escape all lines beginning with a '.' and to place \r before each \n if one did not previously exist. Removed code to escape "From " as it was found to not be needed * providers/imap/.cvsignore: added file svn path=/trunk/; revision=3186
* stuffJeffrey Stedfast2000-05-231-2/+2
| | | | svn path=/trunk/; revision=3174
* stuff dudeJeffrey Stedfast2000-05-231-6/+1
| | | | svn path=/trunk/; revision=3173
* dude, just stuffJeffrey Stedfast2000-05-231-68/+67
| | | | svn path=/trunk/; revision=3166
* fix an off-by-one error in address parsing (smtp_data): useDan Winship2000-05-181-2/+3
| | | | | | | | | | * providers/smtp/camel-smtp-transport.c (smtp_get_email_addr_from_text): fix an off-by-one error in address parsing (smtp_data): use camel_data_wrapper_get_output_stream rather than data_wrapper->output_stream svn path=/trunk/; revision=3108
* error checking on gethostbyaddr() in providers/smtp/camel-smtp-transport.cJeffrey Stedfast2000-05-171-2/+2
| | | | svn path=/trunk/; revision=3104
* o Added some preliminary ESMTP AUTH supportEDT 2000 Jeffrey Stedfast2000-05-161-6/+37
| | | | | | | | Mon May 15 17:19:31 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Added some preliminary ESMTP AUTH support svn path=/trunk/; revision=3049
* now it deff compilesJeffrey Stedfast2000-05-121-1/+1
| | | | svn path=/trunk/; revision=2995
* camel-smtp-transport.c will now compile :)Jeffrey Stedfast2000-05-121-7/+8
| | | | svn path=/trunk/; revision=2993
* providers/smtp/camel-smtp-transport.c: updated smtp_helo to more closely ↵Jeffrey Stedfast2000-05-121-14/+10
| | | | | | comply with RFC 821 standards svn path=/trunk/; revision=2991
* fixed camel_smtp_transport_class_init(): now initializes service_classJeffrey Stedfast2000-05-111-1/+4
| | | | svn path=/trunk/; revision=2979
* o Undid changes to camel-internet-address.[c,h] o FixedEDT 2000 Jeffrey Stedfast2000-05-091-27/+29
| | | | | | | | | Tue May 9 09:32:33 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Undid changes to camel-internet-address.[c,h] o Fixed providers/smtp/camel-smtp-transport.c _send to use camel_internet_address_get() o formatting changes to providers/smtp/camel-smtp-transport.c svn path=/trunk/; revision=2938
* o Moved struct_address from camel-internet-address.c toEDT 2000 Jeffrey Stedfast2000-05-091-3/+26
| | | | | | | | | | Tue May 9 09:03:18 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Moved struct_address from camel-internet-address.c to camel-internet-address.h (so it could be used in providers/smtp/camel-smtp-transport.h) o providers/smtp/camel-smtp-transport.c _send should now work like it was meant to CVS svn path=/trunk/; revision=2937
* o updated to use CamelException (as needed by new camel-stream.c) o noEDT 2000 Jeffrey Stedfast2000-05-091-30/+29
| | | | | | | | Mon May 8 22:12:55 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o updated to use CamelException (as needed by new camel-stream.c) o no longer frees memory it shouldn't touch svn path=/trunk/; revision=2929
* Make camel not leak like a sieve.Dan Winship2000-05-081-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * camel-object.c: New subclass of GtkObject which is now the base of the Camel object hierarchy. Currently the only difference between CamelObject and GtkObject is that CamelObjects don't start out floating. * *.h: Move a bunch of typedefs to camel-types.h. Standardize on using <camel/foo.h> in header files rather than <foo.h>, "foo.h", or "camel/foo.h". Remove some unneeded includes. * camel-address.c, camel-data-wrapper.c, camel-folder-search.c, camel-folder-summary.c, camel-folder.c, camel-mime-filter.c, camel-mime-parser.c, camel-service.c, camel-session.c, camel-stream.c: These are now subclasses of CamelObject. * camel-data-wrapper.c (set_output_stream): * camel-medium.c (set_content_object): * camel-seekable-substream.c (init_with_seekable_stream_and_bounds): * providers/mbox/camel-mbox-folder.c (mbox_get_message_by_uid): remove gtk_object_sink calls. * camel-stream-buffer.c (init_vbuf): * camel-stream-filter.c (camel_stream_filter_new_with_stream): ref the original stream. * camel-folder-summary.c (camel_folder_summary_finalise): unref the filters when finalizing. * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser, camel_mime_part_construct_content_from_parser): * camel-mime-part.c (camel_mime_part_set_content): Unref objects that are created only to be handed off to other objects. If they're going to be needed later, they will have been additionally ref'ed by the object that needs them. * providers/pop3/camel-pop3-folder.c (get_message_by_number): unref the message stream after creating the data from it. * camel-stream.c, camel-stream-buffer.c, camel-stream-filter.c, camel-stream-fs.c, camel-stream-mem.c: Remove camel_stream_close, since its semantics are dubious (what happens when you close a stream other people still have references on?). * providers/nntp/camel-nntp-store.c: * providers/smtp/camel-smtp-transport.c: * providers/pop3/camel-pop3-store.c: replace camel_stream_close calls with gtk_object_unref. * providers/mbox/camel-mbox-folder.c: * providers/nntp/camel-nntp-folder.c: * providers/sendmail/camel-sendmail-transport.c: replace camel_stream_close with camel_stream_flush + gtk_object_unref svn path=/trunk/; revision=2882
* New function to replace camel_provider_scan. Returns a list of either (a)Dan Winship2000-05-041-10/+30
| | | | | | | | | | | | | | | | | | | | | | | | | * camel-session.c (camel_session_list_providers): New function to replace camel_provider_scan. Returns a list of either (a) all currently-loaded providers, or (b) all available providers. * camel-url.[ch]: Add an "empty" flag to CamelURL (indicating that it contains only a protocol). * camel-service.c (camel_service_query_auth_types): Make this take a CamelException (since it may have to try to connect to the server, and it might not able to.) * providers/pop3/camel-pop3-store.c: add KPOP (Kerberized POP) support. This is mostly so I have two kinds of authmech to play with instead of just one. (But it does actually work.) * providers/smtp/camel-smtp-transport.c (query_auth_types): update for prototype change, but disable the functionality, since it doesn't really support any auth types yet. (camel_smtp_transport_get_type): add an object init function to set the service url_flags. svn path=/trunk/; revision=2797
* o Reformatted providers/smtp/camel-smtp-transport.c to fit the standardEDT 2000 Jeffrey Stedfast2000-04-101-387/+352
| | | | | | | Sun Apr 9 21:23:15 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Reformatted providers/smtp/camel-smtp-transport.c to fit the standard indent format used by helix code svn path=/trunk/; revision=2357
* #include <sys/param.h> for MAXHOSTNAMELEN. (This is a stopgap: some of theDan Winship2000-04-091-0/+1
| | | | | | | | * providers/smtp/camel-smtp-transport.c: #include <sys/param.h> for MAXHOSTNAMELEN. (This is a stopgap: some of the uses of MAXHOSTNAMELEN are wrong anyway...) svn path=/trunk/; revision=2340
* o fixed numerous bugs in providers/smtp/camel-smtp-transport.c; should nowEDT 2000 Jeffrey Stedfast2000-04-081-52/+48
| | | | | | | | | | Fri Apr 7 16:49:42 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o fixed numerous bugs in providers/smtp/camel-smtp-transport.c; should now build correctly o readded smtp to providers/Makefile.am CVS svn path=/trunk/; revision=2332
* o Added smtp_helo() request into smtp_connect() (forgott o do this before)EDT 2000 Jeffrey Stedfast2000-04-071-1/+7
| | | | | | | | Fri Apr 7 08:01:43 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Added smtp_helo() request into smtp_connect() (forgott o do this before) o Modified smtp_helo() to send EHLO if communicating with an ESMTP server svn path=/trunk/; revision=2322
* o Added smtp/ to providers tree under camel o Added makefiles and sourceEDT 2000 Jeffrey Stedfast2000-04-071-0/+694
Thu Apr 6 22:56:44 EDT 2000 Jeffrey Stedfast <fejj@stampede.org> o Added smtp/ to providers tree under camel o Added makefiles and source for an smtp module (untested as of yet) svn path=/trunk/; revision=2317