GithubHelp home page GithubHelp logo

Comments (5)

Xansala avatar Xansala commented on August 15, 2024 1

Thanks @blackpanther989,
Just tried it again following your scheme but I am getting the same error. The password is an alpha-numeric one, there are no special characters in there.

It looks like that the games claimer script is not putting quotes around the apprise command when executing it and then with the "&" in the command URL, the command line seems to interpret it which results in the error.

from free-games-claimer.

blackpanther989 avatar blackpanther989 commented on August 15, 2024

surround your mailtos in quotes EX: "mailtos://{e-mail account}:{password}@gmx.de?user={e-mail address}&smtp=mail.gmx.com&to={target e-mail}"

That fixed it for me.

from free-games-claimer.

Xansala avatar Xansala commented on August 15, 2024

Hi @blackpanther989 ,

Thanks for the hint! I am providing the mailtos through the NOTIFY variable, i.e. NOTIFY="mailtos ...". There I am using the quotes and also tried apostrophe but both result in the same error (also double or triple quotes do not work).

docker run --rm -p 6080:6080 -v fgc:/fgc/data --pull=always -e NOTIFY="mailtos://{e-mail account}:{password}@gmx.de?user={e-mail address}&smtp=mail.gmx.com&to={target e-mail}" ghcr.io/vogler/free-games-claimer

from free-games-claimer.

blackpanther989 avatar blackpanther989 commented on August 15, 2024

Hi @blackpanther989 ,

Thanks for the hint! I am providing the mailtos through the NOTIFY variable, i.e. NOTIFY="mailtos ...". There I am using the quotes and also tried apostrophe but both result in the same error (also double or triple quotes do not work).

docker run --rm -p 6080:6080 -v fgc:/fgc/data --pull=always -e NOTIFY="mailtos://{e-mail account}:{password}@gmx.de?user={e-mail address}&smtp=mail.gmx.com&to={target e-mail}" ghcr.io/vogler/free-games-claimer

I also had an issue with this as well and it was that my password contained something that broke the parsing. but other then that I wouldn't know what else would be breaking it.

Mine is entered as: "mailtos://{email}?smtp={smtpserver}&user={username}&pass={password}" and I'm using gmail.

from free-games-claimer.

vogler avatar vogler commented on August 15, 2024

exec(`apprise ${cfg.notify} -i html '${title}' -b '${html}'`, (error, stdout, stderr) => {

NOTIFY was not quoted, so if yours contained something that must be escaped on the shell, it made it fail. You could have put escaped quotes around it.
I just switched to execFile which takes arguments as an array, so there should be no more shell-escape issues. (exec just spawned a shell to execute the command whose arguments then need to be properly escaped.)

from free-games-claimer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.