Giter Club home page Giter Club logo

Comments (2)

YoRyan avatar YoRyan commented on May 30, 2024

So it turns out this is a quirk with the way that Apprise works with Pushover. Debugging Mailrise shows that the .failure notification type is being submitted to the Apprise API correctly, which is supposed to give you a red Mailrise icon for that notification—except that Apprise's Pushover plugin does not do anything useful with the notify_type passed to it. This actually makes sense, because Pushover notifications cannot set their own icons; icons are defined on a per-app basis on the Pushover dashboard.

You're probably looking for Pushover's "priority" option, which you add to the query string of the service URL. You have a choice of low, moderate, high, or emergency:

configs:
  pushover:
    urls:
      - pover://pover://{user_key}@{token}?priority=low
  pushover_urgent:
    urls:
      - pover://pover://{user_key}@{token}?priority=emergency

from mailrise.

YoRyan avatar YoRyan commented on May 30, 2024

This is a pretty nasty gotcha, but I don't think it's practical for Mailrise to try to do anything about it. Every single plugin may or may not make use of the notify_type passed into it; there's no way to know for sure. With a case like this, you could make an automatic map from Apprise's notify_type to Pushover's priority, but this would need to be done on a plugin-by-plugin basis.

The solution is for upstream to define info/success/warning/failure "notification type" as something more intuitive than "icon color, if it is possible to set for this particular service."

from mailrise.

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.