Bug Tracker item #2903431, was opened at 2009-11-25 00:09
Message generated for change (Comment added) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2903431&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: webui
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Aria Stewart (aredridel)
Assigned to: Nobody/Anonymous (nobody)
Summary: [patch] webui doesn't handle fallbackDomain users

Initial Comment:
webui doesn't look in the right places for information left by @domain users 
with domain scale enabled.

Patch fixes this.

----------------------------------------------------------------------

>Comment By: Stevan Bajic (sbajic)
Date: 2009-11-25 09:31

Message:
I checked the code and you are right:
-----------------
#ifdef DOMAINSCALE
  f = strdup(filename);
  user = strtok_r(f, "@", &ptrptr);
  domain = strtok_r(NULL, "@", &ptrptr);
                                                                          
     
  if (domain == NULL)
    domain = "local";
  snprintf(userpath, MAX_FILENAME_LENGTH, "%s/%s", domain, user);
  strlcpy(username, user, MAX_FILENAME_LENGTH);
  free(f);
#else
  strlcpy(username, filename, MAX_FILENAME_LENGTH);
  strcpy(userpath, username);
#endif
-----------------

----------------------------------------------------------------------

Comment By: Stevan Bajic (sbajic)
Date: 2009-11-25 09:11

Message:
> Yes it does.
>
And that would be the answer for what question? For the last one?

----------------------------------------------------------------------

Comment By: Aria Stewart (aredridel)
Date: 2009-11-25 07:29

Message:
Yes it does.

----------------------------------------------------------------------

Comment By: Stevan Bajic (sbajic)
Date: 2009-11-25 00:47

Message:
Aria. Are you sure that this has to be that way?

1) Assuming a user name is "m...@example.com" then:
 domain=example.com
 user=me

2) Now assume user name is "@example.com" then:
 domain=example.com
 user=

With your patch you would produce in case 2 this here:
 domain=local
 user=example.com

That does not sound logical to me. If you look at the file system in
domain scale, does DSPAM save the data for user "@example.com" into
"DSPAM_HOME/data/local/example.com/"?


-- 
Kind Regards from Switzerland,

Stevan Bajić

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2903431&group_id=250683

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to