davidgfnet / whatsapp-purple

WhatsApp protocol implementation for libpurple (pidgin)
856 stars 211 forks source link

Is it possible to preserve received files #204

Open lightonphiri opened 9 years ago

lightonphiri commented 9 years ago

Is it currently possible---via some configuration option---to preserve received files as part of the chat logs?

Presently, files I receive come through as URL links which, upon analysing, appear to have some sort of retention period; I cannot access files I received say two months ago---I am greeted with a Media object not found error.

If this is not currently possible, would it be possible to instead point to local files as opposed to URL?

davidgfnet commented 9 years ago

I'm not sure whether this is possible in purple, I can take a look at it. But in the meantime, why can't you just save your stuff on your HDD?

lightonphiri commented 9 years ago

It would really be great if you could look at it---thank you for this.

I could save them on my HDD I suppose, and perhaps create a script to modify chat logs so URLs point saved files.

ildar commented 9 years ago

media is pulled anyway (I see thumbnails of images). Why not just save them to a predefined folder? Even a heap of files would be good (I can sort by date etc.) A good example is the "Album" plugin which saves buddy icons.

davidgfnet commented 9 years ago

Hey @ildar, media is not pulled, WA sends thumbnail (which you cannot choose not to receive) and the URL for the original data. We are not pulling the data and thus it's tricky to save it. I would recommend a plugin to do such a thing (automatically downloads any image/mp4 link it sees in a conversation).

ildar commented 9 years ago

I would agree if there was a plugin in existence.

albcunha commented 8 years ago

I also would be interested on that. I´m planning to use this plugin to receive photos from people from certain locations and automatically save it for future reference. I´m sure they could just dropbox it, or email it, but people do know how to use whatsapp, so it would be great to use this way.