Comments (4)
@ekutner , Thanks for sending in your comment. It's very interesting that the parsing routines don't work properly for you. The program has been in production use for a number of years, and I use it personally, so I know the parsing routines work, at least in those cases. I also know it works for both Duplicati and JSON email formats.
However, if it's not working for you let's try to figure out why. Perhaps there is something about your specific email server that may be causing an issue? Some questions to consider:
- Are you getting a specific error message that may indicate the problem or does the program just not pick up any emails?
- If you run the full debug log (-v7 command line option), does the log show an indication of why it isn't working properly?
Because this is the first report of this issue in the latest version of the program I'd like to track down the root cause in the existing code, with your assistance. In addition, if you think your proposed fix would improve the program and make it more stable, I'd be interested in seeing your code. I have created a new branch (Issue_174) where you can issue your pull request.
HG
from dupreport.
Also, would it be possible to post a copy of the verbose log (-v7) here so I can try to see what's going on?
from dupreport.
I don't have the log because it's already fixed for me. I can roll back my changes and get you the log but I think if you check out my PR it should be clear what I'm talking about.
- The code for extracting the source and destination computers was pretty convoluted but more importantly, I can't see how it could have worked. The regex was only for the source+separator / dest but the string it operated on contained the whole subject line. It also double escaped a backslash character that was in the generated .rc file for the delimiter regex. The bottom line was that nothing was captured. I changed that and also added support for a separator with whitespaces around it so it would be possible to create nicer looking backup names. My current .rc setting are:
srcregex = [^-]*
destregex = .*
srcdestdelimiter = " - " - The field value extraction assumes every line ends with a newline but, at least in my case, it was one big HTML with no line breaks and only a <br/> tag to mark the end of each line. It can be a gmail thing but I doubt Google would change the contents of the email. It is also possible that the email has two embedded MIME types, one for text and one for html and you were getting the text version while I'm getting the html. Anyway, my fix should still work with text because it just replaces the BR tags with newlines.
- There was a small typo in options.py that the IDE alerted me about so I fixed it too, but didn't actually hit it while running the program.
from dupreport.
Added to 3.0.7
from dupreport.
Related Issues (20)
- 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
- 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
- Error in SafeConfigParser HOT 11
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.