Event args for the IMailFolder.MessageFlagsChanged event.
Event args for the IMailFolder.MessageFlagsChanged event.
Inheritance: MessageEventArgs
Ejemplo 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);
			}
		}
Ejemplo n.º 2
1
 protected virtual void InboxOnMessageFlagsChanged(object sender, MessageFlagsChangedEventArgs messageFlagsChangedEventArgs)
 {
     if (messageFlagsChangedEventArgs.Flags.HasFlag(MessageFlags.Seen))
     {
         MessageSeen?.Invoke(sender, messageFlagsChangedEventArgs);
     }
 }
Ejemplo n.º 3
0
		void MessageFlagsChanged_TaskThread (object sender, MessageFlagsChangedEventArgs e)
		{
			// proxy back to the main thread
			Invoke (new EventHandler<MessageFlagsChangedEventArgs> (MessageFlagsChanged), sender, e);
		}
Ejemplo 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);
		}
Ejemplo n.º 5
0
 private async void ImapIdlerOnMessageSeen(object sender, MessageFlagsChangedEventArgs eventArgs)
 {
     await HandleMessageSeen(eventArgs.Index);
 }