View Issue Details

IDProjectCategoryView StatusLast Update
0005259SOGosogo-toolpublic2021-02-22 12:32
ReporterRiot_City Assigned Tofrancis  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
OSUbuntuOS Version20.04 
Product Version5.0.1 
Summary0005259: Cannot set e-mail signature with sogo-tool
Description

I want to use sogo-tool to set the signature for mailboxes:

sogo-tool user-preferences set defaults 'myuser@example.com' SOGoMailSignature '{"SOGoMailSignature":"Greetings from iRedMail"}'

Command runs without error and the following command:

sogo-tool user-preferences get defaults 'myuser@example.com' SOGoMailSignature

also returns:

<0x0x55c718b5e890[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x55c718b5e890[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
SOGoMailSignature: "Greetings from iRedMail"

But the signature is not added when writing a new email. Also I cannot see it in the SOGo web settings (settings->e-mail->IMAP).

Tagssignature

Activities

francis

francis

2021-02-19 20:23

administrator   ~0015093

SOGoMailSignature is deprecated. You have two options:

  1. prior to setting SOGoMailSignature, make sure to remove SOGoMailIdentities:

    sogo-tool user-preferences unset defaults 'myuser@example.com' SOGoMailIdentities

  2. directly overwrite SOGoMailIdentities:

    sogo-tool user-preferences set defaults 'myuser@example.com' SOGoMailIdentities '{SOGoMailIdentities: [{"email": "myuser@example.com", "isDefault": 1, "fullName": "My User", "signature": "Greetings from iRedMail"}]}'

Riot_City

Riot_City

2021-02-22 08:01

reporter   ~0015095

Thanks for the info. Tried Nr.2 but cannot still cannot set it:
sogo-tool user-preferences set defaults 'myuser@example.com' SOGoMailIdentities '{SOGoMailIdentities: [{"email": "myuser@example.com", "isDefault": 1, "fullName": "My User", "signature": "Greetings from iRedMail"}]}'
gives a Invalid JSON input - no changes performed in the database.

Thought there are 2 " missing and tried:
sogo-tool user-preferences set defaults 'myuser@example.com' SOGoMailIdentities '{"SOGoMailIdentities": [{"email": "myuser@example.com", "isDefault": 1, "fullName": "My User", "signature": "Greetings from iRedMail"}]}'
Still the same Invalid JSON input - no changes performed in the database.

Replaced the " by " and checked with a JSON validator: everything fine.

Maybe that's a bug in sogo-tool?

francis

francis

2021-02-22 12:21

administrator   ~0015096

Last edited: 2021-02-22 12:31

No, it's a bug in Mantis: " are HTML-encoded double quote (").

Issue History

Date Modified Username Field Change
2021-02-12 13:50 Riot_City New Issue
2021-02-12 13:50 Riot_City Tag Attached: signature
2021-02-19 20:05 francis Description Updated
2021-02-19 20:23 francis Note Added: 0015093
2021-02-22 08:01 Riot_City Note Added: 0015095
2021-02-22 12:21 francis Note Added: 0015096
2021-02-22 12:22 francis Note Edited: 0015096
2021-02-22 12:31 francis Note Edited: 0015096
2021-02-22 12:32 francis Assigned To => francis
2021-02-22 12:32 francis Status new => closed
2021-02-22 12:32 francis Resolution open => no change required