Results 1 to 3 of 3

Thread: Import from Emails inbox to custom folder import only one record

  1. #1
    AshVardanyan is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Question Import from Emails inbox to custom folder imports only one record

    HI everyone,

    I have a problem with importing emails form inbox of the emails module. If i check emails and than from inbox folder select 2 or more emails than drag them to my created 'import' folder and in the dialog box i select the 'Delete message from server' checkbox sugar only import the first email, but if the checkbox is not checked the import is done correctly.

    I am using 5.2a version ,the email is Gmail and the IMAP protocol.

    Please can anybody help me?
    Last edited by AshVardanyan; 2009-03-09 at 12:00 PM.

  2. #2
    AshVardanyan is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Default Re: Import from Emails inbox to custom folder import only one record

    And also if i select some emails and do right click import to sugar it works correctly, but it drops to My Emails folder. And same if I drag and drop to My Emails it do the same only import the first email.
    I think this is not a problem of the mail account or protocol so please if anybody have any ideas...

  3. #3
    AshVardanyan is offline Member
    Join Date
    Feb 2009
    Posts
    13

    Smile Re: Import from Emails inbox to custom folder import only one record

    I have found solution but still with some problems.

    First of all I realize that the drag and drop from INBOX to custom folder is moving the email not importing.

    So in the modules\Emails\javascript\ajax.js find getImportAction : function(ret) and at the bottom of this function find line

    AjaxObject.startRequest(callbackStatusForImport, urlStandard + '&emailUIAction=' + action + uids + "&ieId=" + ieId + "&mbox=" + mbox +
    get + "&parent_id=" + parent_id + "&parent_type=" + parent_type + '&delete='+ serverDelete);


    and change the last &delete='+serverDelete to &delete=false'

    than at the very bottom of the function add this line

    if(serverDelete) SUGAR.email2.contextMenus.markDeletedNoPromt();

    In the EmailUI.js copy markDeleted() function and name it markDeletedNoPromt() and also remove the if statement.

    Actually what i do is uncheck the delete from server check box so the import is done correctly and multiple emails are imported and than delete the selected emails.

    And now problem:
    The hole operation is done correctly but emails are still shown and you must refresh or synchronize to see that they are gone. I think the problem is that this two are asynchronous Ajax calls.

    If anybody have any other solution or some correction to this solution please reply.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. import drops first record
    By cerhorn in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-10-12, 05:52 PM
  2. Replies: 0
    Last Post: 2007-08-31, 12:31 PM
  3. CSV import - record limit
    By nkendrick in forum General Discussion
    Replies: 10
    Last Post: 2006-10-30, 11:18 AM
  4. Contact import record limit
    By rbisaccia in forum Help
    Replies: 2
    Last Post: 2006-04-18, 02:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •