Bug 247105 - Sending messages to groups with special chars in the name fails
Summary: Sending messages to groups with special chars in the name fails
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: Git (master)
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2010-08-09 03:11 UTC by Sascha Manns
Modified: 2012-07-08 12:25 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Manns 2010-08-09 03:11:03 UTC
Version:           SVN trunk (KDE 4) (using KDE 4.4.4) 
OS:                Linux

I've created a group in Kadressbook with 4 recipients. If i'm going now to KMail, i can choose that group. If i go to send the remote Server says me:
The original message was received at Mon, 9 Aug 2010 03:01:28 +0200
from balancer4.mediabeam.com [194.25.41.40]

   ----- The following addresses had permanent fatal errors -----
<Editors@linux-uhd2>
    (reason: 550 Host unknown)

   ----- Transcript of session follows -----
550 5.1.2 <Editors@linux-uhd2>... Host unknown (Name server: linux-uhd2: host not found)

So i think that the export to an outboundmail with using KAdressbook atm fails.

Reproducible: Always

Steps to Reproduce:
Create a group, select this group in KMail and go to "send"

Actual Results:  
Errormessage from the Remote Mailserver.

Expected Results:  
No Errormessage ;-)

Don't know what is expected now...
Comment 1 Karsten.Fleischer 2010-08-13 17:40:23 UTC
Same problem here with kmail 1.13.5 on Opensuse 11.3, kde 4.4.4
I can create groups even from with kmail (Although they are still
called distribution lists there). However sending to any existing 
or newly created group results in kmail attempting to send to
Groupname@Default.domain instead of resolving the individual group
addresses
Comment 2 Sascha Manns 2010-08-25 23:41:55 UTC
Anything news in this topic?
Comment 3 karaluh 2010-08-31 17:36:18 UTC
Still not fixed in 4.5
Comment 4 Phil Davison 2010-10-06 09:23:44 UTC
Mandriva 2010 Spring is using KMail 1.13.3 KDE 4.4.3) and I have had the same problem. "Create Group" is greyed out and the content of the distribution list appears to be either encrypted in some way or just replaced with gibberish. The group is then treated as a single contact and because the contents can't be identified as valid e-mail addresses, KMail tries to send the mail to the group name @localhost (in my case).
Comment 5 Karsten.Fleischer 2010-10-06 11:01:19 UTC
Since updating to KDE 4.5.1 on Opensuse 11.3 but still using kmail 1.13.5 the
issue is solved for me and groups are working as expected. Maybe this is not
a kmail issue directly but had something to do with the addressbook backend?
Comment 6 Sascha Manns 2010-11-17 19:16:13 UTC
ATM i'm using KDE 4.5.3 and KMail 1.13.5.
I have a local group "Editors" and KMail sends it out as Editors@$myhost.

The original message was received at Wed, 17 Nov 2010 18:59:03 +0100
from balancer04.mediabeam.com [10.100.1.40]

   ----- The following addresses had permanent fatal errors -----
<Editors@linux-uhd2>
    (reason: 550 Host unknown)

   ----- Transcript of session follows -----
550 5.1.2 <Editors@linux-uhd2>... Host unknown (Name server: linux-uhd2: host not found)

But i think KMail should solve the groups and insert this List into "TO".
Comment 7 Phil Davison 2010-11-18 00:49:48 UTC
Can we please also state which version of Linux we are all using?  The reply from Sascha Manns might not actually be much use because it is saying, "There can't still be a problem because I'm all right."  Apologies if you weren't actually saying that but to an English speaker that is exactly how I read it.

I still have the problem (same system I mentioned at comment #4).

I am using Mandriva and I know full well that there are some KDE problems which I have had over the last year or so which turned out to be Mandriva problems rather than KDE problems. If we can give the people who write or edit the code as much information as possible it might make things a lot easier for them to fix it for [insert flavour of Linux here] (or, in a perfect world, all versions of Linux).

Thanks.
Comment 8 Jonathan Kolberg 2011-05-05 12:41:36 UTC
Also reproducable with KDEPIM 4.6 beta5. but if you leave the @ away it works
Comment 9 Christophe Marin 2011-05-07 19:16:54 UTC
I cannot reproduce with the given steps:

- Create several contacts in kaddressbook,
- Add a group and add the contacts in the group,
- in Kmail, select the group,
- send mail

No error message and the email was sent and received.
Comment 10 Jonathan Kolberg 2011-05-08 11:46:42 UTC
It’s important to name the group something@anything, otherwise it will work
Comment 11 Christophe Marin 2012-01-07 22:55:44 UTC
ok, valid in master

1/ in Kaddressbook, create a group test@test, add contacts
2/ Try to send a message to this group
-> The smtp server refuses the message.
Comment 12 Axel Braun 2012-02-27 21:19:32 UTC
Actually, please have a look at the attachment of bug 266147, it reproduces this error in KDE 4.8.0
Comment 13 Laurent Montel 2012-07-08 11:19:47 UTC
I confirm it.
Comment 14 Laurent Montel 2012-07-08 11:43:18 UTC
Git commit 2d022fb46dd4e55f4b5132268982fa18ff3f0c68 by Montel Laurent.
Committed on 08/07/2012 at 13:42.
Pushed by mlaurent into branch 'KDE/4.9'.

Fix Bug 247105 - Sending messages to groups with special chars in the

name fails
FIXED-IN: 4.8.5

But we must not authorize to create a groupe with . and @

M  +2    -2    messagecomposer/emailaddressresolvejob.cpp

http://commits.kde.org/kdepim/2d022fb46dd4e55f4b5132268982fa18ff3f0c68
Comment 15 Laurent Montel 2012-07-08 11:44:16 UTC
Git commit e442746f3200e2d59dcfac9d7f79f41d09fbc093 by Montel Laurent.
Committed on 08/07/2012 at 13:42.
Pushed by mlaurent into branch 'KDE/4.8'.

Fix Bug 247105 - Sending messages to groups with special chars in the

name fails
FIXED-IN: 4.8.5

But we must not authorize to create a groupe with . and @
(cherry picked from commit 2d022fb46dd4e55f4b5132268982fa18ff3f0c68)

M  +2    -2    messagecomposer/emailaddressresolvejob.cpp

http://commits.kde.org/kdepim/e442746f3200e2d59dcfac9d7f79f41d09fbc093
Comment 16 Laurent Montel 2012-07-08 12:25:02 UTC
Git commit 28b47910cfd742d5d67ce8a2a51487fbc87480dd by Montel Laurent.
Committed on 08/07/2012 at 14:24.
Pushed by mlaurent into branch 'KDE/4.9'.

Don't allow to create group with @ or . in groupname

M  +16   -0    akonadi/contact/contactgroupeditor.cpp
M  +2    -0    akonadi/contact/contactgroupeditor.h
M  +3    -1    akonadi/contact/contactgroupeditordialog.cpp

http://commits.kde.org/kdepimlibs/28b47910cfd742d5d67ce8a2a51487fbc87480dd
Comment 17 Laurent Montel 2012-07-08 12:25:30 UTC
Git commit eb529757ce18ca34a77f99eaedadd3c306fcb0ef by Montel Laurent.
Committed on 08/07/2012 at 14:24.
Pushed by mlaurent into branch 'KDE/4.8'.

Don't allow to create group with @ or . in groupname
(cherry picked from commit 28b47910cfd742d5d67ce8a2a51487fbc87480dd)

M  +16   -0    akonadi/contact/contactgroupeditor.cpp
M  +2    -0    akonadi/contact/contactgroupeditor.h
M  +3    -1    akonadi/contact/contactgroupeditordialog.cpp

http://commits.kde.org/kdepimlibs/eb529757ce18ca34a77f99eaedadd3c306fcb0ef