Questions tagged [imapx]

ImapX 2 is a crossplatform IMAP library for .NET, supporting SSL/TLS, OAuth2 and all major GMail IMAP extensions. It's the only IMAP library which supports all .Net 2.0 - 4.5, Mono and Windows Phone 7.1 and 8.0.

42 questions
1
vote
2 answers

C# ImapX 2 email check code seems very slow

I am using ImapX 2 for my C# program to check for emails in Gmail account, but the whole process seems to take too much time, I'll explain in the code: public static string checkForSubject() { ImapX.ImapClient client = new ImapX.ImapClient(); …
Sartheris Stormhammer
  • 2,534
  • 8
  • 37
  • 81
1
vote
1 answer

Unable to retrieve email folders on specific mail server.. possible causes

I am failing to retrieve the folders of my email account using ImapX: ImapX.ImapClient m_ImapClient = new ImapX.ImapClient( ImapServerAddress, (int) ImapServerPort, System.Security.Authentication.SslProtocols.Ssl3, false); m_ImapClient.Connect(); …
AlexandruC
  • 3,527
  • 6
  • 51
  • 80
1
vote
2 answers

How to mark mails as read using ImapX lib? C#

I'm using the free lib ImapX and I'm making an application to mark all my mails as receieved. Can anyone lend me a hand? EDIT: Nevermind, found it out myself. They get marked as read when you process them.
0
votes
1 answer

Gmail IMAP - Attachments not appearing

I have been working on an IMAP client to get emails from Gmail. My application worked fine until about an hour ago, when attachments stopped being retrieved. The connection and messaging is being handled by imapX. Connection is OKAY Login is…
Matt Canty
  • 2,395
  • 5
  • 35
  • 50
0
votes
2 answers

imapX illegal characters in path

PLEASE NOTE, I have found a work around which actually works out better for me. That is to use the byte stream and decode rather than save at all. Therefore answers are non-essential but I would still be interested in any comments people…
Matt Canty
  • 2,395
  • 5
  • 35
  • 50
0
votes
1 answer

it is possible get email list using imapX?

I downloaded the ImapX library and I need know it is possible get email list using imapx? if not, what is the best quick and fast way to do it? the google API looks like a bit confusing. and I need it to winforms application.
The Mask
  • 17,007
  • 37
  • 111
  • 185
0
votes
0 answers

You cannot call a method on a null-valued expression! ImapX, Powershell

I am trying to check the latest email of my Gmail inbox using IMAP. But for any reason here I am facing a library issue. Whatever library version I use the same issue comes. I am trying this code for any reason it's showing the following errors: GAC…
0
votes
0 answers

can not read attached files where i have have embedded file with ImapX

I have code that read email attachments, embedded and not embedded, but if have both in the same email, only read embedded attachment. Any help will be appreciated.. My code. { string strFiltro = String.Format("SINCE {0}-{1}-{2} BEFORE…
KlingCan
  • 29
  • 5
0
votes
1 answer

Powershell and imapX script to navigate subfolders

My Task: To build an automated task to periodically save gmail report attachments to Win10 folders for further analysis. This is currently done as a manual process. The platform is a local Win10-PC and does not use Outlook365. Local Outlook.exe…
Al Perkins
  • 11
  • 2
0
votes
0 answers

Using SendAndReceive() with ImapX

I am trying to use the ImapX DLL effectively. I have got $client.Folders.Inbox.Search() and $client.Folders.Inbox.Messages.Download() to work for downloading messages but they're very slow. I was looking into using $client.SendAndReceive() instead.…
Maylife
  • 37
  • 6
0
votes
0 answers

PowerShell parsing email from html

I'm trying to use you impx.dll via PowerShell and am have difficulties trying to parse out the html. Are there any examples anyon can help me with or point me in the right direction. I am new to powershell and need any help I can get. - Thanks in…
0
votes
1 answer

How to run a PowerShell / ImapX script manually or in Task Scheduler?

I'm running this script in PowerShell ISE and it works great and it downloads the attachments to the folder I've specified. But if I run it manually in PowerShell using PS C:\tmp> .\pdftofolder.ps1 it doesn't download the attachments and the log…
Lars
  • 731
  • 1
  • 5
  • 4
0
votes
2 answers

decode Subject of mail using ImapX lib?

I have problem when get Subject of mail. Problem is: if subject is English it is can get good but if subject is vietnamese (my language) it return null;
giaosudau
  • 2,211
  • 6
  • 33
  • 64
0
votes
1 answer

ImapX - unable to redownload letter with Message.Download()

I want to get headers of letters from mailbox and then redownload some letters completely: static void Main(string[] args) { using (ImapX.ImapClient imap = new ImapX.ImapClient("imap.gmail.com", 993, true)) { if (imap.Connect()) …
Powercoder
  • 695
  • 1
  • 5
  • 25
0
votes
1 answer

ImapX | vb.net - Attachments colection is empty even id the mail actually have attachments

I'm trying to download and safe the attachments form an email message, but the message come with the Attachments collection empty and it doesn't make any sense. Everything else is working properly though. I can read emails and see all the…