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 532472 - SMTP authentication bugs
SMTP authentication bugs
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.24.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[smtp] evolution[passwords]
Depends on:
Blocks:
 
 
Reported: 2008-05-10 12:21 UTC by Matthew Barnes
Modified: 2013-09-13 00:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for camel-smtp-transport.c (4.48 KB, patch)
2008-05-10 12:22 UTC, Matthew Barnes
committed Details | Review
Patch for mail-config.c (1.93 KB, patch)
2008-05-10 12:25 UTC, Matthew Barnes
committed Details | Review

Description Matthew Barnes 2008-05-10 12:21:20 UTC
While investigating bug #354923, I discovered a couple other SMTP authentication bugs.  One in Camel, one in Evolution.


  1) If we have an invalid password cached (user entered the wrong password
     or the server password changed), Camel's SMTP provider will keep trying
     to authenticate with the same password indefinitely, or until the SMTP
     server gets fed up and hangs up on us (leading to Send/Receive hangs).

     If our authentication attempt is rejected with a 535 response, we should
     make sure the user gets prompted for a new password before trying again.


  2) In Evolution, mail_config_get_account_by_transport_url() gets a stripped
     down transport URI (no parameters or authentication mechanisms).  Its job
     is to find a matching EAccount for that URI, but EAccount URIs do store
     things like parameters and authentication mechanisms.  So we need to
     strip down the EAccount URI before comparing it with the transport URI.
     Otherwise we may unnecessarily prompt the user for an SMTP password.
Comment 1 Matthew Barnes 2008-05-10 12:22:15 UTC
Created attachment 110678 [details] [review]
Patch for camel-smtp-transport.c

Addresses issue #1 above.
Comment 2 Matthew Barnes 2008-05-10 12:25:16 UTC
Created attachment 110679 [details] [review]
Patch for mail-config.c

Addresses issue #2 above.
Comment 3 Srinivasa Ragavan 2008-05-14 05:19:03 UTC
Sankar, can you review this?
Comment 4 Matthew Barnes 2008-05-27 16:19:59 UTC
ping
Comment 5 Srinivasa Ragavan 2008-06-18 15:17:27 UTC
Sankar: You need to find time during your busy disk summary schedule :)



I wasn't very much aware of mail-config.c changes, but other things are fine. I didnt test it. Just test and commit it.
Comment 6 Matthew Barnes 2008-06-18 16:45:07 UTC
Committed patches to trunk:

  evolution  (revision 35649)
  evolution-data-server  (revision 9004)

Only committing to trunk for now because, despite my testing, I'm still a bit paranoid about breaking something.