6.0.0-beta1
10/16/25

[#4018] Using groups with groupname containing a . fails
Summary Using groups with groupname containing a . fails
Queue IMP
Queue Version 4.1.1
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester horde (at) karmoy (dot) kommune (dot) no
Created 06/08/2006 (7070 days ago)
Due
Updated 06/26/2006 (7052 days ago)
Assigned 06/08/2006 (7070 days ago)
Resolved 06/26/2006 (7052 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/26/2006 04:29:07 AM Michael Slusarz Comment #5
State ⇒ Resolved
Reply to this comment
We actually need to do the quoting in IMP rather than Turba - since a 
group name with a period in it is entirely allowable in Turba, any 
return from a contacts/search call should return the canonical list 
name.  We only need to RFC 2822 encode the group name if we are 
dealing in an application that will use the group name in an e-mail 
context (i.e. IMP).



Fixed in IMP HEAD and 4.1.3.
06/08/2006 04:07:08 PM Jan Schneider Comment #4
Assigned to Michael Slusarz
State ⇒ Assigned
Reply to this comment
Group names with dots need to be quoted according to RF2822.



Michael, I tried it with this (ugly) patch:



--- api.php.~1.188.~        2006-05-22 14:35:32.000000000 +0200

+++ api.php        2006-06-08 18:59:50.000000000 +0200

@@ -1010,6 +1010,9 @@

                                      }

                                  }

                              }

+                            require_once 'Horde/MIME.php';

+                            $vars = get_class_vars('MIME');

+                            $listatt['name'] = 
MIME::_rfc822Encode($listatt['name'], $vars['rfc822_filter'] . '.');

                              $results[$name][] = array('name' => 
$listatt['name'], 'email' => implode(', ', $emails), 'id' => 
$listatt['__key'], 'source' => $source);

                          }

                      }



But this resulted in inconsistent results when I expand names with 
ajax or use the address book popup. Maybe you have a bright idea?
06/08/2006 08:44:20 AM horde (at) karmoy (dot) kommune (dot) no Comment #3 Reply to this comment
I get this message in the compose-window when sending a mail to a 
group-name which contains a dot ( . ) and the mail won't get sent.

The same groupnames worked fine in IMP 4.0.3 and Turba 2.0.2.


06/08/2006 08:28:35 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
When and where do you get that message?
06/08/2006 06:50:33 AM horde (at) karmoy (dot) kommune (dot) no Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Using groups with groupname containing a . fails
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
When groupnames from Turba containing a dot ( . ) is used as 
recipients I get an error: "Group name did not validate".

Saved Queries