627b526f8ff26ebb7539a5a6ee25f515a88242da
chmalee
  Tue Aug 6 15:10:06 2024 -0700
Can create a directory and place a hub.txt in it, and get an email for a userName

diff --git src/hg/inc/userdata.h src/hg/inc/userdata.h
index b8a6e54..879f066 100644
--- src/hg/inc/userdata.h
+++ src/hg/inc/userdata.h
@@ -10,30 +10,34 @@
 {
 char *userName;
 struct fileInfo *fileList; // list of files for this user
 };
 
 struct userHubs
 {
 struct userHubs *next;
 char *hubName; // name of this hub
 char *genome; // only one genome allowed per hub for now
 char *userName; // for convenience
 struct userFiles *fileList; // list of files (tracks) in the hub
 };
 
 char *getUserName();
+/* Query the right system for the users name */
+
+char *emailForUserName(char *userName);
+/* Fetch the email for this user from gbMembers hgcentral table */
 
 //TODO: this should probably come from hg.conf:
 #define HUB_SPACE_URL "https://hgwdev.gi.ucsc.edu/hubspace"
 
 // the various quota helper variables:
 #define HUB_SPACE_DEFAULT_QUOTA_BYTES 1000000000
 #define HUB_SPACE_DEFAULT_QUOTA HUB_SPACE_DEFAULT_QUOTA_BYTES 
 // for defining the quota in hg.conf
 #define HUB_SPACE_CONF_QUOTA_VAR "hubspace.quota"
 // path to hg.conf file that has a list of hubspace.quota.userName entries
 // for special per user quotas:
 #define HUB_SPACE_QUOTA_LIST_VAR "hubspace.quotaList"
 
 char *webDataDir(char *userName);
 /* Return a web accesible path to the userDataDir, this is different from the full path tusd uses */