autodetecting file type

Bug #445433 reported by Benjamin Drung
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pastebinit
Triaged
Wishlist
Unassigned

Bug Description

It would be nice, if pastebinit can automatically detect the file type (e.g. if it is a patch) and set the format.

Changed in pastebinit:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Stéphane Graber (stgraber) wrote :

I agreed it'd be nice though I don't really know how to do it easily and don't have much time before 12.04 feature freeze...

Patches are more than welcome (yes, I touched pastebinit once a year).

Revision history for this message
Thomas Waldmann (tw-public) wrote :

detecting the content-type from file contents is always black magic and not always successful.

a related idea might be to guess the type from the file extension (if -i is used and not stdin).
but the next problem then is that every pastebin wants to be told about the format/content-type in a slightly different way.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.