mldonkey, a multi-networks file-sharing client - Tasks: task #5324, filetype recognition with libmagic
You are not allowed to post comments on this tracker with your current authentication level.
task #5324: filetype recognition with libmagic
Submitter: | Joakim Verona <jave> | ||
Submitted: | Wed 15 Mar 2006 08:55:23 PM UTC | ||
Category: | None | Priority: | 1 - Later |
Status: | None | Assigned to: | None |
Open/Closed: | Closed | Should Start On: | Wed 15 Mar 2006 12:00:00 AM UTC |
Should be Finished on: | Wed 15 Mar 2006 12:00:00 AM UTC |
Thu 16 Mar 2006 10:17:40 PM UTC, comment #5: |
spiralvoice <spiralvoice> |
Thu 16 Mar 2006 12:11:35 PM UTC, comment #4: For later usage: libmagic requires (among other stuff) GNU regex
|
spiralvoice <spiralvoice> |
Thu 16 Mar 2006 08:42:02 AM UTC, comment #3: The mime type given by libmagic(as seen by "file -i filename") could |
Joakim Verona <jave> |
Wed 15 Mar 2006 10:48:43 PM UTC, comment #2: Attached a dirty hack for MLDonkey, no configure checking atm.
|
spiralvoice <spiralvoice> |
Wed 15 Mar 2006 08:58:21 PM UTC, comment #1: heres how to perform the test:
|
Joakim Verona <jave> |
Wed 15 Mar 2006 08:55:23 PM UTC, original submission:
It would be desirable to know the real filetype of a downloading file as soon as possible. The filetype given by libmagic can then be compared with the file extension. If they differ, say a "rar" is reaaly an "avi", the file is probably a fake.
|
Joakim Verona <jave> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2006-03-16 | spiralvoice | Reassign Item | From group mldonkey, a multi-networks file-sharing client, task tracker | To group mldonkey, a multi-networks file-sharing client, patch tracker | |
2006-03-16 | spiralvoice | Attached File | - | Added magic.patch, #454 | |
2006-03-16 | spiralvoice | Attached File | #453 | Removed | |
2006-03-15 | spiralvoice | Attached File | - | Added magic.patch, #453 |
Powered by Savane 3.13-758e.
Corresponding source code
Release version of the patch, GUI stuff has to be implemented.
libmagic, part of GNU file (http://directory.fsf.org/file.html)
is now an optional dependency of MLDonkey.
new configure option: --disable-magic
new debug command: debug_dir <dir>
to get the filetype computed by libmagic use
Magic.M.magic_fileinfo file
this function returns a string, if libmagic is not used it returns "not implemented"