After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 210960 - Non-Qualified Email Addresses no longer work
Non-Qualified Email Addresses no longer work
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
pre-1.5 (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: Jeffrey Stedfast
Evolution QA team
: 208826 209689 214635 218383 220207 229402 229441 231036 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-09-26 12:43 UTC by Bevis King
Modified: 2013-09-10 14:02 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Simple patch that seems to work (1.47 KB, patch)
2002-01-26 15:34 UTC, ian
none Details | Review

Description Bevis King 2001-09-26 12:43:01 UTC
Send an email to a local user name without giving a domain name.

Actual Results:
Dialog box saying the address is invalid.

Expected Results:
Accepting it if it's a valid mail name within the local
email domain of the machine it's being sent on.  Note that
the submission is through Sendmail - were the mailer to
be configured to use SMTP, it MIGHT make sense to enforce
a domain name being added.

For example, you can't just email "root" or "j.doe" etc.

How often does this happen? 
All the time...

Additional Information:
This used to work just fine in earlier releases of Evolution.
At the least there should be a setup option along the lines
of "allow unqualified email addresses".  For a dial-up ISP
user, forcing the domain is a good idea.  For users on a local
network, it's extremely annoying to have to fully qualify email
addresses all the time.

Regards, Bevis.
Comment 1 Jeffrey Stedfast 2001-09-26 15:55:00 UTC
The problem is that we have no idea (it's all abstracted) which method
it will be sent with, therefore it is logical to enforce qualified
email addresses. The only reason it worked before was because we
didn't do any checking. Now, for the sake of the addressbook code, we
need to.

I'm not closing this because we may at some point decide to append
@domainname to non-qualified email addresses, but this can be tricky
since god knows if that's who you really meant to send it to or not.

Since we've been flamed for making Evolution "too smart" in the past,
I hesitate to even consider implementing this.

Marking as Future for now...we can make up our minds later about this
I guess.
Comment 2 Frederic Detienne 2001-10-05 07:12:17 UTC
I think it would be good to have a default domain for each identity (or
SMTP server) that is defined. If the default domain is not specified and
no domain is set in the recipient's e-mail address, Evolution should
complain. If a default domain is specified but no domain is set in the
recipient's address, the default domain should be appended.

The main problem is for users in large organizations: we often send
e-mails to peoples we have never talked to before (=> the username is
not in our addressbook) and when we are in disconnected mode or
working from our lab (behind a firewall), we can not access the LDAP
server.
Comment 3 Nat Friedman 2001-10-12 07:20:00 UTC
Setting this to 1.1.
Comment 4 Not Zed 2001-10-19 18:24:21 UTC
Default domain per account sounds reasonable to me, i've seen it in
other mailers.
Comment 5 trow 2001-10-19 19:37:41 UTC
This is really fairly easy to implement, but would involve breaking
feature freeze, UI freeze, and probably a few other freezes to boot.

I see no problem with doing this for 1.1.
Comment 6 trow 2001-10-28 02:29:41 UTC
*** bug 208826 has been marked as a duplicate of this bug. ***
Comment 7 Heath Harrelson 2001-11-07 06:28:24 UTC
*** bug 214635 has been marked as a duplicate of this bug. ***
Comment 8 Luis Villa 2001-11-26 17:04:51 UTC
Because of the decision to remap 1.1->1.2 and 1.2->1.4, I'm going to be
moving a large number of bugs around in the bugzilla. You can just
search on 'body contains' 'Because of the decision to remap' and mark
all as read. Please direct all questions about this change to
evolution@ximian.com, not the bug.
Luis

Comment 9 Dan Winship 2001-12-06 20:59:20 UTC
*** bug 209689 has been marked as a duplicate of this bug. ***
Comment 10 Jeffrey Stedfast 2002-01-22 19:15:18 UTC
this is kinda a feature because it requires adding new functionality.
Comment 11 Jeffrey Stedfast 2002-01-22 19:53:58 UTC
anyone know why this is marked as 40 hours? that seems excessive for
this but maybe the person who marked this for 40h knows something I
don't.
Comment 12 Jeffrey Stedfast 2002-01-25 22:41:06 UTC
fixed in CVS
Comment 13 trow 2002-01-25 23:54:56 UTC
Uh, it has been a while since I worked on this stuff, so the details
are a bit fuzzy in my mind --- but this fix will break some of the
autocompletion magic, and I'd encourage you to revert it.

When you move out of the address entry window, it scans for invalid
entries and tries to resolve them to nicknames.  So nickname stuff is
probably now broken.

This is also the mechanism by which we "re-complete" names.  So if I
auto-complete an address to (underlined) "Jeff Stedfast", and if I
then delete the last character, I'm left with an un-underlined "Jeff
Stedfas".  If I then leave that entry, it re-completes it back to
(underlined) "Jeff Stedfast", and the e-mail will go to the right
place.  If e_destination_is_valid is made too lax, this will not work.

(This is a bad example, since "Jeff Stedfas" probably would get
flagged as invalid due to the whitespace... but you get the idea.)

I don't remember if the 40 hour estimate was mine, but multiple things
like this are based on the premise that an EDestination is valid iff
it contains an ECard or is obviously an e-mail address, and then we
try to do automagical stuff with the invalid addresses.  Allowing
local delivery breaks this simpifying assumption, so part of that
estimate no doubt involved working around these issues.
Comment 14 Jeffrey Stedfast 2002-01-26 02:06:13 UTC
ah, suckage.
Comment 15 ian 2002-01-26 12:18:09 UTC
*** bug 218383 has been marked as a duplicate of this bug. ***
Comment 16 ian 2002-01-26 14:03:14 UTC
I ran into this problem in the context of sending to a local sendmail
alias.  My patch was simply to not do the *check* for invalid
recipients in composer_get_message().  That way, all the completion
tricks still do whatever they do now, but whatever's in the address
fields when I hit "send", Evolution will believe, and not try to
outguess the transport.

[The patch I submitted only skipped the check if you're using
sendmail, because I was dealing with sendmail aliases, but arguably it
should always be skipped, because delivering to local users for SMTP
should also work.]
Comment 17 trow 2002-01-26 14:17:51 UTC
Hmmm... the idea of not doing the validity check doesn't exactly
thrill me.  At the very least, we should warn the users if they are
trying to send e-mail to something totally absurd.

Jeff and I were discussing this on IRC last night, and the current
plan is to allow users to specify a default fallback domain which
would get attached to things that look like local delivery addresses.
 So for example I could set my fallback domain to ximian.com, and then
if I just typed 'fejj' and didn't have Jeff in my addressbook, that
recipient would get converted to 'fejj@ximian.com' when I focused out
of the recipient entry.

Ian: What kind of stuff are you doing with sendmail aliases?  Fancier
stuff that wouldn't be covered by this approach?
Comment 18 ian 2002-01-26 15:33:45 UTC
But if they *do* do something absurd, the transport will give them an
error message.  You really want Evolution to be responsible for
knowing what's absurd?

I reverted Jeff's patch, and applied this one.  I tried it with both
sendmail and smtp transports and it seems to do the right thing
whether I give it a full address, a local address, or garbage.
Comment 19 ian 2002-01-26 15:34:47 UTC
Created attachment 40970 [details] [review]
Simple patch that seems to work
Comment 20 ian 2002-01-26 15:53:51 UTC
> Ian: What kind of stuff are you doing with sendmail aliases? Fancier
> stuff that wouldn't be covered by this approach?

Well, I'm actually using premail in the place of sendmail, but I don't
think that matters for these purposes.

I use multiple mailers, not just Evolution, since sometimes I need
access via a remote login.  So my addressbook is stored in premail
(equivalently, sendmail).  That way, I can use addressbook nicknames
(think sendmail aliases) from whatever mailer I use.

It just doesn't seem right to me to automatically append a domain.  As
far as I know, <foo> and <foo@localhost> and <foo@my.real.fqdn> are
*not* always equivalent addresses.  If I want to address the recipient
that my MTA knows as "foo", I should be able to send to that.

As another example, my main SMTP mail machine hosts many email
domains.  To it, it is almost always the case that <foo> and
<foo@cypherpunks.ca> resolve differently.
Comment 21 Jeffrey Stedfast 2002-01-26 21:39:40 UTC
Sounds reasonable to me I guess. I agree that it would be better for
Evolution to not try to out-guess the user with appending domains and
to just leave it up to the transport (whether it be sendmail or an
SMTP server). If the mailbox fails, then the server will error out and
we just pop up an error dialog like we already do.

trow: I'll hold off on this until you get to Boston and then maybe we
can talk it over with ettore and see what he thinks.
Comment 22 trow 2002-01-26 22:39:44 UTC
I'm fairly convinced by Ian's argument, however:

(1) I think it still would be nice to give the user the option to
specify a "fallback" domain.  

(2) I don't agree that we should drop _all_ of our attempts to
validate the recipients and leave it all to the SMTP server, if for no
other reason than that SMTP error messages can be pretty cryptic at
times, and Evolution is probably in a position to give the user some
more constructive feedback.  Surely there must be _some_ stuff that we
can recognize as obviously broken and warn the user about.
Comment 23 ian 2002-01-27 00:19:11 UTC
(1) Sure, options are (almost) always good.

(2) I agree that the SMTP error messages could *definitely* be
improved.  As to "obviously broken", I guess there are some characters
it makes no sense to have in a local part (like space or comma),
and RFC822 defines a handful of other chars that can't be in the local
part of an *Internet* routable address, but that doesn't say anything
about what sendmail (or whatever MTA you're using that's masquerading
as sendmail) might accept or reject.  It's better to not reject things
that could be valid, I'd say.

Do you have some "obviously broken" strings in mind?
Comment 24 Jeffrey Stedfast 2002-01-27 01:13:50 UTC
yea, I agree. Plus writing a validator will almost certainly just
cause more problems than it's worth. I've seen mailboxes containing
8bit chars and that's just NOT supposed to be legal. But if we wrote a
validator, then we wouldn't let it through and we'd be back here at
square 1.

commas aren't a problem, I think the addressbook entry widget handles
commas as address separators so that's ok..

spaces... well, no idea about that. iirc: "my name"@host.com could be
considered a valid address?

anyways, imho - we just pass the crap along to sendmail/smtp as if it
were an address and let the transport complain about it being invalid.
Comment 25 Jeffrey Stedfast 2002-01-29 01:15:58 UTC
this is fixed now
Comment 26 Not Zed 2002-03-28 00:43:31 UTC
The arguments here a bit a bit fuzzy.  SMTP *does* have defined 'valid
addresses', its nothing to do with other address formats/etc.

Either the address is local, or remote, or its just not a valid
address, end of story.
Comment 27 Gerardo Marin 2002-04-15 04:26:39 UTC
*** bug 220207 has been marked as a duplicate of this bug. ***
Comment 28 aaron 2002-05-24 18:26:36 UTC
Is it too late/too much to get this fix into the 1.0.x branch? If so,
close the bug again. (Sales/potential big customer wants this).
Comment 29 Jeffrey Stedfast 2002-05-27 23:37:25 UTC
not worth spending the time to backport this
Comment 30 Gerardo Marin 2002-08-26 17:21:53 UTC
*** bug 229402 has been marked as a duplicate of this bug. ***
Comment 31 Gerardo Marin 2002-08-26 18:07:50 UTC
*** bug 229441 has been marked as a duplicate of this bug. ***
Comment 32 Gerardo Marin 2002-09-24 18:17:15 UTC
*** bug 231036 has been marked as a duplicate of this bug. ***