Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow chat history (selection) to be stored as a txt/cvs file #232

Open
putt1ck opened this issue Jan 24, 2017 · 9 comments
Open

Allow chat history (selection) to be stored as a txt/cvs file #232

putt1ck opened this issue Jan 24, 2017 · 9 comments

Comments

@putt1ck
Copy link

putt1ck commented Jan 24, 2017

As per comments on #35:
#35 (comment)
&
#35 (comment)

It would be useful to have the ability to export/copy a text chat history or part thereof and have it associated with a file or folder that is created as a result of the discussion, possibly as comments.

@nickvergessen nickvergessen added the feature: chat 💬 Chat and system messages label Apr 18, 2017
@nickvergessen nickvergessen added this to the backlog milestone Nov 14, 2017
@bes1002t
Copy link
Member

bes1002t commented Dec 4, 2017

But imho this should be also encrypted on the file system.

@nickvergessen
Copy link
Member

@jancborchardt are you okay with putting it as an option into the "…" menuof the conversation list?

@nickvergessen nickvergessen self-assigned this Aug 8, 2018
@nickvergessen nickvergessen changed the title Allow chat history (selection) to be stored with a file/folder as comments Allow chat history (selection) to be stored as a txt/cvs file Oct 9, 2018
@nickvergessen nickvergessen modified the milestones: 5.0.0, 💚 Next Major Dec 7, 2018
@shankari
Copy link

shankari commented Jan 7, 2019

It would be great if there would be a way to automate this via a script so that we can include standard text logs in our nightly backups. Yes, we backup the database too, but databases are a lot less portable and prone to corruption

@notklaatu
Copy link

notklaatu commented Jan 13, 2019

For others looking for this functionality, you can get your logs this way (until it's added to the UI):

$ mysql -u $DB_USER -p -h $HOST -D $DB -e 'SELECT * FROM oc_comments;' > ~/chat_`date +%d.%Y`.log

@shankari
Copy link

shankari commented Jan 13, 2019

@notklaatu this is will have duplicate entries in consecutive logs, no?

So if I have chat that extended from 1st Jan to 7th Jan

  • chat_01.2019 will have the messages from 1st Jan
  • chat_02.2019 will have messages from both 1st and 2nd Jan
  • chat_03.2019 will have messages for 1st, 2nd and third

That seems unintuitive.

@nickvergessen
Copy link
Member

The command from @notklaatu also adds all chats into one file.

@wiswedel
Copy link
Contributor

The command from @notklaatu also adds all chats into one file.

And keep in mind: It only gets chats from rooms that still exist. Deleting a room also deletes all of its chat history from the database.

@eekhof
Copy link

eekhof commented Nov 30, 2023

it would be really nice to have this, if I can help I wil

@j-j-v
Copy link

j-j-v commented Jan 24, 2024

agreed - can model it on IRC logs (timestamp/user/message/(...) per line, daily file with day's date for a filename in per conversation folder - at a sketch) & make available to users via a link & ideally a built-in search, maybe with "from:username" & such niceties.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants