login about faq

What happens if chilkat is downloading message from IMAP server which already has ckx-imap-uid header (sent as reply from another chilkat application without clearing the headers ) You don't overwrite the header which leads to wrong value for UID property . how can I get the real UID of the email ?

asked Mar 08 at 17:21

nirnir's gravatar image

nirnir
1


I will investigate. My immediate thought is that, when downloading, Chilkat should automatically remove the ckx-imap* headers found in the email, and then add the correct ones..

link

answered Mar 09 at 09:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

I investigated, and Chilkat does in fact remove/replace the ckx-imap-uid header when downloading email. When Chilkat sends email using a method that passes an email object, the ckx- headers are automatically removed during the sending. However, if a program sends an email using a method that passes a MIME string, then there is no way for the ckx- headers to be removed. Likewise, if a program downloads email using a method that returns a MIME string, then ckx-* headers cannot be added (the method returns the exact MIME received). If that MIME was later loaded into a Chilkat Email object, then maybe that is how the wrong ckx-imap-uid header is present. There's really no way for Chilkat to guard against that..

link

answered Mar 10 at 17:29

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

I'm afraid it doesn't behave as you describe , I can send you logs where you can see that the message is downloaded with the wrong headers inside and then use them to returns wrong UID . When working against exchange server I use chilkat Imap for download and other components to send (EWS). I downloaded message with chilkat IMAP , didn't clear the headers when replying with EWS component .

when I download the message from 'sent Items' folder it gots the original messages ck.. headers instead of the UID of 'sent items' folder .

link

answered Mar 10 at 17:40

nirnir's gravatar image

nirnir
1

Attached example log I perform a search (to narrow results), and download the email body (UID 599) the body contains ckx-imap-uid=1042
the result of CkEmail_GetImapUid will be 1042 instead of 599 .

----IMAP REQUEST---- aaap UID SEARCH TEXT "150480211785909" ----IMAP RESPONSE---- SEARCH 599 aaap OK SEARCH completed. ----IMAP REQUEST---- aaaq UID FETCH 599 (UID FLAGS RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER]) ----IMAP RESPONSE---- 381 FETCH (UID 599 FLAGS (Seen) RFC822.SIZE 182980 BODYSTRUCTURE (("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 10227 196 NIL NIL NIL NIL)("image" "jpeg" ("name" "image001.jpg") "image001.jpg@01D1723C.C0CD76B0" NIL "base64" 3404 NIL NIL NIL NIL)("image" "png" ("name" "image002.png") "image002.png@01D1723C.C0CD76B0" NIL "base64" 174676 NIL NIL NIL NIL)("image" "png" ("name" "image003.png") "image003.png@01D1723D.5BCD5590" NIL "base64" 58588 NIL NIL NIL NIL) "related" ("boundary" "----=_NextPart_000_000D_01D1723D.DA1425A0") NIL "he") BODY[HEADER] {5245} MIME-Version: 1.0 Received: from ant.hostandfound.com (194.213.4.102) by ex1.wee.co.il (194.213.4.53) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sun, 28 Feb 2016 15:36:58 +0200 Received: from mail-wm0-f51.google.com ([74.125.82.51]) by ant.hostandfound.com with esmtps (TLSv1.2:RC4-SHA:128) (Exim 4.85) (envelope-from <shosh812@gmail.com>) id 1aa1Wp-0001Ms-T9 for office@ilanot-ins.co.il; Sun, 28 Feb 2016 15:36:57 +0200 Received: by mail-wm0-f51.google.com with SMTP id l68so5596204wml.0 for office@ilanot-ins.co.il; Sun, 28 Feb 2016 05:36:56 -0800 (PST) DKIM-Signature: v=1; a="rsa-sha256"; c="relaxed/relaxed"; d="gmail.com"; s=20120113; h="from:to:references:in-reply-to:subject:date:message-id:mime-version :thread-index:content-language"; bh="6NCYDKmTbiVJwpbuEmQd9uKEcnjB3BPKmybnoZtV0vw="; b="DFT8owSpCnWRcjVcOSJnfcqQT5+VFDGA7cTvTOkdcx3C4vyWqdWXQDcUvwM21Vfe4Y 7hUBFZIiUn1D01zMf7iGlGw2Lu7SVHGxTcL9Hl5fseGb512FPL4zVTi3Hl1Mokvb7Udp 8MnwHY/Lmhy12NRhfcNKVE5D7WVijCzmmTIl/y7WASsKn30wIxgl/FNwyQLOqjfx8GUo NfV54MoDEr10boBaocf6ep78CaczF0+Ih0oHNjbOmp+iQLxrY4HUCORno2MMAHbalN80 ie8bQHOjmZsCatWC9ZbuHMcq51MUuRKrtZwyP+We10OCqeIrvgaEe23wQq3lndkcxMJU FTMg==" X-Google-DKIM-Signature: v=1; a="rsa-sha256"; c="relaxed/relaxed"; d="1e100.net"; s=20130820; h="x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:thread-index:content-language"; bh="6NCYDKmTbiVJwpbuEmQd9uKEcnjB3BPKmybnoZtV0vw="; b="cEqL56utcMYeqetDl0XOHNzBJVnO5dKesaIH8KbFEdVgWIJQolXrUubf04//UoB++n cRu4fdoK6Y4BIaUWSiGs8ppj1HMbCQqNVBX/XY4rkUKYTKtKDUq9HMXgUUAYOFojqP0X z0SjTJLdeYWHoOe+wcJCeuT9/OT2bMYZB3Ld1U7cnzKKeS1QfqGlkvMKIU7vPVn/Yezx /iTsMx8nzS/rMjQ8B4ypjc70v0FPISkTCHmnjJg5v2QWEMfMGs7sJR5+Z1F0ePNasKjI YHhoqdRlC6qUnSDkFwM/Jyr0KeAVZcE9uu/z/5PKktSX5RXzwRCiPP9acaQntYwcdwFx M7QQ==" X-Gm-Message-State: AD7BkJIbwWZblsggBPwGDUaa+OlJZfvO7JcHptKazDL0U/YLgHaWbjXBJsxdpkKoWtRfQw== X-Received: by 10.194.52.8 with SMTP id p8mr9845628wjo.62.1456666615721; Sun, 28 Feb 2016 05:36:55 -0800 (PST) Received: from shoshPC (bzq-159-15.red.bezeqint.net. [62.219.159.15]) by smtp.gmail.com with ESMTPSA id za6sm21167584wjc.18.2016.02.28.05.36.53 for office@ilanot-ins.co.il (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Feb 2016 05:36:55 -0800 (PST) From: =?utf-8?B?15DXmdec16DXldeqINeR15nXmNeV15cgLSDXqdeV16kg15vXlNef?= office@ilanot-ins.co.il References: 3EC0381423A9B24EA39F7150B61F5BF001160A09F5B9@ex2007 In-Reply-To: 3EC0381423A9B24EA39F7150B61F5BF001160A09F5B9@ex2007 Subject: =?utf-8?B?Rlc6IEZXOiAxNTA0ODAyMTE3ODU5MDkg15LXmdec15PXqA==?= Date: Mon, 7 Mar 2016 11:32:15 +0000 Message-ID: B9B6738109C9AA63CA23EF9949C41A0B213A9CEF69DB85FAAA@RAVIDI Content-Type: multipart/related; boundary="----=_NextPart_000_000D_01D1723D.DA1425A0" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQFA9tG3e/uAKLyNBuK2IftATHMdfaBibEsA Content-Language: he Received-SPF: pass (ant.hostandfound.com: domain of gmail.com designates 74.125.82.51 as permitted sender) client-ip=74.125.82.51; envelope-from="shosh812@gmail.com"; helo="mail-wm0-f51.google.com"; X-SPF-Result: ant.hostandfound.com: domain of gmail.com designates 74.125.82.51 as permitted sender Authentication-Results: ant.hostandfound.com; dmarc="pass header.from=gmail.com" X-Filter-ID: s0sct1PQhAABKnZB5plbIfdo6cFPOEUTvlgORl3cx2izkyw29IA3goldT1SWwpoD71jl0Ci8pqWV LNmnT6qyaq/UHN5uhUjtFCYBM4OjhdJRTHSwqIumVPvyPAwhtlRow/xYY8uWe4a85FlWYKjWDRxp bCnx53YDr5F5f0urN18yXkPklx6nRU/jevpW/Rp90IHzfhzemI1M29YpUjAvOoe75ArugXvVeg3K mNPwaM21aCQmIin0wbAWjNydzX45HHASJNUmoOHSoqgqxfHmWQ31THFWbXLtHRxKu0JweTuDCVCs a26IgoEdctm0t4hbISxPjtmLU7IJwhwfgKQssG6tWNRqpIwidKmyu/4QaCQXo9V7hohwokSGk8SK jwIxXgW6JEn8pLPZRetGFIGG7nYxeSKTV9a4O7nnVoos07Q0bRdiIM9FFlfh4Bu9E5FcEwWssxFi 20lLukGDUtJSMCgglX1HchuWh5IXh722UOKF3ZANia0xbKACNEA577lfsJlqK9NlJTTaiULhM2mz AMbs+W7ZZnDanUanwir9pdDZGwdPWicWu2HdyoA2cbAMqSOD3f2juMJSWcldfhvM5Q== X-Report-Abuse-To: spam@ant.hostandfound.com X-Filter-Fingerprint: IFrWXGses7OKB5S5G8/dJRIJ6eKlkZ0KuMH8N4fSCaFA3cTUQ1R++keuE7RDJ8Kg3RbMLUalw1oC mj99/u+Pol7jVop6A9jB5e0iklqxH6Kok1JBYnOLzfRIhlEHQynLUpndEJ0YoaLytXXo8BMTaX2p Mk7LBarWD9Fj4R3eIu6hRW81gsiK49JiuSr1ZvUvLXDeuFcjvKlYdwLNF4uyRJ6jB2zM4iaFfVNC PlXIN7PkWYsLPMmWrsjCizhiEGsW Authentication-Results: hostandfound.com; spf="pass smtp.mailfrom=shosh812@gmail.com" Authentication-Results: hostandfound.com; dkim="pass header.i=gmail.com" X-SpamExperts-Class: ham X-SpamExperts-Evidence: SB/hostandfound_com (7.77070402692e-05) X-Recommended-Action: accept Return-Path: shosh812@gmail.com X-MS-Exchange-Organization-AuthSource: ex1.wee.co.il X-MS-Exchange-Organization-AuthAs: Anonymous ckx-imap-internaldate: 28-Feb-2016 15:36:58 +0200 ckx-imap-uid: 1042 ckx-imap-isUid: YES ckx-imap-seen: YES ckx-imap-answered: NO ckx-imap-deleted: NO ckx-imap-flagged: NO ckx-imap-draft: NO ckx-imap-flags: Seen ckx-imap-numAttach: 0 To: benny@elifim.co.il RT_trk74.1: PGxpbmtzIGxha19yZWNpZD0iODg4ODkzIiBwb2xtYWluX3JlY2lkPSIwIiBkb2NfcmVjaWQ9IjAiIGNsYWltX3JlY2lkPSIwIiBwcm9jY2Vzc19yZWNpZF9yZWNpZD0iMCIgaHR6X3JlY2lkPSIwIi8+ RTGlobalK: 43032F1036C92EFB file-uid: 6024991

) aaaq OK FETCH completed.

link

answered Mar 10 at 18:11

nirnir's gravatar image

nirnir
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×175
×7

Asked: Mar 08 at 17:21

Seen: 410 times

Last updated: Mar 10 at 18:11

powered by OSQA