aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-25 04:14:36 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-25 04:14:36 +0800
commit5302fdbacd6135d3be8cdd2c48f30d468163817d (patch)
tree421ec54bd1ea5f3a62b7a2c7ddfd4ccba88b9ada /mail/mail-account-gui.c
parent57af36acc798853c67727da285f8a85d5f776675 (diff)
downloadgsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.tar.gz
gsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.tar.zst
gsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.zip
Don't bother trying to see if the domain looks like a FQDN.
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. svn path=/trunk/; revision=15457
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c11
1 files changed, 4 insertions, 7 deletions
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 *