Giter Club home page Giter Club logo

detach's People

Contributors

cirdeirf avatar feliix42 avatar horazont avatar mhaehnel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mhaehnel

detach's Issues

Unrecognized inline attachments

As pointed out in offline discussions, detach does not recognise some attachments from Apple Mail because it inlines them.

This produces something like the following:

--Apple-Mail=_FF297101-ED64-4306-A433-DA2DB722FFB0
Content-Transfer-Encoding: base64
Content-Disposition: inline;
	filename=171214_Kachel_Campus_Weihnachten.png
Content-Type: image/png;
	name="171214_Kachel_Campus_Weihnachten.png"
Content-Id: <[...]@ifsr.de>

[Base64-Blob]

As opposed to normal attachments, the Content-Disposition field is set to inline, which is unfortunate because detach bases its recognition on this field.

Maybe we could extend the attachment criteria to include any message parts that are inline, but also of type application/pdf, image/png, image/jpg etc. This would be a kind of hacky solution but better than nothing. What do you think, @cirdeirf?

Type error: Too many arguments

In line 266, process_mail() is called with three arguments, but it's only defined with two arguments, causing an error after selecting a mail to process.

found matching mail:
 Subject: FSR Veröffentlichung von [redacted] erfordert Bestätigung
 nested Subject: [redacted]
Process mail? [Y/n]y
Traceback (most recent call last):
 File "detach.py", line 340, in <module>
   run(maildir, conn, exclude_seen, dir_pattern)
 File "detach.py", line 266, in run
   parsed, nested, dir_pattern
TypeError: process_mail() takes 2 positional arguments but 3 were given

Broken file extension on server

The recent mail to fsr@ (14.09.2016, 11:58) links to a correct directory but the file extension of the pdf is broken

Bestellformular akademika 2016.pdf"; size=844052; creation-date="Wed, 14 Sep 2016 09:38:46 GMT"; modification-date="Wed, 14 Sep 2016 09:38:46 GMT

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.