linshare icon indicating copy to clipboard operation
linshare copied to clipboard

Customize the mail content

Open georgej77 opened this issue 6 years ago • 7 comments

Hi Linshare Team,

How can i update the content of body from below table? The highlighted content is not required for us.

After download is complete, make sure to decrypt them locally by using the application:
${jwsEncryptUrl}
You must use the password granted to you by the user who made the file(s) available for sharing.



INSERT INTO mail_content (id, uuid, domain_abstract_id, language, mail_content_type, visible, plaintext, modification_date, creation_date, greetings, name, subject, body, alternative_subject, enable_as) VALUES (11, 'fef9a3f1-6011-46cd-8d39-6bd1bc02f899', 1, 0, 10, true, false, now(), now(), E'Hello ${firstName} ${lastName},

', E'New sharing of a cyphered file', E'A user ${actorRepresentation} has just made a file available to you!', E'${firstName} ${lastName} has just shared with you ${number} file(s):

    ${documentNames}

To download the file(s), simply click on the following link or copy/paste it into your favorite browser: ${url}${urlparam}

One or more received files are encrypted. After download is complete, make sure to decrypt them locally by using the application:
${jwsEncryptUrl}
You must use the password granted to you by the user who made the file(s) available for sharing.



', '${actorSubject} from ${actorRepresentation}', true);

Thanks Jinju.

georgej77 avatar Aug 20 '20 13:08 georgej77

Hi, The text in bold is only present if some of the shared documents are encrypted. Why don't you use the admin interface to edit the content of the email ? It is often a bad idea to edit manually the database

fmartin-linagora avatar Aug 21 '20 09:08 fmartin-linagora

Hi Frederic,

We are not allowing guest users to encrypt the file locally. Only the Guest account users can authenticate it through the console. So the auto generate message will create a confusion for the users.

Thanks, jinju

On Fri, Aug 21, 2020 at 2:59 PM Frédéric MARTIN [email protected] wrote:

Hi, The text in bold is only present if some of the shared documents are encrypted. Why don't you use the admin interface to edit the content of the email ? It is often a bad idea to edit manually the database

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linagora/linshare/issues/135#issuecomment-678140918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ6OJAXZ62VKI2GVH5CQU2LSBY47DANCNFSM4QGBN57A .

georgej77 avatar Aug 21 '20 14:08 georgej77

Hi, Will it resolve my problem once I run the below query on psql?

UPDATE mail_content set body = '${firstName} ${lastName} has just shared with you ${number} file(s):

    ${documentNames}

To download the file(s), simply click on the following link or copy/paste it into your favorite browser and login with linShare account: ${url}${urlparam}
You must use the password granted to you by the user who made the file(s) available for sharing.



' where id = 11;

UPDATE mail_content set body = '${firstName} ${lastName} has just shared with you ${number} file(s):

    ${documentNames}

To download the file(s), simply click on the following link or copy/paste it into your favorite browser and login with linShare account: ${url}${urlparam}
You must use the password granted to you by the user who made the file(s) available for sharing.



' where id = 12;

georgej77 avatar Aug 21 '20 14:08 georgej77

I don't know. I supposed that if you remove the useless part from the template, it will work. I suppose you can do it through the admin interface.

fmartin-linagora avatar Aug 25 '20 13:08 fmartin-linagora

Hi Federic,

I have updated it in the DB table and it's working now.

Thanks Jinju.

On Tue, Aug 25, 2020 at 6:35 PM Frédéric MARTIN [email protected] wrote:

I don't know. I supposed that if you remove the useless part from the template, it will work. I suppose you can do it through the admin interface.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linagora/linshare/issues/135#issuecomment-680012590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ6OJAV4OKPDMQKETDK2JI3SCOZLJANCNFSM4QGBN57A .

georgej77 avatar Aug 26 '20 06:08 georgej77

Hi, I don't know which version you are using, it seems to be a version 1, very old version. I don't know if you are aware but we released the version 4. You should think about upgrading. Fred.

fmartin-linagora avatar Aug 26 '20 07:08 fmartin-linagora

Hi Fred,

We will upgrade once you integrate with the upload request.

Thanks Jinju.

On Wed, Aug 26, 2020 at 12:41 PM Frédéric MARTIN [email protected] wrote:

Hi, I don't know which version you are using, it seems to be a version 1, very old version. I don't know if you are aware but we released the version 4. You should think about upgrading. Fred.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linagora/linshare/issues/135#issuecomment-680702911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ6OJAQKDGPOXELCWDJA6X3SCSYSZANCNFSM4QGBN57A .

georgej77 avatar Aug 26 '20 13:08 georgej77