Copy Teams message with header without sender and link

h 271 Reputation points
2022-01-06T06:55:46.763+00:00

Hello,

I tried searching, but couldn't find anything related to this.

Whenever I try to highlight and copy a message with a header from teams, it automatically highlights the entire thing and includes a lot of extra crap I don't want in the message when I copy it.

An example might look something like this:

[Tuesday 12:54] Ola NordmannExample header

This is the body of the message

And the end
<https://teams.microsoft.com/l/message/00:rm861cwr6sz6z3dofkgjjofjb9obds9g@thread.skype/9210939506821?tenantId=aql59goh-i8qu-7evk-hewg-8t5tk64rtr0g&amp;groupId=lpoipgbi-0qc2-grk2-nxpr-dnoq88u8t3gs&amp;parentMessageId=7242223525709&amp;teamName=Example&amp;channelName=General&amp;createdTime=8453144380541>

I can deal with most if it, although I don't want the time, sender or link. However, one particularly bad thing is that the sender name gets mashed in with the header, which makes it very hard to extract the contents from a normally copied message. Is there any way to disable or modify this behaviour? At least to properly split the sender and header?

This is on Teams version 1.4.00.26453, Ubuntu 21.04

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,569 questions
Skype for Business Linux
Skype for Business Linux
Skype for Business: A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.Linux: A family of open-source Unix-like operating systems.
459 questions
{count} votes

22 answers

Sort by: Most helpful
  1. Igor Zagyanskiy 10 Reputation points
    2023-09-13T19:02:45.2966667+00:00

    Made the follow AHK Script.

    Note that this only works for a single message, so you can triple clip and copy it without headers. It does not solve the problem when highlighting multiple message, and in fact makes it worse in that use case, but it's something.

    #IfWinActive, ahk_exe Teams.exe
    Ctrl & C::
    {
    	Send {Lshift Down}{Left}{Lshift Up}
    	Send ^c
    	return
    }
    #IfWinActive	
    
    2 people found this answer helpful.
    0 comments No comments

  2. Gary Godfrey 6 Reputation points
    2022-07-18T18:32:35.113+00:00

    I was seeing this same issue, then realized that it was me. I'm very much used to the Ctrl-C not "taking" so I usually hit it multiple times when copying. In this case, the first Ctrl-C will copy whatever text you're highlighting, then the second one captures the entire message. Pressing Ctrl-C once seems to work for me.

    1 person found this answer helpful.

  3. Dbass 6 Reputation points
    2022-10-14T06:55:40.917+00:00

    I have big issues with this myself. Most of my work consist of serial numbers who in often cases contains dash etc., meaning I need to tripple click the serial. This is normal procedure, but I can't directly paste this into the search field in our EDB software, as then it would just search for "[DATE TIME] John Doe" and yield nothing.

    This "feature" results in more manual work.

    1 person found this answer helpful.
    0 comments No comments

  4. Ryan L 6 Reputation points
    2023-01-10T00:07:42.133+00:00

    The work around for us, though not fun should be the other way around, is highlight the text you mean to copy, right click, once the context menu comes up hold SHIFT then click copy.

    (Sorry posted in comments before)

    1 person found this answer helpful.
    0 comments No comments

  5. Harry Knott 5 Reputation points
    2023-01-27T15:36:28.9566667+00:00

    Agree this is a complete pain. When you highlight the text in a message and copy it seems that sometimes you get the time + sender, sometimes you don't, and sometimes it fails to copy at all.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.