Comments (5)
Interesting. It doesn't seem compatible with I.E. or Edge, but that's not a show-stopper. I'm wondering if this will work from the HTML engine inside of email clients like Outlook, or only works directly from a browser like Chrome or Safari.
If you are using an email client, we can test this by updating the code a bit. In dupReport.py, Change line 694 to read:
msgHtml = '{}<td align="center" colspan = "11"><details><summary>Error/Warning Message</summary><p><i>{}{}</i></p></details></td>'.format(msgHtml, txt[0], txt[1])
That will tell us if it works inside an email client. I'll try this as well, but I won't be able to work on it until later tonight.
from dupreport.
Thank you for looking at it so fast! :)
I found this:
- Outlook 2016 - not Working
- Exchange 2013 OWA in Chrome - not Working
- Gmail in Chrome (message fwd from outlook) - Not Working
But If I save message body as html file and open it in Chrome - it Works ! :-)
Sadly "details" is on unofficial unsupported list of tags in gmail - so maybe situation will be same in other email clients.
https://quip.com/aO0pAZO9m9SG
So I'm sorry -I should have done better research :/
I had no idea that email clients are artificially blocking HTML 5 content
EDIT
- Thunderbird 52 (Windows 10) - WORKED
- Nine mail (Android 7) - didn't work
- Gmail with dupReport as html attachment (opening embedded in gmail on ) - didn't work
from dupreport.
Nice!
Got the following. results.
Horde Webmail - didn't work
Roundcube webmail - didn't work
Outlook.com - didn't work
Sogo webmail - WORKED (but not with edge)
Whatever the default email client is on Samsungs phones is - WORKED
Thunderbird client - WORKED (linux)
Kmail client - WORKED (linux)
tested the webmails in vivaldi slimjet palemoon and edge all win10, Also tested firefox kubuntu 17.10
If it didn't work the message would just expand as normal.
from dupreport.
@dcurrey , you have waaaaayyyy too many email clients to deal with! :-)
So it looks like it's hit or miss as to whether the <details> tag works. FYI, in 2.1 there is a feature to output the report to an HTML file (as well as text and CSV), so it should work for displaying that file if the browser supports it.
I suppose there is no harm in including the tag in case it is supported in the target software. There is a .rc file option to show/hide messages/warnings/errors altogether, so that will counterbalance the <details> tag if it's not supported. I'm trying to finalize/stabilize the 2.1 code soon, but I'll try to sneak this in.
<advertisement> The first beta for 2.1 should be posted on GitHub soon (hopefully by next week). Lots of new and improved features, mostly in reporting style and formatting. Keep an eye on the Duplicati announcement page for details or follow @dupReport on Twitter. I'm hoping you guys can give it a thorough shake-down. </advertisement>
from dupreport.
Added to 2.1 code.
from dupreport.
Related Issues (20)
- Fix Typos in convert.py file HOT 1
- Add OS Name & Version to Log File HOT 1
- dupReport.py installer changes folder name HOT 2
- Error crash when target destination is unavailable HOT 1
- smtplib.SMTPDataError: (501, b'Syntax error - line too long') HOT 18
- Typo in [report] section HOT 1
- Change description of -verbose command line option HOT 1
- Program crashes when can't connect to SMTP server HOT 1
- Fix Typos in docs/WhatIsDupreport.md HOT 1
- Indicate Warning or Error in subject line of the mail report HOT 16
- Only send on failure HOT 1
- Parsing failures HOT 4
- Enabling "Less secure apps" is required for Gmail access HOT 2
- "Nonetype has no attribute groups" - dupreport crash HOT 7
- Add an Ignore option to the Source-Destination Section of the .RC file HOT 1
- Need more flexibility in defining Subject Line and S-D regex in .rc file (Was: RegEx suddenly does not match anymore) HOT 16
- dupReport is ignoring Backup Warning Threshold HOT 1
- Typo in the docs for the-b option HOT 1
- Syslog output crashes ELK Logstash 8.1.2 HOT 1
- Ignored S/D Pairs still show up in LastSeen Report
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 dupreport.