Bug 460756

Summary: Converting to sieve filters should use actual folder names instead of translated ones
Product: [Applications] kmail2 Reporter: David Redondo <kde>
Component: sieveAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: Git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.21.3

Description David Redondo 2022-10-20 11:15:41 UTC
SUMMARY
The generated rules use translated folder names for example in German 'Posteingang' instead of INBOX
STEPS TO REPRODUCE
1. Convert filter to sieve


OBSERVED RESULT
generated rule contains    
 
fileinto "Posteingang/...";

Server complains 
failed to store into mailbox 'Posteingang/...': Mailbox doesn't exist: Posteingang/...

EXPECTED RESULT
it should say 
fileinto "INBOX/...";

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

ADDITIONAL INFORMATION
Comment 1 Laurent Montel 2022-10-20 11:30:11 UTC
Indeed ! I will work on it.
Comment 2 Laurent Montel 2022-10-20 11:50:48 UTC
Hi,
It seems that it's the imap server which send this info.
Which type of imap server do you use ?

In kmail it's translated too ?
Comment 3 Laurent Montel 2022-10-23 17:47:35 UTC
Git commit bc0ca61528eecaa85e3ee8afe7be62e74eec0801 by Laurent Montel.
Committed on 23/10/2022 at 17:46.
Pushed by mlaurent into branch 'release/22.08'.

Fix bug 460756:  Converting to sieve filters should use actual folder names instead of translated ones

FIXED-IN: 5.21.3

M  +1    -1    src/filter/filteractions/filteractioncopy.cpp
M  +1    -1    src/filter/filteractions/filteractionmove.cpp
M  +28   -0    src/util/mailutil.cpp
M  +1    -0    src/util/mailutil.h

https://invent.kde.org/pim/mailcommon/commit/bc0ca61528eecaa85e3ee8afe7be62e74eec0801