mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-10 10:55:08 +00:00
feat(mail): delay or disable automatic mark message as read
Fixes #1585
This commit is contained in:
@@ -119,6 +119,7 @@
|
||||
SOGoMailDisplayRemoteInlineImages = "never";
|
||||
SOGoMailCertificateEnabled = YES;
|
||||
|
||||
SOGoMailAutoMarkAsReadDelay = "0";
|
||||
SOGoMailAutoSave = "5";
|
||||
|
||||
SOGoCalendarShouldDisplayWeekend = YES;
|
||||
|
||||
@@ -148,6 +148,10 @@ extern NSString *SOGoWeekStartFirstFullWeek;
|
||||
- (void) setMailDisplayRemoteInlineImages: (NSString *) newValue;
|
||||
- (NSString *) mailDisplayRemoteInlineImages;
|
||||
|
||||
|
||||
- (void) setMailAutoMarkAsReadDelay: (int) newValue;
|
||||
- (int) mailAutoMarkAsReadDelay;
|
||||
|
||||
- (void) setMailAutoSave: (NSString *) newValue;
|
||||
- (NSString *) mailAutoSave;
|
||||
|
||||
|
||||
@@ -18,10 +18,12 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSData.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSTimeZone.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import <NGExtensions/NGBase64Coding.h>
|
||||
#import <NGImap4/NSString+Imap4.h>
|
||||
#import <NGObjWeb/WOApplication.h>
|
||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||
@@ -618,6 +620,16 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
||||
return [self stringForKey: @"SOGoMailDisplayRemoteInlineImages"];
|
||||
}
|
||||
|
||||
- (void) setMailAutoMarkAsReadDelay: (int) newValue
|
||||
{
|
||||
[self setInteger: newValue forKey: @"SOGoMailAutoMarkAsReadDelay"];
|
||||
}
|
||||
|
||||
- (int) mailAutoMarkAsReadDelay
|
||||
{
|
||||
return [self integerForKey: @"SOGoMailAutoMarkAsReadDelay"];
|
||||
}
|
||||
|
||||
- (void) setMailAutoSave: (NSString *) newValue
|
||||
{
|
||||
[self setObject: newValue forKey: @"SOGoMailAutoSave"];
|
||||
|
||||
Reference in New Issue
Block a user