Bug 133912 - smtp account not working after rename
Summary: smtp account not working after rename
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.9.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 146708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-11 15:53 UTC by Edwin Boersma
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
my kmailrc (14.33 KB, text/plain)
2007-03-16 11:47 UTC, Jan Simbera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Boersma 2006-09-11 15:53:50 UTC
Version:           1.9.4 (using KDE 3.5.4 Level "a" , unofficial build of SUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.16.13-4-default

If I rename my SMTP account from the standard 'Unnamed' to whatever, sending mail does not work anymore.

Kmail does not report any failure, no pop up or whatsoever, the mail just stays in the outbox. Renaming it back to 'Unnamed' does not solve the problem, only deleting and creating a new smtp account solves it.
Comment 1 Allen Winter 2006-10-30 01:25:22 UTC
Edwin,

You've either figured it out by now or you are too frustrated to use email. :)

Sorry for the long delay responding.

Do you have your sending account marked as Default?
Not your fault if it isn't.. we think the account wizard is buggy.
Comment 2 Edwin Boersma 2006-10-30 08:22:24 UTC
No, i haven't figured it out, and am still using Kmail, but with the smtp accounts all called 'Unnamed', with an identifying number, as they are created by Kmail.

The sending account is marked default.

Would like to see it solved. Now have 4 accounts and it's hard to choose the right one, when not in my default location.
Comment 3 Edwin Boersma 2006-10-30 08:40:18 UTC
Figured out that it comes back into a working state, after renaming it back and forth a few times. Sometimes after a rename, the Default setting is gone. This happens after clicking OK in the Configure - Kontakt window! Before that, it says that it's default. Setting it as default again makes it working again.

But it is buggy. I can't really figure out where it goes wrong.

Where does KMail store these settings?
Comment 4 Edwin Boersma 2006-10-30 09:36:20 UTC
Okay, here is the cause of the problem:

in kmailrc, the value of "default-transport" is not changed when I rename the default transport (that explains the behavour in Comment #3, losing the default setting). So, it doesn't know which transport to use.

Seems to me as a simple thing to fix... 
Comment 5 Jan Simbera 2007-03-16 11:47:54 UTC
Created attachment 19993 [details]
my kmailrc
Comment 6 Thomas McGuire 2007-06-13 21:28:30 UTC
*** Bug 146708 has been marked as a duplicate of this bug. ***
Comment 7 Thomas McGuire 2007-06-13 21:38:05 UTC
This is fixed in trunk (KDE4), which uses a new mailtransport library.
After renaming a default SMTP account, it is now still the default.
Comment 8 malivana 2007-07-16 11:39:39 UTC
In KMail version 1.9.7, the stated bug continues.  I am unable to send email using SMTP, even though kmailrc is consistent with the settings I chose.
Comment 9 Thomas McGuire 2007-07-17 13:07:06 UTC
>In KMail version 1.9.7, the stated bug continues.  I am unable to send email sing SMTP, even though kmailrc is consistent with the settings I chose.
Is this the same issue as discussed here (e.g. no default SMTP account set)? Or a different issue, like some invalid mail stuck in the outbox? Try to temporarily remove your kmailrc, recreate your accounts and see if that helps.
Comment 10 malivana 2007-07-18 10:26:59 UTC
As suggested by you, I deleted kmailrc and setup my sending and receiving accounts via the wizard that pops up for the first time.  Sending via SMTP then worked.  "Sending" showed two identically named entries, both having type "SMTP (Default)".  I deleted one and SMTP continued to work; the dialog box now shows only one entry but kmailrc shows identical [Transport 1] and [Transport 2].

I then tested as follows: I deleted kmailrc once more and canceled the wizard, and configured KMail using "Configure KMail".  This time sending via SMTP failed.

After getting SMTP to work by configuring using the wizard, within KMail when I edited the name given to the SMTP-related entry using "Configure KMail", sending failed.  Examination of kmailrc showed "current-transport" [Composer] and "default-transport" [Composer] contained the default name that was assigned to it by the wizard, whereas under [Transport 1] "name" was updated; exiting KMail and editing kmailrc and changing "current-transport" and "default-transport" to be consistent with "name" couldn't get SMTP working.

To change the name, what worked was follows: after setting up a working SMTP using the wizard, the name change was accomplished by exiting KMail and editing kmailrc and changing "name", "current-transport" and "default-transport" to the desired new name.
Comment 11 Thomas McGuire 2007-07-18 21:22:44 UTC
>As suggested by you, I deleted kmailrc and setup my sending and receiving accounts via the wizard that pops up for the first time.  Sending via SMTP then worked.  "Sending" showed two identically named entries, both having type "SMTP (Default)".
Hmm, the wizard should not create two transport. I'll maybe have a look at that later.

>After getting SMTP to work by configuring using the wizard, within KMail when I edited the name given to the SMTP-related entry using "Configure KMail", sending failed. 
Yep, that is the original bug here, which is fixed in KDE4. You probably missed something when manually editing the kmailrc. Using the "Set as default" button on the renamed transport should fix it though.

I also think KDE4 fixes the case that a transport does not get removed from the config file if you remove it from the GUI.