6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/6/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2365] calendar / ics file incompatible with Outlook 2000
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..__ . .. ..__ | |[__)| |\ /| \ |__\| |/\| \/ |__/
Comment
> I also have a custom hook that set's the e-mail adress for the users. > Preferably I would like to turn of the possiblity that users can > change they're e-mail adress. However if I do so I also get just > @domain.com with these mail messages. Even if IMP works fine and send > out mail correctly. It might be related to my custom hooks.. This > should probably be a own ticket but here I go: > > > > if (!function_exists('_horde_hook_postauthenticate')) { > > function _horde_hook_postauthenticate($userID, $credential, $realm) > > { > > $name = "$userID"; > > if (is_null($name)) { > > $name = Auth::getAuth(); > > } > > if (!empty($name)) { > > $users_identities = &Identity::singleton('none',"$name"); > > $users_identities->init(); > > $users_identity_default_from_addr = > $users_identities->getValue('from_addr'); > > if (empty($users_identity_default_from_addr)) { > > // use your own algorithm here or at least cahnge te > domain name to the real value > > $mail = "$name"; > > // store default identity changes > > $users_identities->setValue('from_addr',"$mail"); > > $users_identities->save(); > > } else { > > $mail = "$users_identity_default_from_addr"; > > } > > // If no email address is found, then the login name will > > // be used. > > return (empty($mail) ? '' : $mail); > > } > > return ''; > > } > > } > > > > > > if (!function_exists('_prefs_hook_from_addr')) { > > function _prefs_hook_from_addr($user = null) > > { > > $name = "$userID"; > > if (is_null($name)) { > > $name = Auth::getAuth(); > > } > > if (!empty($name)) { > > $users_identities = &Identity::singleton('none',"$name"); > > $users_identities->init(); > > $users_identity_default_from_addr = > $users_identities->getValue('from_addr'); > > if (empty($users_identity_default_from_addr)) { > > // use your own algorithm here or at least cahnge te > domain name to the real value > > $mail = "$name"; > > // store default identity changes > > } else { > > $mail = "$users_identity_default_from_addr"; > > } > > // If no email address is found, then the login name will > > // be used. > > return (empty($mail) ? '' : $mail); > > } > > return ''; > > } > > } > > > > It looks to complicated for me to have made so I've probably found it > somewhere on the net or something (don't remember). Kronolith also > needs the e-mail adress inn horde to be set (and allowed to be > changed :( ) or else it won't send out notifications to ppl.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers