Bug 472168 - configure KMail to send email and select folders for Sent, Templates, and Drafts
Summary: configure KMail to send email and select folders for Sent, Templates, and Drafts
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: config dialog (show other bugs)
Version: 5.23.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 00:12 UTC by raob
Modified: 2023-07-12 18:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of pop-up error message from KMail (188.78 KB, image/png)
2023-07-12 10:50 UTC, raob
Details
Screenshot_20230711_InvalidEmailAddress.png (188.78 KB, image/png)
2023-07-12 10:50 UTC, raob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description raob 2023-07-12 00:12:05 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.   Create an email address that does NOT end in .com, .org, or .net.  In my particular instance, the domain is @tutor.science.  KMail can send using the email address given the server settings at mail.tutor.science for IMAP and SMTP.
2.   Go to Setttings/Configure KMail.  Then go to Accounts/Identities, then select  the active identity for the user.  
3.   Click Modify.
4.   Click Advanced on the new pop-up window.  Change Sent-mail folder to a server location folder, like someuser@tutor.science/Sent for Sent mail
5.  Then, click OK to save the changes.
6.  KMail will complain that "the email address you entered is not valid.  It does not seem to contain an actual email address, i.e., something of the form joe@example.org."

So, KMail is not programmed to accept email addresses with a top-level domain of .science?  

If I didn't say so already, I can set up KMail to send out email from my server at mail.tutor.science, so setting up configurations elsewhere in the application is not broken, but in this section of the settings to set up where Sent mail should be stored---on the server---is not allowed for the reasons KMail gives above.  

The programming seems not robust, but rather progammed case-by-case, checking .com, .org, .net, etc., but not allowing or checking any other top-level domain and throwing the user an error instead.  

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Laurent Montel 2023-07-12 04:59:51 UTC
Could you add screenshot about it ?
I can't add folder as " someuser@tutor.science/Sent " as we can't write in line => I can reproduce bug.
Comment 2 raob 2023-07-12 10:50:08 UTC
Created attachment 160251 [details]
screenshot of pop-up error message from KMail
Comment 3 raob 2023-07-12 10:50:40 UTC
Created attachment 160252 [details]
Screenshot_20230711_InvalidEmailAddress.png

Yes, I made a screenshot so I would know what message to type in the bug 
report.  It will be the same as what I wrote.  I hope you find it 
helpful.



On 2023-07-12 04:59, Laurent Montel wrote:
> https://bugs.kde.org/show_bug.cgi?id=472168
> 
> Laurent Montel <montel@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |montel@kde.org
> 
> --- Comment #1 from Laurent Montel <montel@kde.org> ---
> Could you add screenshot about it ?
> I can't add folder as " someuser@tutor.science/Sent " as we can't write 
> in line
> => I can reproduce bug.
Comment 4 Laurent Montel 2023-07-12 18:22:17 UTC
Git commit 67bafb0b4bd77d34403dfcb100074f6c0ac4b154 by Laurent Montel.
Committed on 12/07/2023 at 18:21.
Pushed by mlaurent into branch 'master'.

Add info when email is empty.

M  +4    -0    src/identity/identitydialog.cpp

https://invent.kde.org/pim/kmail/-/commit/67bafb0b4bd77d34403dfcb100074f6c0ac4b154