Commit Graph

1301 Commits

Author SHA1 Message Date
b50306c380 use system = EVOLUTION_DATADIR "/file" instead of g_strdup_printf. Rename
2001-04-22  Gediminas Paulauskas <menesis@delfi.lt>

	* folder-browser.c, mail-autofilter.c, mail-callbacks.c, mail-ops.c,
	mail-summary.c, mail-vfolder.c: use system = EVOLUTION_DATADIR "/file"
	instead of g_strdup_printf. Rename userrules to user (and system) to be
	consistent.

	* mail-send-recv.c: set window icon to send-receive.xpm

2001-04-21  Gediminas Paulauskas <menesis@delfi.lt>

	* mail-summary.c: translate "Mail summary".

svn path=/trunk/; revision=9490
2001-04-21 22:52:56 +00:00
c4a26fef3d Convert the result of g_get_real_name() from the locale charset to UTF8.
* mail-config-druid.c (make_default_account): Convert the result
	of g_get_real_name() from the locale charset to UTF8. Noted by
	Petter Sundlöf (NOT "Petter Sundl_" :)

svn path=/trunk/; revision=9481
2001-04-20 23:05:36 +00:00
c36302e415 Use a CamelPgpType. (mail_config_get_pgp_type): Return a CamelPgpType.
2001-04-20  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (mail_config_set_pgp_type): Use a CamelPgpType.
	(mail_config_get_pgp_type): Return a CamelPgpType.
	(auto_detect_pgp_variables): auto-detect the user's pgp settings.

svn path=/trunk/; revision=9479
2001-04-20 19:59:24 +00:00
726c06dcdd Fix a dumb thinko in my 04-11 patch.
* mail-format.c (handle_text_plain): Fix a dumb thinko in my 04-11
	patch.

svn path=/trunk/; revision=9477
2001-04-20 19:42:05 +00:00
c66a38af5f Convert subject from utf8 before passing it on.
* mail-ops.c: (send_mail_desc): Convert subject from utf8
	before passing it on.

svn path=/trunk/; revision=9474
2001-04-20 14:32:32 +00:00
995e7b0612 #if 0'd out my not-working selection code
2001-04-20  Gediminas Paulauskas <menesis@delfi.lt>

	* mail-display.c: #if 0'd out my not-working selection code

svn path=/trunk/; revision=9464
2001-04-20 00:54:15 +00:00
f010192866 Make this more raw: don't do URLs and citations.
* mail-format.c (mail_format_raw_message): Make this more raw:
	don't do URLs and citations.

svn path=/trunk/; revision=9457
2001-04-19 13:25:21 +00:00
c6a6b65fb4 Don't need to dup the string: the relevant gnome-dialog routine already
* session.c (request_callback): Don't need to dup the string: the
        relevant gnome-dialog routine already does.

        * message-list.c (message_list_destroy): Free the uid_nodemap.
        (hide_save_state): Free the filename when we're done.

svn path=/trunk/; revision=9452
2001-04-18 18:06:49 +00:00
aa9071a094 Implemented. (resend_msg): Use is_sent_folder().
2001-04-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (is_sent_folder): Implemented.
	(resend_msg): Use is_sent_folder().

svn path=/trunk/; revision=9449
2001-04-18 17:55:54 +00:00
72b0983f7a more memory leaks
svn path=/trunk/; revision=9431
2001-04-17 20:29:40 +00:00
a8ed26a0d3 Pull up fix from the branch:
Add a `$(EXTRA_GNOME_CFLAGS)' to the importers' Makefile.am as they
	are using GAL.

svn path=/trunk/; revision=9410
2001-04-17 16:54:50 +00:00
c0d763a702 Mark the messages as seen, not unseen. (is_drafts_folder): New function to
2001-04-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mark_all_as_seen): Mark the messages as seen,
	not unseen.
	(is_drafts_folder): New function to attempt to determine if a
	folder is a drafts folder.
	(open_msg): Use is_drafts_folder().
	(edit_msg): And here.
	(edit_msg_internal): New function that doesn't do the drafts
	checking and is only to be used internally. This should save us
	from having to doubly-check a folder to see if it's a drafts
	folder when doing an Open on the message.
	(open_msg): Call edit_msg_internal once we've established that the
	folder is a drafts folder.

svn path=/trunk/; revision=9336
2001-04-16 01:01:47 +00:00
c09d63f05f Mark the messages as seen, not unseen.
2001-04-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mark_all_as_seen): Mark the messages as seen,
	not unseen.

svn path=/trunk/; revision=9330
2001-04-15 20:01:18 +00:00
4e3776a37d Only use non-NULL contexts. (mail_crypto_pgp_mime_part_encrypt): Same.
2001-04-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-crypto.c (mail_crypto_pgp_mime_part_verify): Only use
	non-NULL contexts.
	(mail_crypto_pgp_mime_part_encrypt): Same.
	(mail_crypto_pgp_mime_part_decrypt): And here too.

	* mail-format.c (try_inline_pgp_sig): Make sure to not use the
	context if it is NULL.
	(decode_pgp): Same.

	* folder-browser-factory.c: Added stuff for filtering/vfoldering
	on mailinglists.

svn path=/trunk/; revision=9315
2001-04-14 21:24:07 +00:00
04fac44de1 Do this everywhere, also fixup CLEANFILES
Do this everywhere, also fixup CLEANFILES

2001-04-14  Michael Meeks  <michael@ximian.com>

	* Makefile.am (dist-hook): remove built sources from dist.

svn path=/trunk/; revision=9309
2001-04-14 08:02:59 +00:00
546128c8d9 Remove some redundant LIBS variables... purify complained that the command
* Makefile.am (evolution_mail_LDADD): Remove some redundant LIBS
        variables... purify complained that the command line was too
        long. :-}

        * mail-account-gui.c: Plug leaks.

        * mail-display.c (on_url_requested): close the html stream on
        error too.

        * mail-ops.c (fetch_mail_fetch): Move a line around that probably
        doesn't affect anything, but it's correct.

        * session.c (auth_callback): Plug leak.

        * mail-send-recv.c (receive_status): Initialize "now".

svn path=/trunk/; revision=9303
2001-04-13 21:42:26 +00:00
68f8aa3465 Only activate the message if the cursor has moved.
2001-04-13  Christopher James Lahey  <clahey@ximian.com>

	* message-list.c (on_cursor_activated_cmd): Only activate the
	message if the cursor has moved.

svn path=/trunk/; revision=9298
2001-04-13 12:10:29 +00:00
5083cd6bdc Updated this function to be a correct full ordering.
2001-04-12  Christopher James Lahey  <clahey@ximian.com>

	* message-list.c (e_mail_address_new): Updated this function to be
	a correct full ordering.
	(ml_has_get_node_by_id, ml_get_node_by_id): Implemented these
	functions.
	(find_next_undeleted): Changed this to find next sorted undeleted
	message.  Also, changed it so that if the current message is not
	deleted, it returns NULL.
	(build_tree, build_flat): Changed these to only set the cursor if
	the cursor is changed.

	* subscribe-dialog.c: Changed this to pass NULL, NULL for
	has_get_node_by_id and get_node_by_id.

svn path=/trunk/; revision=9290
2001-04-13 00:45:42 +00:00
a4f57fbbde If the service is NULL, just use the item as the key.
2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* session.c (auth_callback): If the service is NULL, just use the
	item as the key.

svn path=/trunk/; revision=9288
2001-04-12 22:23:56 +00:00
a125cbdcb5 Use the CamelCipherHash enum. (mail_crypto_pgp_mime_part_verify): Use a
2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Use the
	CamelCipherHash enum.
	(mail_crypto_pgp_mime_part_verify): Use a CamelCipherValidity.

	* mail-format.c (try_inline_pgp_sig): Updated to use
	CamelCipherValidity instead of CamelPgpValidity.
	(handle_multipart_signed): Same.

svn path=/trunk/; revision=9284
2001-04-12 21:25:52 +00:00
d7cd78ec3b Don't printf NULL
* folder-browser.c (do_message_selected, on_message_selected):
        Don't printf NULL

svn path=/trunk/; revision=9278
2001-04-12 18:41:31 +00:00
09d998c358 Don't leak memory.
* mail-format.c (mail_part_is_inline): Don't leak memory.

svn path=/trunk/; revision=9273
2001-04-12 17:47:06 +00:00
351be10bd9 removed openpgp-utils
svn path=/trunk/; revision=9270
2001-04-12 17:14:42 +00:00
769f404db3 Updated for changes to PGP code.
2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (pgp_path_changed): Updated for changes to PGP
	code.

	* component-factory.c (owner_set_cb): Don't init openpgp anymore
	because we don't need it.

	* mail-crypto.c: Simply wrap the camel-pgp-mime functions (also
	renamed the functions to be prefixed with mail_crypto).

	* mail-format.c (handle_multipart_signed): Update to use
	camel_pgp_mime_is_rfc2015_signed() and other camel-pgp-mime
	functions.
	(handle_multipart_encrypted): Same but for rfc2015_encrypted.
	(decode_pgp): Updated to use camel-pgp-context
	(try_inline_pgp): Updated to use camel-pgp-context's.
	(try_inline_pgp_sig): Same.

svn path=/trunk/; revision=9269
2001-04-12 17:14:20 +00:00
9763978157 Only look for special pseudo-multipart-isms (binhex, uucode, old pgp, etc)
* mail-format.c (handle_text_plain): Only look for special
	pseudo-multipart-isms (binhex, uucode, old pgp, etc) if the MIME
	type is really text/plain. Otherwise, since there's no handler for
	applciation/mac-binhex40, it gets sent to mail-identify.c, which
	thinks it's text/plain because it starts with English words, and
	so it gets sent back to the text/plain handler, which finds an
	embedded binhex part...

svn path=/trunk/; revision=9260
2001-04-11 23:30:33 +00:00
3ddac6f76a mark messages as seen when opening then in a separate window.
* mail-callbacks.c (do_view_message): mark messages as seen when
	opening then in a separate window.

svn path=/trunk/; revision=9256
2001-04-11 22:46:13 +00:00
ba6f36db9d Don't g_free the recipient array members here because we free them in the
2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* openpgp-utils.c (openpgp_encrypt): Don't g_free the recipient
	array members here because we free them in the caller.

svn path=/trunk/; revision=9252
2001-04-11 22:20:35 +00:00
7c72692382 Huh, somehow I forgot to apply the from filter when verifying signed
2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-crypto.c (pgp_mime_part_verify): Huh, somehow I forgot to
	apply the from filter when verifying signed parts. Oh well,
	probably not all that common. Fixed now though.

svn path=/trunk/; revision=9248
2001-04-11 20:17:57 +00:00
f48134d1d5 Use the homedir as the default filename.
2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (save_msg): Use the homedir as the default
	filename.

svn path=/trunk/; revision=9244
2001-04-11 17:06:49 +00:00
8a38f58231 Change to the user's home dir before opening the filesel.
2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (save_cb): Change to the user's home dir before
	opening the filesel.

	* mail-callbacks.c (save_msg): Same.

svn path=/trunk/; revision=9241
2001-04-11 16:43:21 +00:00
5c2ab36536 Save the expanded state using the ETree built in expanded state code.
2001-04-11  Christopher James Lahey  <clahey@ximian.com>

	* message-list.c (save_tree_state, message_list_setup_etree): Save
	the expanded state using the ETree built in expanded state code.

svn path=/trunk/; revision=9229
2001-04-11 07:47:23 +00:00
130017e157 Merge from evolution-0-10 to evolution-0-10-merge-0 into head.
2001-04-05  Not Zed  <NotZed@Ximian.com>

	* Merge from evolution-0-10 to evolution-0-10-merge-0 into head.

svn path=/trunk/; revision=9193
2001-04-05 02:06:26 +00:00
acde780b64 Add prototype for service_changed(). Remove #include
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* mail-account-gui.c: Add prototype for service_changed().
	* message-list.h: Remove #include <gal/e-table/e-tree-simple.h>
	since it doesn't get installed.

svn path=/trunk/; revision=9183
2001-04-04 20:46:14 +00:00
d38e71bfd7 it seems it did not get into last commit
svn path=/trunk/; revision=9163
2001-04-04 03:41:24 +00:00
7296e1c664 set content type to utf8. fix warning. just call on_link_clicked().
2001-04-04  Gediminas Paulauskas <menesis@delfi.lt>

	* mail-config-druid.c (create_html): set content type to utf8.
	* mail-config.c (mail_config_check_service): fix warning.
	* mail-display.c (link_open_in_browser): just call on_link_clicked().
	(link_menu): Open link works.
	(link_copy_location): claim selection.
	(on_selection_get): new function, selection handler.
	(mail_display_new): connect to selection_get. FIXME: does not work.

2001-04-04  Gediminas Paulauskas <menesis@delfi.lt>

	* importer/importer.c (create_html): copied newer and fixed function
	from mail/mail-config-druid.c.
	(html_new, put_html): removed.
	(show_import_wizard): use create_html instead of html_new/put_html pair.
	* importer/importer.glade: a try to set logo. removed source generation
	options.

svn path=/trunk/; revision=9161
2001-04-04 02:14:11 +00:00
c7179850dc Executive summary and Trash now have nice icons both in tree/folder title and
shortcut bar.

Converted and replaced icons for trash and summary:
exec-16-summary.xpm => evolution-today-mini.png
delete_mesage.xpm => evolution-trash-mini.png,
Copied evolution-trash.png icons from mc (needs tweaking to match other
evolution icons though)

svn path=/trunk/; revision=9154
2001-04-03 23:24:50 +00:00
942539cd7d Add --no-tty argument to gpg.
2001-04-03  Jeffrey Stedfast  <fejj@ximian.com>

	* openpgp-utils.c (openpgp_encrypt): Add --no-tty argument to gpg.

svn path=/trunk/; revision=9141
2001-04-03 21:15:50 +00:00
94018cdd4d Sync the folder on activate.
* folder-browser-factory.c (control_activate): Sync the folder on
	activate.

svn path=/trunk/; revision=9140
2001-04-03 21:07:29 +00:00
2a8c70e1d7 don't check the global variable, check the onje passed in. this really doesn't matter the way the code works, but it's stll incorrect
svn path=/trunk/; revision=9138
2001-04-03 20:35:44 +00:00
1c32ce15c2 Use the same URL-transforming rules we use when hashing the password so
* session.c (mail_session_remember_password): Use the same
	URL-transforming rules we use when hashing the password so this
	actually works.

svn path=/trunk/; revision=9137
2001-04-03 18:47:23 +00:00
4590eb4220 Check for KMail files.
svn path=/trunk/; revision=9103
2001-04-02 21:16:39 +00:00
6e08796922 Add a "provider_type" arg to MailAccountGuiService.
* mail-account-gui.c: Add a "provider_type" arg to
	MailAccountGuiService.
	(transport_needs_auth_toggled): Call service_changed if enabling
	the auth pane so the status of the "Check supported types" button
	will be correct.
	(service_check_supported): Use gsvc->provider_type, not
	CAMEL_PROVIDER_STORE.
	(mail_account_gui_new): Pass the transport as the user_data to the
	"changed" signal on transport.hostname, not the store.
	(mail_account_gui_setup): Set up provider_type fields

svn path=/trunk/; revision=9101
2001-04-02 21:00:42 +00:00
042704ddd3 Blessed by Ettore.
Guided by Jacub Stener's mail, where he explaned which icons were renamed or
added, I added a bunch of new icons to menus, fixed renamed ones. Changed Trash
and Executive summary folder type icons. Fixed art/Makefile.am for these
changes.

Also, pulled icon cache from mailer and moved it to e-util/e-gui-utils.h, made
all components and dialogs use cache and not load pixmaps every time.

Accidentally got a couple of includes fix in, but they won't break anything.

svn path=/trunk/; revision=9092
2001-04-02 03:59:11 +00:00
2960cad1a7 Register for cancellation. (mail_config_check_service): Pop up a modal
* mail-config.c (check_service_check): Register for cancellation.
	(mail_config_check_service): Pop up a modal dialog with a message
	and a "Cancel" button for the duration of the check.

svn path=/trunk/; revision=9058
2001-03-30 22:56:33 +00:00
5d97d3fa51 Fix a crash when the evolution-importer-client tries to pass NULL for the folderpath.
svn path=/trunk/; revision=9055
2001-03-30 22:46:53 +00:00
2067796514 Add support for converting e-mail addresses to links. (is_email_address):
2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * e-html-utils.c (e_text_to_html_full): Add support for converting
        e-mail addresses to links.
        (is_email_address): Added.  Identifies e-mail addresses.
        (email_address_extract): Added.  Extracts a copy of the e-mail
        address from the text.

        * e-html-utils.h (E_TEXT_TO_HTML_CONVERT_ADDRESSES): Added.

        * e-url.c (e_url_shroud): Added.  Copy a url, replacing
        any plaintext passwords with a single *.
        (e_url_equal): Compare two urls, taking into account that
        they may or may not be shrouded.

2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * camel-mime-message.c (camel_mime_message_set_source): Shrould
        our source URL before putting it into X-Evolution-Source.

2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (mail_text_write): Add (commented-out)
        E_TEXT_TO_HTML_CONVERT_ADDRESSES.

        * mail-config.c (mail_config_get_account_by_source_url):
        Call e_url_equal to compare URLs.

svn path=/trunk/; revision=9050
2001-03-30 18:05:48 +00:00
c2f952971b If the EvolutionShellComponent emits a "debug" signal, turn on
* component-factory.c (debug_cb): If the EvolutionShellComponent
	emits a "debug" signal, turn on camel_verbose_debug.

svn path=/trunk/; revision=9047
2001-03-30 16:44:22 +00:00
911f4543a2 reset last_active
2001-03-30  Radek Doulik  <rodo@ximian.com>

	* mail-display.c (mail_display_redisplay): reset last_active

svn path=/trunk/; revision=9045
2001-03-30 16:00:44 +00:00
424506262d Added #include <libgnome/gnome-paper.h>
2001-03-29  Jon Trowbridge  <trow@ximian.com>

        * printing/e-contact-print.c: Added #include <libgnome/gnome-paper.h>

        * printing/e-contact-print-envelope.c: Added #include <time.h>
        and #include <libgnome/gnome-paper.h>

        * gui/component/select-names/e-select-names-completion.c
        (match_email): Better handle matching of "nameless" contacts.

        * backend/ebook/e-destination.c (e_destination_get_string): Better
        handle the case of a "nameless" contact.

2001-03-29  Jon Trowbridge  <trow@ximian.com>

	* camel-filter-driver.c (camel_filter_driver_filter_message): Save
        the source URL using camel_mime_message_set_source.

        * camel-mime-message.c (camel_mime_message_set_source): Renamed
        camel_mime_message_set_identity to this.  Sets the X-Evolution-Source
        header.
        (camel_mime_message_get_source): Returns the X-Evolution-Source
        header.

2001-03-29  Jon Trowbridge  <trow@ximian.com>

        * mail-callbacks.c: Added #include <time.h> to get things
        to compile.

        * mail-callbacks.c (mail_generate_reply): Look at the
        X-Evolution-Source header, and try to find a corresponding
        account.  If this works, send the mail from this account.
        If not, use the default account.

        * mail-ops.c (send_queue_send): Strip out the X-Evolution-Source
        header before sending.

        * mail-config.c (mail_config_get_account_by_source_url): Added.
        Look up accounts by source URL.

svn path=/trunk/; revision=9032
2001-03-29 23:46:55 +00:00
b912dd5436 if called with a multipart that's really a 0-part, spew an error and
* mail-format.c (call_handler_function): if called with a
	multipart that's really a 0-part, spew an error and display as
	source.

svn path=/trunk/; revision=9031
2001-03-29 22:16:23 +00:00