Coder Social home page Coder Social logo

Comments (4)

qqilihq avatar qqilihq commented on July 23, 2024

Thanks. Any chance you could supply me with a test file (I'd understand that this might be difficult due to privacy concerns, but I thought I just ask).

I'll try to have a look at this one -- those boundaries in combination with newlines gave me quite some headache during development :-)

from partial-emlx-converter.

yuergen avatar yuergen commented on July 23, 2024

Thank you for your reply. I will supply you with the smallest sample I can find in my archive.

However the missing line break is always at the end of the emlx file between the boundary and the XML start:

_______________________________________________
Some mailing list
[email protected]
http://example.com/mailman/listinfo/somemailinglist

--===============3331787384868445895==-<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>date-received</key>
	<integer>1346074997</integer>
	<key>date-sent</key>
	<integer>1346074997</integer>
	<key>flags</key>
	<integer>8590195713</integer>
	<key>original-mailbox</key>
	<string>imap://someserver</string>
	<key>remote-id</key>
	<string>10916</string>
	<key>sender</key>
	<string>Joe &lt;[email protected]&gt;</string>
	<key>subject</key>
	<string>Some mail</string>
	<key>to</key>
	<string>Alice &lt;[email protected]&gt;</string>
</dict>
</plist>

from partial-emlx-converter.

qqilihq avatar qqilihq commented on July 23, 2024

I've just been investigating this, and I'm a little surprised that the boundary string before the XML only ends with a single -. According to the spec, the close delimiter is supposed to look like this:

close-delimiter := delimiter "--"

Out of curiosity: Is this the case with many of your emails? Are they all from a mailing list or does this happen with other emails as well?

from partial-emlx-converter.

yuergen avatar yuergen commented on July 23, 2024

Every time the conversion fails, I move the offending mail out of the source folders. I am still not done with this.

Searching for "==-<" gives me 23 results in the rejects folder.

If I am not mistaken all mails are related to mailing lists managed by mailman.

from partial-emlx-converter.

Related Issues (15)

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.