I want to triple-click a message, copy it to the clipboard, then paste it in whichever application, and I don't want to see the header (time and sender information).
Yes, it is possible to carefully select parts of a message, and make sure you don't snag the beginning or end of the message so you don't "grab" the header. This is not what I'm looking for. I want a one-click-solution.
I found this post dating from 2013, about Skype/Lync. I'm looking for the same thing in Teams.
https://support.microsoft.com/en-us/topic/update-enables-users-to-copy-instant-messages-without-author-name-and-time-stamp-in-skype-for-business-lync-2013-42c4ac43-9d14-d2be-ef38-107f15033bf7
Thank you
For anyone interested, I've found a workaround for this issue using an external tool. I utilize PastePal, a clipboard manager, which can be found at PastePal. PastePal allows users to write "Transformers" scripts that process and clean the copied data. Here's the Transformer I wrote:
function transform(clip) {
// Define the pattern to check in the first line
const pattern = /^\[\d+\/\d+\s\d+:\d+\s(AM|PM)\]\s.+$/;
// Split the text into lines
const lines = clip.text.split(/\r?\n/);
// Check if the first line matches the pattern
if (pattern.test(lines[0])) {
// If the pattern matches, return the second line and all subsequent lines, joined into a single string
return lines.slice(1).join('\n');
} else {
// If the first line does not match the pattern, return the original text or handle as needed
return clip.text; // Or any other handling as required
}
}
I use this to clean up messages copied from Teams.
Hope it can be helpful to someone else too.