Comments on: Uploading emails using IMAP https://www.limilabs.com/blog/uploading-emails-using-imap Using Limilabs .net components Sat, 16 Aug 2014 10:08:46 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Limilabs support https://www.limilabs.com/blog/uploading-emails-using-imap#comment-567190 Sun, 18 Aug 2013 10:25:11 +0000 http://www.limilabs.com/blog/?p=379#comment-567190 In reply to Curious.

@Curious,

It depends on the server, and unfortunately there is no IMAP or SMTP protocol extension, that would allow to check, if the server does that.

]]>
By: Curious https://www.limilabs.com/blog/uploading-emails-using-imap#comment-566644 Wed, 14 Aug 2013 08:01:57 +0000 http://www.limilabs.com/blog/?p=379#comment-566644 How do you know if the server creates a copy of the message and places it in sent items automatically when you use limilabs SMTP send ?

I want to know if there is a need to upload my message or not in the sent items folder .

Thanks a lot !

]]>
By: Limilabs support https://www.limilabs.com/blog/uploading-emails-using-imap#comment-189800 Wed, 31 Oct 2012 20:13:52 +0000 http://www.limilabs.com/blog/?p=379#comment-189800 In reply to Benjamin Graf.

@Benjamin,

Most likely this server refuses messages bigger than that size.
Please also disable your antivirus software as it may be the cause of your problems.

What is the exact error message/exception type/stacktrace?

]]>
By: Benjamin Graf https://www.limilabs.com/blog/uploading-emails-using-imap#comment-189505 Wed, 31 Oct 2012 14:45:07 +0000 http://www.limilabs.com/blog/?p=379#comment-189505 I wrote a short program that downloads the mails from one server to upload them on another server.
But sometimes when the attachment of the mail is greater than 2MB the upload to the new server fails. I create the mail from an eml file. Is there a known workaround to avoid that error?

]]>
By: Bruno https://www.limilabs.com/blog/uploading-emails-using-imap#comment-63237 Sun, 07 Oct 2012 02:24:27 +0000 http://www.limilabs.com/blog/?p=379#comment-63237 Thanks! That worked beautifully.

]]>
By: Limilabs support https://www.limilabs.com/blog/uploading-emails-using-imap#comment-62622 Sat, 06 Oct 2012 23:02:45 +0000 http://www.limilabs.com/blog/?p=379#comment-62622 In reply to Bruno.

@Bruno,

You can apply Gmail labels using Imap.GmailLabelMessageByUID method:

long uploaded = (long)client.UploadMessage("INBOX", email);
imap.GmailLabelMessageByUID(uploaded, 
    new List<string> { @"\Starred", "My label"});

References: Label message with Gmail system label, Label message with Gmail label.

]]>
By: Bruno https://www.limilabs.com/blog/uploading-emails-using-imap#comment-62459 Sat, 06 Oct 2012 21:54:28 +0000 http://www.limilabs.com/blog/?p=379#comment-62459 I have successfully uploaded emails to my GMail inbox using the code above, but I haven’t yet been able to apply GMail labels during the upload. Could you help me out?
Thanks,
Bruno.

]]>
By: Limilabs support https://www.limilabs.com/blog/uploading-emails-using-imap#comment-3129 Mon, 27 Feb 2012 22:38:39 +0000 http://www.limilabs.com/blog/?p=379#comment-3129 In reply to Michael.

@Michael,

You are right: when you send an email using Gmail’s SMTP server it automatically appears in “Sent Mail” folder.

]]>
By: Michael https://www.limilabs.com/blog/uploading-emails-using-imap#comment-3106 Mon, 27 Feb 2012 17:22:35 +0000 http://www.limilabs.com/blog/?p=379#comment-3106 Ok, I see. Thanks. I also found that sending through Gmails SMTP server did the “copying” to the sent messages folder automatically, so no problem there.

]]>
By: Limilabs support https://www.limilabs.com/blog/uploading-emails-using-imap#comment-2351 Mon, 20 Feb 2012 17:45:54 +0000 http://www.limilabs.com/blog/?p=379#comment-2351 In reply to Michael.

@Michael,

By default, uploading to ‘sent’ folder should not send the message. RFC3501 is very precise about this “The APPEND command is not used for message delivery, because it does not provide a mechanism to transfer [SMTP] envelope information.”

]]>