Пример #1
0
 public virtual void DownloadMessage(System.IO.Stream stream, string uid, bool setseen)
 {
     GetMessages(uid, uid, true, false, setseen, (message, size, headers) => {
         Utilities.CopyStream(message, stream, size);
         return(null);
     });
 }
Пример #2
0
 public virtual void DownloadMessage(System.IO.Stream stream, int index, bool setseen)
 {
     GetMessages((index + 1).ToString(), (index + 1).ToString(), false, false, setseen, (message, size, headers) => {
         Utilities.CopyStream(message, stream, size);
         return(null);
     });
 }