[Tickets #13849] Requester identity is lost when requesting a ticket by mail

noreply at bugs.horde.org noreply at bugs.horde.org
Sat Feb 7 07:12:57 UTC 2015


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/13849
------------------------------------------------------------------------------
  Ticket             | 13849
  Created By         | horde at iotti.biz
  Summary            | Requester identity is lost when requesting a ticket by
                     | mail
  Queue              | Whups
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


horde at iotti.biz (2015-02-07 07:12) wrote:

I'm working on a Whups install where tickets are requested by email.
I was able to create tickets, but as long as I don't set the default  
ticket owner either in $conf[mail][username] or with the  
--default-auth option of the whups-mail-filter script, the Requester  
identity (i.e. the From: address in the email) is lost.


I had a look at the code in whups/lib/Mail.php, and it assigns  
$info['user_email'] only in the two cases I mentioned before:

         if (empty($auth_user) && !empty($info['default_auth'])) {
             $auth_user = $info['default_auth'];
             if (!empty($from)) {
                 $info['user_email'] = $from;
             }
         }

         if (empty($auth_user) && !empty($conf['mail']['username'])) {
             $auth_user = $conf['mail']['username'];
             if (!empty($from)) {
                 $info['user_email'] = $from;
             }
         }

Is this a wanted behaviour, or a bug?
If a default owner has always to be specified, then I think the  
whups-mail-filter script should fail in its absence.
If the default owner is not strictly required, I think that the  
Requester information should be recorded, and not be lost (to the  
casual user, it's not even that clear the relationship between the  
owner, and the requester email address).





More information about the bugs mailing list