Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8488499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:33:14+00:00 2026-06-10T21:33:14+00:00

I am preparing the Mail iOS application using the MailCore framework. While composing the

  • 0

I am preparing the Mail iOS application using the MailCore framework. While composing the new mail, How I set the UID for my mails, as mails are sending but it is not moves or copied to the sent box or to the draft folder. When I copy or move the message it get crashed on the line..

NSString *uid = [msg uid];

At the CTCoreFolder Class, in these method ..

- (void)copyMessage: (NSString *)path forMessage:(CTCoreMessage *)msg
- (void)moveMessage: (NSString *)path forMessage:(CTCoreMessage *)msg

as I am creating and sending the message by this way….

CTCoreMessage *msg = [[CTCoreMessage alloc] init];
 CTCoreAddress *fromAddress = [[CTCoreAddress alloc] initWithName:@"name" email:@"name@mailserver.com"];
  CTCoreAddress *address3 = [[CTCoreAddress alloc] initWithName:@"person" email:@"person@rcscentralmail.com"];

 [msg setFrom:[NSSet setWithObject:fromAddress]];
    [msg setTo:[NSSet setWithObject:address3]];
[msg setSubject:@"Test simple appfdgfghbfghb"];

[CTSMTPConnection sendMessage:msg server:@"mail.mailserver.com" username:@"abc@mailserver.com"
                         password:@"abcdef" port:587 useTLS:NO useAuth:YES];

After calling Connecting to server I am calling move or copy method like ::

[folder moveMessage:@"INBOX.Sent" forMessage:message];

Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:33:16+00:00Added an answer on June 10, 2026 at 9:33 pm

    Thanks James for your support… I got the solution, You can’t set the UID, the UID is only assigned by the server. You’ll need to append the message to the Sent or Draft mailboxes, this can be done using -(BOOL)append:(CTCoreMessage*) which is on CTCoreFolder. However this method is only in the newest version of MailCore. The changeset can be seen here:

    https://github.com/mronge/MailCore/commit/1f64ed5b56fc995613f8fc2dd33d3ff45fe140d0
    

    Thanks to Matt Ronge.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am preparing the iOS(iPhone and iPad) mail application using the MailCore framework. I
I am preparing an application. IDHTTP: Using the Get method. But there are some
I am preparing Info.plist for my iOS application. I want to carefully set each
I'm preparing a set of reports using open source ReportLab. The reports contain a
I am preparing a registration page using JSF/Spring webflow&mvc application. I have added two
I'm preparing for an interview and i'm new to cakephp, while searching in the
While preparing to deploy a MongoDB powered site to a clients web server, their
I am preparing to start on a new short-term contract (1-2 months) that involves
While preparing for the SCJP-6 exam I faced with a difficult issue. I can’t
I am preparing a script. I am using AJAX(load()) with jQuery. I am getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.