aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-creation-dialog.h
blob: 8e3e9908359b8911c58cf5e0d0e646bb7d2012aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* e-shell.c
 *
 * Copyright (C) 2000  Ximian, Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Author: Ettore Perazzoli
 */

#ifndef E_SHELL_FOLDER_CREATION_DIALOG_H
#define E_SHELL_FOLDER_CREATION_DIALOG_H

#include <gtk/gtkwindow.h>

#include "e-shell.h"

enum _EShellFolderCreationDialogResult {
    E_SHELL_FOLDER_CREATION_DIALOG_RESULT_SUCCESS,
    E_SHELL_FOLDER_CREATION_DIALOG_RESULT_FAIL,
    E_SHELL_FOLDER_CREATION_DIALOG_RESULT_CANCEL
};
typedef enum _EShellFolderCreationDialogResult EShellFolderCreationDialogResult;

typedef void (* EShellFolderCreationDialogCallback) (EShell *shell,
                             EShellFolderCreationDialogResult result,
                             const char *path,
                             void *data);

void  e_shell_show_folder_creation_dialog  (EShell                             *shell,
                        GtkWindow                          *parent,
                        const char                         *default_parent_folder,
                        const char                         *default_type,
                        EShellFolderCreationDialogCallback  result_callback,
                        void                               *result_callback_data);

#endif /* E_SHELL_FOLDER_CREATION_DIALOG_H */
a> 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960
2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.c (camel_transfer_encoding_to_string): New
    function to replace the one from camel-mime-part.c
    (camel_transfer_encoding_from_string): Same.
    (camel_content_transfer_encoding_decode): Renamed from
    camel_header_content_encoding_decode().

    * camel-mime-part.c (camel_mime_part_encoding_to_string): Removed.
    (camel_mime_part_encoding_from_string): Removed.

    * camel-data-wrapper.[c,h]: updated for CamelTransferEncoding
    namespace changes

    * camel-folder-summary.c: updated for CamelTransferEncoding
    namespace changes

    * camel-mime-filter-bestenc.[c,h]: updated for CamelTransferEncoding
    namespace changes

    * camel-mime-message.c: updated for CamelTransferEncoding
    namespace changes

    * camel-mime-part-utils.c: updated for CamelTransferEncoding
    namespace changes

    * camel-multipart-signed.c: updated for CamelTransferEncoding
    namespace changes

    * camel-smime-context.c: updated for CamelTransferEncoding
    namespace changes

    * providers/imapp/camel-imapp-utils.c: updated for
    CamelTransferEncoding namespace changes

    * tests/lib/messages.c: updated for CamelTransferEncoding
    namespace changes

    * tests/message/test1.c: updated for CamelTransferEncoding
    namespace changes

2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.[c,h]: namespaced the encoding/decoding
    routines.

    * camel-mime-filter-basic.c: updated for namespace changes to the
    encoding/decoding routines in camel-mime-utils.c

    * camel-multipart.c: updated for namespace changes to the
    encoding/decoding routines in camel-mime-utils.c

    * camel-sasl-digest-md5.c: updated for namespace changes to the
    encoding/decoding routines in camel-mime-utils.c

    * camel-sasl.c: updated for namespace changes to the
    encoding/decoding routines in camel-mime-utils.c
    
    * camel-vee-folder.c: updated for namespace changes to the
    encoding/decoding routines in camel-mime-utils.c

    * providers/imap/camel-imap-search.c: updated for namespace
    changes to the encoding/decoding routines in camel-mime-utils.c

    * providers/pop3/camel-pop3-folder.c: updated for namespace
    changes to the encoding/decoding routines in camel-mime-utils.c

2003-08-26  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-parser.[c,h]: s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g and
    s/_header_state/_camel_mime_parser_state/g

    * camel-filter-driver.c: Same.

    * camel-folder-summary.c: Here too.

    * camel-http-stream.c: And here.

    * camel-mime-message.c: ...

    * camel-mime-part-utils.c: ...

    * camel-mime-part.c: ...

    * camel-movemail.c: ...

    * camel-multipart-signed.c: ...

    * camel-multipart.c: ...

    * providers/local/camel-mbox-folder.c: ...

    * providers/local/camel-mbox-summary.c: ...

    * providers/local/camel-mh-summary.c: ...

    * providers/nntp/camel-nntp-summary.c: ...

    * providers/pop3/camel-pop3-folder.c: ...

2003-08-25  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-utils.[c,h]: Namespaced.

    * camel-data-wrapper.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-digest-folder.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-filter-driver.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-filter-search.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-folder-search.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-folder-summary.[c,h]: updated for namespace changed made
    to camel-mime-utils.[c,h]

    * camel-http-stream.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-http-stream.h: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-internet-address.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-medium.[c,h]: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-mime-message.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-mime-parser.[c,h]: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-mime-part-utils.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-mime-part.[c,h]: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-movemail.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-multipart-encrypted.c: updated for namespace changed made
    to camel-mime-utils.[c,h]

    * camel-multipart-signed.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-multipart.c: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * camel-search-private.[c,h]: updated for namespace changed made
    to camel-mime-utils.[c,h]

    * camel-types.h: updated for namespace changed made to
    camel-mime-utils.[c,h]

    * providers/imap/camel-imap-folder.c: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/imap/camel-imap-store-summary.c: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/imap/camel-imap-utils.c: updated for namespace changed
    made to camel-mime-utils.[c,h]

    * providers/imapp/camel-imapp-utils.[c,h]: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/local/camel-local-summary.[c,h]: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/local/camel-maildir-summary.c: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/local/camel-mbox-summary.c: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/local/camel-spool-summary.h: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/nntp/camel-nntp-summary.c: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/nntp/camel-nntp-utils.c: updated for namespace changed
    made to camel-mime-utils.[c,h]

    * providers/pop3/camel-pop3-folder.c: updated for namespace
    changed made to camel-mime-utils.[c,h]

    * providers/sendmail/camel-sendmail-transport.c: updated for
    namespace changed made to camel-mime-utils.[c,h]

    * providers/smtp/camel-smtp-transport.c: updated for namespace
    changed made to camel-mime-utils.[c,h]

2003-09-16  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-mbox-folder.c
    (camel_mbox_folder_get_full_path): Implement a temp hack so trunk
    works until we merge in new-ui-branch.

    * camel-stream-filter.c (do_flush): Don't warning about how we
    haven't written anything to the stream, this is not an
    error. fflush() doesn't care if you try to fflush() a stream
    without writing to it, so we shouldn't care either.

2003-09-15  Not Zed  <NotZed@Ximian.com>

    * providers/imapp/camel-imapp-store.c (store_resp_list)
    (imap_login, try_sasl, imap_try_authenticate): removed dead code.

    * providers/imapp/camel-imapp-stream.c: return -1 if stream not
    set.

    * providers/imapp/camel-imapp-engine.c (iterate_completion): put
    done request on the done queue, so all requests are always
    somewhere.
    (camel_imapp_engine_command_free): just spit warnings of active
    messages being freed, but abort if the item isn't in any list.
    Also remove the node from its list before going on.
    (iterate_untagged, iterate_continuation, iterate_completion):
    staticifiy.

    * providers/imapp/camel-imapp-provider.c
    (camel_imapp_module_init): move camel_exception_setup call here.

    * providers/imapp/camel-imapp-driver.c
    (camel_imapp_driver_get_type): remove execption setup here, it
    isn't early enough.
    (camel_imapp_driver_list): handle exceptions.

2003-09-12  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/local/camel-mbox-folder.c
    (camel_mbox_folder_get_full_path): Implements
    CamelLocalFolder::get_full_path() (publicly namespaced so that
    CamelMboxStore can re-use them).
    (camel_mbox_folder_get_meta_path): Same.

    * providers/local/camel-mbox-store.c (get_folder): Changed the way
    the path is constructed, since we now handle subdirectories and
    stuff.
    (delete_folder): Try deleting the Folder.sbd directory. We also
    need to manage our own meta files since CamelLocalStore's impl
    constructs paths differently than what we need.
    (create_folder): Implemented.
    (rename_folder): Implemented.
    (scan_dir): Scan an mbox tree
    (get_folder_info): Implemented using scan_dir().

    * providers/local/camel-local-store.c (delete_folder): Set fi->url
    to the correct value, meaning we need to prefix it with the
    protocol and the folder_name is not actually part of the path, it
    is a separate component to the url.

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): Use the new class virtual method
    to construct the full folder path and all the meta files.
    (local_get_full_path): Implemented default get_full_path method.
    (local_get_meta_path): Implemented default get_meta_path method.

2003-09-11  Dan Winship  <danw@ximian.com>

    * Makefile.am (noinst_LTLIBRARIES): Remove libcamel-static.la

2003-09-05  Not Zed  <NotZed@Ximian.com>

    * providers/imap/camel-imap-store.c (imap_noop): call
    camel_folder_sync bypassing the folder lock.  See
    imap_store_refresh_folders too.

2003-09-04  David Woodhouse  <dwmw2@infradead.org>

    * providers/camel-imap-store.[ch]: Add PREAUTH handling and
    pine/mutt/etpan/etc.-style 'ssh <mailhost> exec imapd' support.
    
2003-09-03  David Woodhouse  <dwmw2@infradead.org>

    * camel-stream-process.[ch]: New stream implementation for running
    commands.
    * Makefile.am: Compile the above

2003-08-20  Not Zed  <NotZed@Ximian.com>

    ** See bug #47765.

    * camel-folder-search.h: Removed match1 member.

    * camel-folder-search.c (camel_folder_search_match_expression):
    use current directly rather than match1.  This method isn't used
    anywhere anyway.
    (search_not): remove match1 stuff.
    (search_match_all): properly handle the match-all against 1
    message as a scalar result, not an array result.

2003-09-03  Not Zed  <NotZed@Ximian.com>

    * camel-http-stream.c (camel_http_stream_set_proxy): handle NULL
    proxy_url - unset the proxy.

2003-08-29  Not Zed  <NotZed@Ximian.com>

    * camel-object.c (camel_object_state_write): 
    (cobject_getv):
    (cobject_setv, cobject_state_read, cobject_state_read) 
    (cobject_state_write): removed debug printfs.

    * providers/local/camel-local-folder.c (local_getv): Need to copy
    the local properties list before passing it out, since it's freed.

2003-08-27  Not Zed  <NotZed@Ximian.com>

    * providers/local/camel-local-folder.c (local_getv): implement
    PERSISTENT_PROPERTIES, for index mode.

    * camel-object.c (cobject_state_read): Also add property reading,
    and bump version to 1.
    (cobject_state_write): add persistent property writing.

2003-08-26  Not Zed  <NotZed@Ximian.com>

    * camel-folder.c (folder_getv): chain up properly.

    * camel-file-utils.c (camel_file_util_savename): helper to create
    a .#filename filename.

    * providers/local/camel-local-folder.c
    (camel_local_folder_construct): init meta-data for local folders.
    (local_getv): chain up properly, if args are not processed, rather
    than don't if they aren't.

2003-08-23  Not Zed  <NotZed@Ximian.com>

    * camel-object.c (cobject_class_init): added a new event,
    meta_changed.
    (camel_object_meta_set, camel_object_meta_get): meta-data api.
    (camel_object_free_hooks): Free meta-data if it is set on the
    object.

    * providers/local/camel-local-folder.c
    (camel_local_folder_get_type): setup a property list for local
    folders, just 'index_body' at present.

2003-08-25  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-filter-driver.c (pipe_to_system): Added some more error
    checking for reading/writing to the pipes. Fixes bug #47880.

2003-08-21  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-data-wrapper.c (decode_to_stream): Don't poke
    wrapper->stream directly, use camel_data_wrapper_write_to_stream()
    instead as this simplifies things and makes the imap data wrapper
    implementation Just Work (tm).

    * providers/imap/camel-imap-wrapper.c: changed prototype of
    write_to_stream() to return ssize_t.

2003-08-20  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate): Make
    sure to ref the stream. Fixes bug #47749.

2003-08-18  Not Zed  <NotZed@Ximian.com>

    * camel-http-stream.c: Various fixes to make it work.

    * tests/smime/pgp-mime.c (main): added missing 'ret' variable.

    * providers/smtp/camel-smtp-transport.c (connect_to_server): 
    * providers/imapp/camel-imapp-store.c (connect_to_server:
    * providers/imap/camel-imap-store.c (connect_to_server):
    * providers/pop3/camel-pop3-store.c (connect_to_server):
    * camel-http-stream.c (http_connect): change service->session for
    tcp_stream_ssl_new.

    * camel-tcp-stream-ssl.c: Changed service to session, and fix some
    refcounting of it.
    include camel-operation.h

2003-08-15  Not Zed  <NotZed@Ximian.com>

    ** See bug #47634.

    * tests/lib/messages.c (test_message_compare): check
    write_to_stream returns.
    (message_dump_rec): helper to dump message structure.

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): dont set content
    encoding here.
    (camel_mime_part_construct_content_from_parser): set it here
    instead, on every part.  basically same as setting the
    mime_type_field always.

    * camel-multipart-signed.c (camel_multipart_signed_class_init): 
    * camel-mime-message.c (camel_mime_message_class_init): 
    * camel-multipart.c (camel_multipart_class_init): override
    decode_to_stream to always do the same as write_to_stream, since
    we can never be encoded.

2003-08-15  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate):
    Don't attach any filters to decode base64/qp/etc.

2003-08-14  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part.c (write_to_stream): Save errno when
    flushing/unreffing the filter stream.

2003-08-13  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-part.c (write_to_stream): If the content is
    base64/qp/uu/etc encoded but the part is 7bit/8bit/(or otherwise
    non-encoded), set reencode to TRUE so that we decode the original
    content stream. Fixes a bug noticed on
    evolution-patches@ximian.com where a patch had a
    Content-Transfer-Encoding of 7bit but was base64 encoded.

2003-08-13  Not Zed  <NotZed@Ximian.com>

    * camel-folder-summary.c (camel_folder_summary_remove_range): Fix
    the range check, we were stopping removal of 1 or 2 removals, for
    some odd and completely uncomprehensible reason.  Perhaps debug
    left in?

2003-08-13  Not Zed  <NotZed@Ximian.com>

    ** See bug #47517.

    * camel-vee-folder.c (vee_sync): Always rebuild folder on any
    sync, not just expunge ones.

2003-08-11  Not Zed  <NotZed@Ximian.com>

    * providers/imapp/camel-imapp-store.c (imap_get_folder_info):
    force connect manually so basics work.

    ** See bug #45505.

    * camel-service.c (camel_gethostbyname): duh, pthread_create
    returns the error code directly, not via errno.
    (camel_gethostbyaddr): Same, also properly handle the failure
    case.

2003-08-01  Not Zed  <NotZed@Ximian.com>

    ** See bug #47208.

    * camel-filter-search.c (match_all): match-all with no arguments    
    should always return TRUE.

    * camel-folder-search.c (camel_folder_search_execute_expression):
    print a warning when we get an invalid result type & fixed a leak
    for that case.

2003-08-08  Jeffrey Stedfast  <fejj@ximian.com>

    * tests/message/test4.c: New test suite for the mime parser (which
    is where the below 2 fixes were noticed).

    * camel-mime-parser.c (folder_boundary_check): Calculate 'len' by
    subtracting the boundary start from inend rather than 'atleast'.
    (folder_scan_content): Calculate 'inend' differently depending on
    the EOF state.

2003-08-08  Jeffrey Stedfast  <fejj@ximian.com>

    * camel-mime-filter-tohtml.c (html_convert): Rather than checking
    *inptr == '\n', check inptr >= inend - this gets rid of an Invalid
    Read report from valgrind.

    * camel-mime-part.c (write_to_stream): Don't necessarily re-encode
    just because the encodings differ. Need to look into making it so
    that message/rfc822 and multipart parts ignore the
    Content-Transfer-Encoding header and just keep their 'encoding'
    bits set to DEFAULT.

2003-08-05  Jeffrey Stedfast  <fejj@ximian.com>

    * providers/imap/camel-imap-folder.c (get_content): Updated.

    * camel-mime-message.c (camel_mime_message_init): Don't override
    the mime_type here.
    (process_header): Updated to use CamelDataWrapper's mime_type
    field.
    (find_best_encoding): Same.
    (best_encoding): Here too.

    * camel-digest-folder.c (camel_digest_folder_new): Updated for
    CamelMimePart::content_type change.

    * camel-mime-part.c (camel_mime_part_init): Override our parent
    class's default mime_type.
    (camel_mime_part_finalize): Don't need to unref the content_type
    anymore.
M   (process_header): Updated to use CamelDataWrapper's mime_type
    field.
    (camel_mime_part_set_filename): Same.
    (camel_mime_part_get_filename): Same.
    (camel_mime_part_get_content_type): Same.
    (set_content_object): Here too.
    (write_to_stream): Updated.
    (construct_from_parser): Updated.

    * camel-mime-part.h: Remove the content_type field.

2003-07-31  Jeffrey Stedfast  <fejj@ximian.com>

    * tests/lib/messages.c (test_message_compare_content): If the
    chunks differ, perform a hexdump on the data being compared so
    that we may analyse it easier.

    * camel-multipart-signed.c (write_to_stream): Return ssize_t.

    * camel-mime-utils.h: Added the CamelMimePartEncodingType enum
    here.

    * camel-mime-part.h: Removed the CamelMimePartEncodingType enum
    from here.

    * camel-mime-part.c (write_to_stream): Updated to return
    ssize_t. Also minor changes to only re-encode the content stream
    if the charset or encoding changed (this way we write it out in
    the original raw form if nothing changed).

    * camel-mime-part-utils.c
    (simple_data_wrapper_construct_from_parser): Drastically
    simplify. We no longer scan html content to try and find the
    charset, nor do we care about converting the content to UTF-8 and
    handling broken windows charsets.

    * camel-mime-message.c (find_best_encoding): Use
    decode_to_stream() here. Also updated to not assume the content
    charset is UTF-8 since it is very likely not the case anymore
    since data-wrappers no longer are converted to UTF-8 at parse
    time.

    * camel-folder-summary.c (summary_build_content_info_message): Use
    decode_to_stream instead here too.

    * camel-folder-search.c (match_words_1message): Use
    decode_to_stream instead of write_to_stream so we can search the
    contents.

    * camel-data-wrapper.c (camel_data_wrapper_init): Set the default
    encoding to DEFAULT.
    (write_to_stream): Updated to return ssize_t
    (camel_data_wrapper_decode_to_stream): New virtual function to
    decode a data wrapper to a stream (results in nearly identical
    behaviour to the old write_to_stream method).
    (decode_to_stream): Default implementation of above virtual