message: retain non-file flags when moving
The content-flags won't change, and the unread-flag can be re-calculated. Add a unit test, and some small doc improvements. Fixes #2831.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2022-2023 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
** Copyright (C) 2022-2025 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
@ -86,7 +86,7 @@ enum struct MessageFlagCategory {
|
||||
};
|
||||
|
||||
/**
|
||||
* Info about invidual message flags
|
||||
* Info about individual message flags
|
||||
*
|
||||
*/
|
||||
struct MessageFlagInfo {
|
||||
@ -373,9 +373,6 @@ flags_maildir_file(Flags flags)
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Return flags, where flags = new_flags but with unmutable_flag in the
|
||||
* result the same as in old_flags
|
||||
|
||||
Reference in New Issue
Block a user