aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-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 *