aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-account-gui.c11
2 files changed, 7 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9af22c8c31..4103bc5291 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2002-01-24 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-account-gui.c (is_email): Don't bother trying to see if the
+ domain looks like a FQDN.
+
* mail-callbacks.c (select_all): If the mail-display is in focus,
then select-all in the mail display rather than the
message-list. Fixes bug #19126.
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index 3009b7666c..f731e174c9 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -50,19 +50,16 @@ static void service_changed (GtkEntry *entry, gpointer user_data);
static gboolean
is_email (const char *address)
{
- const char *at, *hname;
+ /* This is supposed to check if the address's domain could be
+ an FQDN but alas, it's not worth the pain and suffering. */
+ const char *at;
at = strchr (address, '@');
/* make sure we have an '@' and that it's not the first or last char */
if (!at || at == address || *(at + 1) == '\0')
return FALSE;
- hname = at + 1;
- /* make sure the first and last chars aren't '.' */
- if (*hname == '.' || hname[strlen (hname) - 1] == '.')
- return FALSE;
-
- return strchr (hname, '.') != NULL;
+ return TRUE;
}
static GtkWidget *
bgnomeui programming reference to the libgnomeui-reference port.jylefort2006-05-102-98/+11 * Use the new GTK2_VERSION macro.marcus2006-05-062-5/+4 * Presenting GNOME 2.14.1 for FreeBSD! Checkoutmarcus2006-04-3013-248/+50 * Conversion to a single libtool environment.ade2006-02-232-1/+7 * - Update to 2.12.1ahze2006-02-073-5/+7 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-4/+4 * - Add SHA256 checksumspav2005-11-241-0/+1 * Presenting GNOME 2.12 for FreeBSD. The release is chock full of bug fixesmarcus2005-11-054-33/+15 * Fix yet another thread-safety bug:jylefort2005-08-012-0/+31 * Update to 2.10.1.mezz2005-07-063-5/+4 * Fix a number of thread-safty issues in libgnomeui.marcus2005-03-2110-0/+234 * Presenting GNOME 2.10 for FreeBSD!marcus2005-03-126-51/+96 * Update to 2.8.1.marcus2005-02-223-93/+9 * Presenting GNOME 2.8 for FreeBSD (2.8.1 to be exact).marcus2004-11-084-60/+123 * Apply a big libtool patch to allow porters to use the libtool installed bymarcus2004-07-101-1/+1 * Update to 2.6.1.1bland2004-05-024-14/+4 * Update to 2.6.1.marcus2004-05-014-4/+19 * Presenting GNOME 2.6.0. The FreeBSD GNOME Team feels this our best releasemarcus2004-04-058-117/+92