Comments (5)
Does it work without that escapes? Is the result the same with different browsers?
from nagstamon.
I've tested it with every browser at my disposal: IE10, FF22, Chrome 22, opera 12
they all work as I'd expect it: %0d%0a causes a new line in the mail body.
It seem as if nagstamon would prevent the correct parsing of the escape sequences.
If I had to make an educated guess, I'd say the complete action string get's URL encoded before execution and thus breaking the ability to use escape sequences - that would mean: no chance of having new lines in emails.
of course: creating emails this way without new lines works just fine
from nagstamon.
I played with your example and found it not working with &subject but ?subject.
Line 651-656 in Actions.py:
def _URLify(self, string):
"""
return a string that fulfills requirements for URL
exclude several chars
"""
return urllib.quote(string, ":/=?&@")
So yes URLs get cleaned.
I tested Browser URLs without that _URLify() and it works as you expected. Obviously the browsers could URLify the URLS themselves and this method should not be needed here.
from nagstamon.
Thanks for clarifying.
nonetheless thanks for pointing out a syntactical error. the mailto protocol expects a question mark as separator between the first argument (most often the to field) and other arguments. additional parameters are linked with an ampersand.
from nagstamon.
I think your way to send emails should work in future version - next github commit to be exact.
from nagstamon.
Related Issues (20)
- SyntaxWarning: invalid escape sequence with Python 3.11.8 HOT 1
- Nagstamon v.3.14.0 problems to show services HOT 1
- Recheck not working on Thruk 3.12 HOT 6
- Nagstamon 3.14 inplace upgrade No longer working with Thruk instance. HOT 4
- Nagstamon 3.14 not starting since Plasma 6 HOT 34
- Nagstamon 3.14 - Changing network does not refresh the application
- Nagstamon 3.14.0 and 3.10.1 not working with Zabbix 6.4.12 HOT 10
- Nagstamon-3.14.0-win64_setup.exe and threat W64/S-e4cd4610!Eldorado HOT 5
- nagstamon v3.14.0 on Win11 23H2 - icinga KeyError host_name HOT 1
- 3.14 locks up at start HOT 4
- Updating nagstatmon from 3.10.1 to 3.14.0 breaks on Windows 2022 HOT 1
- Nagstamon 3.14.0 and Zabbix 6.2.9 - All information copy not complate
- Regex duration issue
- ValueError when parsing QT_VERSION_STR HOT 8
- AttributeError with Icinga DB 1.2.0 / Icinga DB Web 1.1.2 HOT 2
- Help for integration HOT 3
- [Feature][Integration] Opsgenie HOT 1
- Display own columns from check_MK view in nagstamon HOT 1
- Sorting by duration not saved when restarting nagstamon (minor cosmetic problem) HOT 2
- Nagstamon 3.15-20240506, Fedora 40, Couldn't load VAAPI library HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagstamon.