aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-url.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-url.c')
-rw-r--r--e-util/e-url.c86
1 files changed, 0 insertions, 86 deletions
diff --git a/e-util/e-url.c b/e-util/e-url.c
deleted file mode 100644
index 8b54a81d16..0000000000
--- a/e-util/e-url.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-
-/*
- * e-url.c
- *
- * Copyright (C) 2001 Ximian, Inc.
- *
- * Developed by Jon Trowbridge <trow@ximian.com>
- */
-
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * 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.
- */
-
-#include <config.h>
-#include <string.h>
-#include "e-url.h"
-
-char *
-e_url_shroud (const char *url)
-{
- const char *first_colon = NULL;
- const char *last_at = NULL;
- const char *p;
- char *shrouded;
-
- if (url == NULL)
- return NULL;
-
- /* Skip past the moniker */
- for (p = url; *p && *p != ':'; ++p);
- if (*p)
- ++p;
-
- while (*p) {
- if (first_colon == NULL && *p == ':')
- first_colon = p;
- if (*p == '@')
- last_at = p;
- ++p;
- }
-
- if (first_colon && last_at && first_colon < last_at) {
- shrouded = g_strdup_printf ("%.*s%s", first_colon - url, url, last_at);
- } else {
- shrouded = g_strdup (url);
- }
-
- return shrouded;
-}
-
-gboolean
-e_url_equal (const char *url1, const char *url2)
-{
- char *shroud1 = e_url_shroud (url1);
- char *shroud2 = e_url_shroud (url2);
- gint len1, len2;
- gboolean rv;
-
- if (shroud1 == NULL || shroud2 == NULL) {
- rv = (shroud1 == shroud2);
- } else {
- len1 = strlen (shroud1);
- len2 = strlen (shroud2);
-
- rv = !strncmp (shroud1, shroud2, MIN (len1, len2));
- }
-
- g_free (shroud1);
- g_free (shroud2);
-
- return rv;
-}
ommitgraph'>* for message menuJakub Steiner2001-02-023-0/+281 * apply filtersJakub Steiner2001-02-021-0/+45 * settings/mail filtersJakub Steiner2001-02-021-0/+71 * for the view menuJakub Steiner2001-02-022-0/+62 * i hope it's not confusing. should stand for 'hide selected images'Jakub Steiner2001-02-011-0/+33 * show all messagesJakub Steiner2001-02-011-0/+27 * new appointmentJakub Steiner2001-02-011-0/+0 * If we are folding, drop the space at the end of the line.Not Zed2001-02-012-0/+8 * make the segfault caused by double clicking into a critical warning untilLarry Ewing2001-02-011-0/+1 * added gboolean draw_borders to make it compile, probably some forgottenRadek Doulik2001-02-011-0/+2 * Terminology fixesSzabolcs Ban2001-02-012-44/+47 * new contact mbar iconJakub Steiner2001-01-311-0/+137 * the old stuff was kinkyJakub Steiner2001-01-3110-0/+0 * Fixed allocation and placement of text for no bordered text.Christopher James Lahey2001-01-311-16/+33 * Fixed allocation and placement of text window.Christopher James Lahey2001-01-312-25/+34 * Turn on joining of cancelled threads. (e_msgport_wait): Put a cleanupNot Zed2001-01-312-1/+18 * Updated Spanish translationHector Garcia2001-01-312-1083/+1199 * Fix bug in autodetected mboxesIain Holmes2001-01-313-44/+65 * Inform people when they can't import a file.Iain Holmes2001-01-312-9/+22 * Fix mishandling of --without-samba due to a typo.Pavel Roskin2001-01-311-1/+1 * Fix typo.Kjartan Maraas2001-01-302-1/+5 * Reverted the latest change to EText since we're in feature freeze.Christopher James Lahey2001-01-306-333/+63 * Mark a string for translation. Mark a bunch of strings for translation.Kjartan Maraas2001-01-303-20/+26 * Made the contained %ETableItem have cursor_mode asChristopher James Lahey2001-01-304-34/+45 * Made carriage return finish editing.Christopher James Lahey2001-01-302-31/+56 * make sure we convert from utf-8 before creating the option menu items.Larry Ewing2001-01-302-2/+11 * Add a #include <sys/time.h> to work around libgnomeprint.h's lack ofEttore Perazzoli2001-01-302-0/+5 * #ifdef INCLUDE_FILE_SOURCE. (table_add_elem): add help_text parameter andChris Toshok2001-01-302-15/+87 * Cast the camel_stream_mem_new() to a CamelStreamMem.Jeffrey Stedfast2001-01-303-2/+7 * reviewed by: JP Rosevear <jpr@ximian.com>Eskil Heyn Olsen2001-01-303-1/+12 * It's a ChangeLogIain Holmes2001-01-301-0/+7 * Remove the FIXME in the glade dialog, and put a nasty hack to change theIain Holmes2001-01-302-3/+26 * Use hlook and vlook so by default we get no text in vertical mode, andMichael Meeks2001-01-303-7/+7 * Fixed some typos.Kjartan Maraas2001-01-302-2/+6 * Updated Norwegian translation.Kjartan Maraas2001-01-303-1277/+1413 * Remvoe the stream locking here. I think this was leading to a deadlockNot Zed2001-01-302-4/+6 * looks more like a pile of cards..Jakub Steiner2001-01-301-75/+134 * <gnome.h> trimming to reduce compilation time. Likewise. Likewise.Federico Mena Quintero2001-01-3022-24/+38 * Return efence ifdefs to 0 for solaris buildJP Rosevear2001-01-302-2/+6 * Connect to the model's "position" signal. (e_text_init): Set default valueJon Trowbridge2001-01-306-63/+333 * Added Slovak messagesStano Visnovsky2001-01-305-0/+10 * configure.in: Added sk to ALL_LINGUASStano Visnovsky2001-01-303-1/+8 * Added initial Slovak translationStano Visnovsky2001-01-302-0/+7253 * Fixed [hu] entries in some .desktop filesSzabolcs Ban2001-01-291-1/+1 * Added e-cell-number.loChristopher James Lahey2001-01-293-1/+101 * (build_tree): Oops, turn on BROKEN_ETREE again.Michael Zucci2001-01-292-3/+6 * Updated russian translation.Valek Frob2001-01-292-560/+362 * Debug function to compare the tree we think we have, after an incrementalNot Zed2001-01-297-25/+201 * Always include +1 for the size. 0*2 == 0, so malloc returns NULL, which isNot Zed2001-01-291-1/+1 * Include the terminating NUL in the calculated string length. This hitNot Zed2001-01-292-1/+7 * If we have waiting threads, then dont start a new one for the NEW case.Not Zed2001-01-292-8/+98 * Turns out that I was wrong about the g_get_real_name mem leak, god damnJeffrey Stedfast2001-01-292-3/+7 * Use UTF-8. (set_defaults): Use UTF-8 and also fixed a memory leak byJeffrey Stedfast2001-01-293-20/+41 * <gnome.h> trimming to reduce compilation time. Ditto. Ditto. Ditto. Ditto.Federico Mena Quintero2001-01-299-9/+32 * Update copyrights.Ettore Perazzoli2001-01-282-2/+2 * Make the advanced search dialog use stock buttons. Make the OK buttonEttore Perazzoli2001-01-283-1/+17 * Update copyright and add myself as the author.Ettore Perazzoli2001-01-281-2/+6 * Make the ESearchBar pretty by using the same border for the dropdownEttore Perazzoli2001-01-282-3/+31 * Made the scrolling to show the current roll happen in a time out.Christopher James Lahey2001-01-282-2/+52 * Don't #define __GNOME_I18N_H__ if it's already defined.Chyla Zbigniew2001-01-283-110/+259 * Change the appearance of the scroll frame in the folder creationEttore Perazzoli2001-01-282-1/+7 * Update copyrights for files modified in year 2001.Ettore Perazzoli2001-01-2818-20/+18 * Make the vfolder and "advanced search" dialogs a bit larger for betterEttore Perazzoli2001-01-283-0/+10 * Documented.Ettore Perazzoli2001-01-281-4/+14 * Changed the EDropdownButton so that it works more like a standard menuEttore Perazzoli2001-01-283-16/+60 * Woooho. Fixed resize of popped-up folder bars.Ettore Perazzoli2001-01-282-2/+17 * Changed to use mail_save_part to save the data in another thread.Not Zed2001-01-284-57/+135 * Updated Spanish translationHector Garcia2001-01-282-475/+446 * Don't handle home and end keys since %ETable deals with them now.Christopher James Lahey2001-01-282-10/+5 * Make home and end keys move to the beginning and end of the row if cursorChristopher James Lahey2001-01-284-0/+62 * Protect against NULL address pointers. (subject_compare): Same but forJeffrey Stedfast2001-01-282-0/+12 * Someone forgot to update this when removing a file it uses. This wasJulian Missig2001-01-282-1/+5 * shell compile fixes (some #includes pointing to old headers) to goJacob Leach2001-01-284-4/+10 * Change (nonexistant) importer.sgml references to evolution-importer.sgmlJohn R. Sheets2001-01-284-24/+34 * Don't link with the old widgets/shortcut-bar/libshortcut-bar.la anymore,Jason Leach2001-01-272-1/+6 * remove widgets/shortcut-bar/Makefile from here.Jason Leach2001-01-272-1/+5 * cvs remove all files in shortcut-bar/, this widget is now in gal, will beJason Leach2001-01-2719-7532/+7 * warnings go byebyeIain Holmes2001-01-272-3/+11 * Make the ESearchBar use the new EDropdownButton widget.Ettore Perazzoli2001-01-273-146/+217 * Fix the API to EDropdownButton by removing args that don't make muchEttore Perazzoli2001-01-274-21/+13 * ...And the ChangeLog too.Ettore Perazzoli2001-01-271-0/+4 * Ooops, forgot to commit the Makefile.Ettore Perazzoli2001-01-271-9/+27 * New, simple dropdown button widget based on the thing that Damon didEttore Perazzoli2001-01-273-0/+390 * Menu cleanupsJP Rosevear2001-01-273-315/+84 * Make ETable stop editing when it looses focus.Christopher James Lahey2001-01-272-8/+32 * Fix the folder tree so that the icons don't look blurry anymore. (ForEttore Perazzoli2001-01-272-13/+26 * Replace the arrow icons in the ESelectNames component with "->" for aEttore Perazzoli2001-01-272-7/+13 * Fixed a crash that could happen when destroying a control without anyEttore Perazzoli2001-01-272-2/+9 * Try a control before an embeddable instead of an embeddable before aEttore Perazzoli2001-01-272-15/+25 * Check for a NULL service->url as we obviously can't subscribe to foldersJeffrey Stedfast2001-01-273-21/+46 * Fix some compile problems and stop the blank mail appearing with the mboxIain Holmes2001-01-274-8/+53 * Added; a new test program that demonstrates objects in ETexts.Jon Trowbridge2001-01-276-111/+776 * Remove all instances of non-portable macro `__FUNCTION__' from theEttore Perazzoli2001-01-276-19/+22 * Updated brazilian portuguese translationGustavo Maciel Dias Vieira2001-01-27