diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-01-25 04:14:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-01-25 04:14:36 +0800 |
commit | 5302fdbacd6135d3be8cdd2c48f30d468163817d (patch) | |
tree | 421ec54bd1ea5f3a62b7a2c7ddfd4ccba88b9ada | |
parent | 57af36acc798853c67727da285f8a85d5f776675 (diff) | |
download | gsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.tar gsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.tar.gz gsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.tar.bz2 gsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.tar.lz gsoc2013-evolution-5302fdbacd6135d3be8cdd2c48f30d468163817d.tar.xz 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
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/mail-account-gui.c | 11 |
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 * |