mailgo icon indicating copy to clipboard operation
mailgo copied to clipboard

Clicking the 'copy' button only copies the 'to' address.

Open yoavaviram opened this issue 3 years ago • 6 comments

I am the following configuration with direct render:

var window.mailgoConfig = {
  dark: true,
  details: {
    subject: false,
    body: false,
    to: false,
    cc: false,
    bcc: false,
  },
};

When I click the 'copy' button and paste the text, all I see is the recipient's email address.

yoavaviram avatar Dec 17 '20 13:12 yoavaviram

It the correct behaviour. The copy is referring to the recipient's email address. In the most cases the mailto links are used with only a single to: address and so mailgo copy only that. If there are CC or other I don't know which behaviour will be the best, maybe copy all the parameters would be confusing... What do you think about?

manzinello avatar Dec 18 '20 15:12 manzinello

I was sure the copy refers to the body of the email...

yoavaviram avatar Dec 18 '20 21:12 yoavaviram

The issue is easy!! You can view the syntax of the JSON - We don't need to include any , (comma) at last values in JSON. If not sure, try this syntax.

var window.mailgoConfig = {
  dark: true,
  details: {
    subject: false,
    body: false,
    to: false,
    cc: false,
    bcc: false
  }
};

ashishagarwal2023 avatar Nov 08 '21 10:11 ashishagarwal2023

Thanks, but I don't think this is relevant to this issue.

yoavaviram avatar Dec 03 '21 11:12 yoavaviram

Sorry If it didn't solve your issue. I've show the different code, because you've added seperated commas in each items including at last that's not included commonly. That's called a code type mistake.

ashishagarwal2023 avatar Dec 03 '21 18:12 ashishagarwal2023

Oh yeah, There's a error. Sorry for wrong answer.

ashishagarwal2023 avatar Dec 03 '21 18:12 ashishagarwal2023