Giter Site home page Giter Site logo

Parsing failures about dupreport HOT 4 CLOSED

ekutner avatar ekutner commented on July 20, 2024
Parsing failures

from dupreport.

Comments (4)

HandyGuySoftware avatar HandyGuySoftware commented on July 20, 2024

@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.

HandyGuySoftware avatar HandyGuySoftware commented on July 20, 2024

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.

ekutner avatar ekutner commented on July 20, 2024

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.

  1. 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 = " - "
  2. 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.
  3. 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.

HandyGuySoftware avatar HandyGuySoftware commented on July 20, 2024

Added to 3.0.7

from dupreport.

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.