View Issue Details

IDProjectCategoryView StatusLast Update
0006148SOGosogo-toolpublic2025-10-16 09:34
Reporterzhb Assigned Toqhivert  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0006148: BUG in sogo-tool rename-user
Description

There's bug in command line tool sogo-tool rename-user.

Command used to rename user:

sogo-tool rename-user old@domain.com new@domain.com

After renamed, new user still have old email address in 2 columns:

  • sogo_user_profile.c_defaults
    • "SOGoMailReplyTo": "old@domain.com"
    • "autoReplyEmailAddresses":["old@domain.com"]
    • "replyTo":"old@domain.com"
    • ...
  • sogo_user_profile.c_settings
    • "email":"old@domain.com"
    • ...

Shouldn't they be replaced by new email address?

TagsNo tags attached.

Activities

zhb

zhb

2025-09-26 03:35

reporter   ~0018348

Re-format:

  • sogo_user_profile.c_defaults
    • "SOGoMailReplyTo": "old@domain.com"
    • "autoReplyEmailAddresses":["old@domain.com"]
    • "replyTo":"old@domain.com"
    • ...
  • sogo_user_profile.c_settings
    • "email":"old@domain.com"
    • ...
zhb

zhb

2025-09-26 03:41

reporter   ~0018349

More details.

After renamed, login as new user:

  • SOGo displays old email address on top-left corner (under display name).
  • Go to Preferences -> Mail -> Vacation -> Enable vacation auto reply, it displays old email address in Email addresses field.
zhb

zhb

2025-09-26 03:42

reporter   ~0018350

Note: I already restarted memcached service to empty the cache in memory before login as new user.

qhivert

qhivert

2025-10-15 15:33

administrator   ~0018358

Hello,
SOGoMailReplyTo is not used anymore.
autoReplyEmailAddresses is for the Vacation settings, user can change it.
replyTo is the new field for SOGoMailReplyTo, the sogo.conf can allow or forbid the user to change it.

Can you share me the context of "email" in c_settings? I don't see when it is stored.

I guess the tool could change those values, especially the replyTo if the user can't change it.

zhb

zhb

2025-10-16 07:07

reporter   ~0018360

Hi @qhivert,

Tried again with a fresh installation.

  • Mail is empty in c_settings like this: {"Mail": {}, ...}.
  • I enabled vacation in SOGo BEFORE rename, it adds more parameters in c_defaults, and old email address appears in few of them. But they were not changed to new email address AFTER rename.
    • Vacation -> autoReplyEmailAddresses
    • SOGoMailIdentities -> email
qhivert

qhivert

2025-10-16 09:33

administrator   ~0018361

Hello,
I've made a fix and test it in some cases. Now it properly changes all mention of old@domain.com to the new one. Available tomorrow with the nightly

zhb

zhb

2025-10-16 09:34

reporter   ~0018362

Thanks for the great work. :)

Issue History

Date Modified Username Field Change
2025-09-26 03:33 zhb New Issue
2025-09-26 03:35 zhb Note Added: 0018348
2025-09-26 03:41 zhb Note Added: 0018349
2025-09-26 03:42 zhb Note Added: 0018350
2025-10-15 15:33 qhivert Note Added: 0018358
2025-10-15 15:33 qhivert Assigned To => qhivert
2025-10-15 15:33 qhivert Status new => feedback
2025-10-16 07:07 zhb Note Added: 0018360
2025-10-16 07:07 zhb Status feedback => assigned
2025-10-16 09:33 qhivert Note Added: 0018361
2025-10-16 09:33 qhivert Status assigned => feedback
2025-10-16 09:34 zhb Note Added: 0018362
2025-10-16 09:34 zhb Status feedback => assigned