Event args for the IMailFolder.MessageFlagsChanged event.
Event args for the IMailFolder.MessageFlagsChanged event.
Inheritance: MessageEventArgs
Exemplo n.º 1
18
		void MessageFlagsChanged (object sender, MessageFlagsChangedEventArgs e)
		{
			if (e.Index < messages.Count) {
				var info = messages[e.Index];
				var node = map[info];

				info.Flags = e.Flags;

				UpdateMessageNode (node);
			}
		}
Exemplo n.º 2
1
 protected virtual void InboxOnMessageFlagsChanged(object sender, MessageFlagsChangedEventArgs messageFlagsChangedEventArgs)
 {
     if (messageFlagsChangedEventArgs.Flags.HasFlag(MessageFlags.Seen))
     {
         MessageSeen?.Invoke(sender, messageFlagsChangedEventArgs);
     }
 }
Exemplo n.º 3
0
		void MessageFlagsChanged_TaskThread (object sender, MessageFlagsChangedEventArgs e)
		{
			// proxy back to the main thread
			Invoke (new EventHandler<MessageFlagsChangedEventArgs> (MessageFlagsChanged), sender, e);
		}
Exemplo n.º 4
0
		/// <summary>
		/// Raise the message flags changed event.
		/// </summary>
		/// <remarks>
		/// Raises the message flags changed event.
		/// </remarks>
		/// <param name="args">The message flags changed event args.</param>
		protected virtual void OnMessageFlagsChanged (MessageFlagsChangedEventArgs args)
		{
			var handler = MessageFlagsChanged;

			if (handler != null)
				handler (this, args);
		}
Exemplo n.º 5
0
 private async void ImapIdlerOnMessageSeen(object sender, MessageFlagsChangedEventArgs eventArgs)
 {
     await HandleMessageSeen(eventArgs.Index);
 }