Bug 476321 - Answering an email to which a file is attached
Summary: Answering an email to which a file is attached
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.23.1
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-30 09:46 UTC by Pierre THOMAS
Modified: 2023-11-03 07:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (150.62 KB, image/png)
2023-11-03 07:02 UTC, Pierre THOMAS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre THOMAS 2023-10-30 09:46:14 UTC
Kmail must not propose to join a file if nothing in the answer to an original email suggests a file to be joined.
If the original email has a file joined (and perhaps words saying a file is joined), Kmail  proposes to join a file to the answer !!!

Pierre

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Mageia 9 / Plasma 5.27.5
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Laurent Montel 2023-11-02 16:02:27 UTC
I don't understand how to reproduce it.
We check if text has "attachment" words.
but we mustn't check when text is quoted

=> please provide a test email please.

Thanks
Comment 2 Pierre THOMAS 2023-11-02 16:59:33 UTC
(In reply to Laurent Montel from comment #1)
> I don't understand how to reproduce it.
> We check if text has "attachment" words.
> but we mustn't check when text is quoted
> 
> => please provide a test email please.
> 
> Thanks

I thank you Laurent for considering my request.

Example
Email received :
Bonjour à tous,
Je vous laisse découvrir le programme qui vous a été concocté par la commission animation pour le week-end avec hébergement des 4 et 5 mai 2024.
Vous trouverez en pièce jointe la fiche d'inscription et le descriptif du séjour.
Le nombre de places étant limité, priorité est donnée aux adhérents. Toutefois, il vous sera possible d'inscrire un invité non adhérent sur votre bulletin d'inscription, sachant que son inscription ne pourra être validée que sous réserve de places disponibles. 
Amicalement
Catherine

When I click to locate the mouse cursor at the beginning of the text of my answer to type, and then I type Enter, without having typed anything else, I get the warning :
Le message que vous avez composé fait référence à un fichier joint, mais vous n'avez rien joint. Voulez-vous joindre un fichier à votre message ?

(I hope you understang French !)
I didn’t type any word concerning a file to attach !!!  This warning must not be displayed !!!

I guess the warning comes from the fact that the text of the the original email contains «  en pièce jointe » (???). The text of the original email must not be analyzed by KMail !!!

Pierre
Comment 3 Laurent Montel 2023-11-03 06:07:31 UTC
I understand french :) (I am french :) )

I tested your text by when I reply it's quoted => it will not show warning.

Could you paste  a screenshot from your composer when you reply and you see warning.

For me I have ">" at the beginning of each line
=> code will not check this text.

so it's ok for me.

thanks
Comment 4 Pierre THOMAS 2023-11-03 07:02:25 UTC
Created attachment 162835 [details]
Screenshot
Comment 5 Pierre THOMAS 2023-11-03 07:07:55 UTC
(In reply to Laurent Montel from comment #3)
> I understand french :) (I am french :) )
> 
> I tested your text by when I reply it's quoted => it will not show warning.
> 
> Could you paste  a screenshot from your composer when you reply and you see
> warning.
> 
> For me I have ">" at the beginning of each line
> => code will not check this text.
> 
> so it's ok for me.
> 
> thanks

Bonjour,

For the email in the screenshot, the warning is displayed after having just clicked "Répondre", nothing else.

The problem is similar for spell checking: the spell checking must absolutely be limited to the text typed for the answer ...

Pierre
Comment 6 Laurent Montel 2023-11-03 07:23:06 UTC
Ok it's html version. not plain text.

Ok I see why there is the problem.
I need to understand how detect quote in html.