LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 01-04-2024, 11:41 AM   #1
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 365

Rep: Reputation: 171Reputation: 171
Lightbulb can [QUOTE] blocks be trimmed from emailed message previews?


Message previews are very useful when they preview enough of the new post to let you know whether or not to click the link.

The LQ Spy message previews are great at this because they trim [QUOTE] blocks. The preview begins at the new content. For example, here's a great LQ Spy message preview:

Code:
New Post   glupa4e   Today 14:00   Slackware 15 64 - doublecmd fails to install                        Slackware
                                   installing libqtpas fixed the issue for me (140 views, 5 replies)
But email notifications of new posts include [QUOTE] blocks in the preview, and because those generally come first, that is all you see. It makes 90% of previews unhelpful. For example, here is the unhelpful message preview for the same post used in the first example:

Code:
Dear metaed,

glupa4e has just replied to a thread you have subscribed to entitled - [SOLVED] Slackware 15 64 - doublecmd fails to install - in the Slackware forum of LinuxQuestions.org.

Here is the message that has just been posted:
***************
---Quote (Originally by metaed)---
Are you looking for https://slackbuilds.org/repository/1...ies/libqtpas/?
"This package provides the libq
***************
 
Old 01-04-2024, 04:19 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
[QUOTE=metaed;6474578]Message previews are very useful when they preview enough of the new post to let you know whether or not to click the link.

The LQ Spy message previews are great at this because they trim [QUOTE] blocks. The preview begins at the new content. For example, here's a great LQ Spy message preview:

Code:
New Post   glupa4e   Today 14:00   Slackware 15 64 - doublecmd fails to install                        Slackware
                                   installing libqtpas fixed the issue for me (140 views, 5 replies)
But email notifications of new posts include
Quote:
blocks in the preview, and because those generally come first, that is all you see. It makes 90% of previews unhelpful. For example, here is the unhelpful message preview for the same post used in the first example:

Code:
Dear metaed,

glupa4e has just replied to a thread you have subscribed to entitled - [SOLVED] Slackware 15 64 - doublecmd fails to install - in the Slackware forum of LinuxQuestions.org.

Here is the message that has just been posted:
***************
---Quote (Originally by metaed)---
Are you looking for https://slackbuilds.org/repository/1...ies/libqtpas/?
"This package provides the libq
***************
If that can be done it will be because it is supported by your email client or reader. Whatever renders the email for viewing has control here, so that is what you must leverage.
Note that there is no IEEE standard for how to include or render quotes, so different tools may do it differently. This makes it a non-trivial problem for the team maintaining the email clients and most simply do not address this as an issue.
 
Old 01-08-2024, 05:18 PM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,605

Rep: Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548

This...
Quote:
Originally Posted by wpeckham View Post
If that can be done it will be because it is supported by your email client or reader.
...is nonsense.

Metaed is not asking for anything that can be solved by their email client, they are asking for the content of LQ-generated email to use the same functionality as used by the previews on the LQ Spy page.

It is entirely possible doing so is a trivial case of changing a single function call in one file - though it might also be more involved; only someone with access to the LQ source code can say for sure.


Aside: Note how, rather than quote an entire message, I trimmed the above quote to a small relevant part, (and with slightly different wording I could have omitted it entirely without any loss of clarity). Also, after posting, I will spend a second to glance at my post and see if for any reason it might benefit from editing... (spoiler: it did)


Last edited by boughtonp; 01-08-2024 at 05:20 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deletion of the 1st quote in the instant email notification previews l0f4r0 LQ Suggestions & Feedback 5 08-28-2018 11:08 AM
[SOLVED] How to pass a single quote inside of a single quote... trist007 Linux - Newbie 2 02-09-2011 07:07 PM
sed : Convert double quote to singe quote pgb_710 Programming 6 01-21-2010 07:59 AM
when to quote or not to quote variable names - mktemp problem glinux Linux - Newbie 3 02-20-2009 04:37 PM
Can KDE be trimmed?? nny0000 General 4 08-11-2004 08:18 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration