librelist archives

« back to archive

rfc822 issue

rfc822 issue

From:
Davide Gullo
Date:
2013-02-08 @ 17:45
Hello,
do you have notice about some issue on the rfc822 method?
See here:

- (NSString *)rfc822 {

    char *result = NULL;

    NSString *nsresult;

    int r = mailimap_fetch_rfc822([self imapSession], [self sequenceNumber],
&result);

    if (r == MAIL_NO_ERROR) {

        nsresult = [[NSString alloc] initWithCString:result encoding:
NSUTF8StringEncoding];

    } else {

        self.lastError = MailCoreCreateErrorFromIMAPCode(r);

        return nil;

    }

    mailimap_msg_att_rfc822_free(result);

    return [nsresult autorelease];

}


*result* is always filled from mailimap_fetch_rfc822
but then *nsresult* is empty.
Maybe it can be an issue related to NSUTF8StringEncoding?
Someone can help me?

Thanks,
Davide

-- 
Davide Gullo, Consulente Web
http://www.m4ss.net
gullo@m4ss.net

Re: [mailcore] rfc822 issue

From:
Matt Ronge
Date:
2013-02-12 @ 04:24
Hey,

How did you get the CTCoreMessage that you called rfc822 on?
--
Matt Ronge

iOS App Consultant
Central Atomics Inc.
http://www.centralatomics.com







On Feb 8, 2013, at 11:45 AM, Davide Gullo <gullo@m4ss.net> wrote:

> Hello,
> do you have notice about some issue on the rfc822 method?
> See here:
> 
> - (NSString *)rfc822 {
>     char *result = NULL;
>     NSString *nsresult;
>     int r = mailimap_fetch_rfc822([self imapSession], [self 
sequenceNumber], &result);
>     if (r == MAIL_NO_ERROR) {
>         nsresult = [[NSString alloc] initWithCString:result 
encoding:NSUTF8StringEncoding];
>     } else {
>         self.lastError = MailCoreCreateErrorFromIMAPCode(r);
>         return nil;
>     }
>     mailimap_msg_att_rfc822_free(result);
>     return [nsresult autorelease];
> }
> 
> 
> result is always filled from mailimap_fetch_rfc822
> but then nsresult is empty.
> Maybe it can be an issue related to NSUTF8StringEncoding?
> Someone can help me?
> 
> Thanks,
> Davide
> 
> -- 
> Davide Gullo, Consulente Web
> http://www.m4ss.net
> gullo@m4ss.net

Re: [mailcore] rfc822 issue

From:
Davide Gullo
Date:
2013-02-12 @ 09:19
Hi Matt,
by CTCoreFolder:

NSArray*list=messagesFromUID:startUID to:endUID withFetchAttributes:
CTFetchAttrDefaultsOnly;

But *not for any message* in the above list it occurs, only for someone
messages.
I don't know why...





2013/2/12 Matt Ronge <mronge@mronge.com>

> Hey,
>
> How did you get the CTCoreMessage that you called rfc822 on?
> --
> Matt Ronge
>
> iOS App Consultant
> Central Atomics Inc.
> http://www.centralatomics.com
>
>
>
>
>
>
>
> On Feb 8, 2013, at 11:45 AM, Davide Gullo <gullo@m4ss.net> wrote:
>
> > Hello,
> > do you have notice about some issue on the rfc822 method?
> > See here:
> >
> > - (NSString *)rfc822 {
> >     char *result = NULL;
> >     NSString *nsresult;
> >     int r = mailimap_fetch_rfc822([self imapSession], [self
> sequenceNumber], &result);
> >     if (r == MAIL_NO_ERROR) {
> >         nsresult = [[NSString alloc] initWithCString:result
> encoding:NSUTF8StringEncoding];
> >     } else {
> >         self.lastError = MailCoreCreateErrorFromIMAPCode(r);
> >         return nil;
> >     }
> >     mailimap_msg_att_rfc822_free(result);
> >     return [nsresult autorelease];
> > }
> >
> >
> > result is always filled from mailimap_fetch_rfc822
> > but then nsresult is empty.
> > Maybe it can be an issue related to NSUTF8StringEncoding?
> > Someone can help me?
> >
> > Thanks,
> > Davide
> >
> > --
> > Davide Gullo, Consulente Web
> > http://www.m4ss.net
> > gullo@m4ss.net
>
>


-- 
Davide Gullo, Consulente Web
http://www.m4ss.net
gullo@m4ss.net

Re: [mailcore] rfc822 issue

From:
Matt Ronge
Date:
2013-02-12 @ 16:26
Huh, interesting. Does it always seem to be the same message?
--
Matt Ronge

iOS App Consultant
Central Atomics Inc.
http://www.centralatomics.com







On Feb 12, 2013, at 3:19 AM, Davide Gullo <gullo@m4ss.net> wrote:

> Hi Matt,
> by CTCoreFolder:
> 
> NSArray*list=messagesFromUID:startUID to:endUID 
withFetchAttributes:CTFetchAttrDefaultsOnly;
> 
> But not for any message in the above list it occurs, only for someone messages. 
> I don't know why...
> 
> 
> 
> 
> 
> 
> 
> 
> 2013/2/12 Matt Ronge <mronge@mronge.com>
> Hey,
> 
> How did you get the CTCoreMessage that you called rfc822 on?
> --
> Matt Ronge
> 
> iOS App Consultant
> Central Atomics Inc.
> http://www.centralatomics.com
> 
> 
> 
> 
> 
> 
> 
> On Feb 8, 2013, at 11:45 AM, Davide Gullo <gullo@m4ss.net> wrote:
> 
> > Hello,
> > do you have notice about some issue on the rfc822 method?
> > See here:
> >
> > - (NSString *)rfc822 {
> >     char *result = NULL;
> >     NSString *nsresult;
> >     int r = mailimap_fetch_rfc822([self imapSession], [self 
sequenceNumber], &result);
> >     if (r == MAIL_NO_ERROR) {
> >         nsresult = [[NSString alloc] initWithCString:result 
encoding:NSUTF8StringEncoding];
> >     } else {
> >         self.lastError = MailCoreCreateErrorFromIMAPCode(r);
> >         return nil;
> >     }
> >     mailimap_msg_att_rfc822_free(result);
> >     return [nsresult autorelease];
> > }
> >
> >
> > result is always filled from mailimap_fetch_rfc822
> > but then nsresult is empty.
> > Maybe it can be an issue related to NSUTF8StringEncoding?
> > Someone can help me?
> >
> > Thanks,
> > Davide
> >
> > --
> > Davide Gullo, Consulente Web
> > http://www.m4ss.net
> > gullo@m4ss.net
> 
> 
> 
> 
> -- 
> Davide Gullo, Consulente Web
> http://www.m4ss.net
> gullo@m4ss.net

Re: [mailcore] rfc822 issue

From:
Davide Gullo
Date:
2013-02-12 @ 16:52
Yes, always the same!
I checked the UIDs in AllMail folder and they are always the same.
Yesterday evening I started to trace the wrong messages (with wrong
rfc822), maybe later I will be able to send you a report.

Regards,
Davide


2013/2/12 Matt Ronge <mronge@mronge.com>

> Huh, interesting. Does it always seem to be the same message?
> --
> Matt Ronge
>
> iOS App Consultant
> Central Atomics Inc.
> http://www.centralatomics.com
>
>
>
>
>
>
>
> On Feb 12, 2013, at 3:19 AM, Davide Gullo <gullo@m4ss.net> wrote:
>
> > Hi Matt,
> > by CTCoreFolder:
> >
> > NSArray*list=messagesFromUID:startUID to:endUID
> withFetchAttributes:CTFetchAttrDefaultsOnly;
> >
> > But not for any message in the above list it occurs, only for someone
> messages.
> > I don't know why...
> >
> >
> >
> >
> >
> >
> >
> >
> > 2013/2/12 Matt Ronge <mronge@mronge.com>
> > Hey,
> >
> > How did you get the CTCoreMessage that you called rfc822 on?
> > --
> > Matt Ronge
> >
> > iOS App Consultant
> > Central Atomics Inc.
> > http://www.centralatomics.com
> >
> >
> >
> >
> >
> >
> >
> > On Feb 8, 2013, at 11:45 AM, Davide Gullo <gullo@m4ss.net> wrote:
> >
> > > Hello,
> > > do you have notice about some issue on the rfc822 method?
> > > See here:
> > >
> > > - (NSString *)rfc822 {
> > >     char *result = NULL;
> > >     NSString *nsresult;
> > >     int r = mailimap_fetch_rfc822([self imapSession], [self
> sequenceNumber], &result);
> > >     if (r == MAIL_NO_ERROR) {
> > >         nsresult = [[NSString alloc] initWithCString:result
> encoding:NSUTF8StringEncoding];
> > >     } else {
> > >         self.lastError = MailCoreCreateErrorFromIMAPCode(r);
> > >         return nil;
> > >     }
> > >     mailimap_msg_att_rfc822_free(result);
> > >     return [nsresult autorelease];
> > > }
> > >
> > >
> > > result is always filled from mailimap_fetch_rfc822
> > > but then nsresult is empty.
> > > Maybe it can be an issue related to NSUTF8StringEncoding?
> > > Someone can help me?
> > >
> > > Thanks,
> > > Davide
> > >
> > > --
> > > Davide Gullo, Consulente Web
> > > http://www.m4ss.net
> > > gullo@m4ss.net
> >
> >
> >
> >
> > --
> > Davide Gullo, Consulente Web
> > http://www.m4ss.net
> > gullo@m4ss.net
>
>


-- 
Davide Gullo, Consulente Web
http://www.m4ss.net
gullo@m4ss.net

Re: [mailcore] rfc822 issue

From:
Davide Gullo
Date:
2013-02-12 @ 20:31
Hi Matt,
I caught some kinds of BODYSTRUCTURE with rights and wrongs rfc822.
Look at the attachment.
I'm not found nothing in common in the wrongs emails.
And you?


Davide



2013/2/12 Matt Ronge <mronge@mronge.com>

> Huh, interesting. Does it always seem to be the same message?
> --
> Matt Ronge
>
> iOS App Consultant
> Central Atomics Inc.
> http://www.centralatomics.com
>
>
>
>
>
>
>
> On Feb 12, 2013, at 3:19 AM, Davide Gullo <gullo@m4ss.net> wrote:
>
> > Hi Matt,
> > by CTCoreFolder:
> >
> > NSArray*list=messagesFromUID:startUID to:endUID
> withFetchAttributes:CTFetchAttrDefaultsOnly;
> >
> > But not for any message in the above list it occurs, only for someone
> messages.
> > I don't know why...
> >
> >
> >
> >
> >
> >
> >
> >
> > 2013/2/12 Matt Ronge <mronge@mronge.com>
> > Hey,
> >
> > How did you get the CTCoreMessage that you called rfc822 on?
> > --
> > Matt Ronge
> >
> > iOS App Consultant
> > Central Atomics Inc.
> > http://www.centralatomics.com
> >
> >
> >
> >
> >
> >
> >
> > On Feb 8, 2013, at 11:45 AM, Davide Gullo <gullo@m4ss.net> wrote:
> >
> > > Hello,
> > > do you have notice about some issue on the rfc822 method?
> > > See here:
> > >
> > > - (NSString *)rfc822 {
> > >     char *result = NULL;
> > >     NSString *nsresult;
> > >     int r = mailimap_fetch_rfc822([self imapSession], [self
> sequenceNumber], &result);
> > >     if (r == MAIL_NO_ERROR) {
> > >         nsresult = [[NSString alloc] initWithCString:result
> encoding:NSUTF8StringEncoding];
> > >     } else {
> > >         self.lastError = MailCoreCreateErrorFromIMAPCode(r);
> > >         return nil;
> > >     }
> > >     mailimap_msg_att_rfc822_free(result);
> > >     return [nsresult autorelease];
> > > }
> > >
> > >
> > > result is always filled from mailimap_fetch_rfc822
> > > but then nsresult is empty.
> > > Maybe it can be an issue related to NSUTF8StringEncoding?
> > > Someone can help me?
> > >
> > > Thanks,
> > > Davide
> > >
> > > --
> > > Davide Gullo, Consulente Web
> > > http://www.m4ss.net
> > > gullo@m4ss.net
> >
> >
> >
> >
> > --
> > Davide Gullo, Consulente Web
> > http://www.m4ss.net
> > gullo@m4ss.net
>
>


-- 
Davide Gullo, Consulente Web
http://www.m4ss.net
gullo@m4ss.net

Re: [mailcore] rfc822 issue

From:
Matt Ronge
Date:
2013-02-12 @ 20:33
Hey Davide,

I didn't get the attachment as it went to the mailing list. Perhaps try 
sending it to me directly?

Thanks,
--
Matt Ronge

iOS App Consultant
Central Atomics Inc.
http://www.centralatomics.com







On Feb 12, 2013, at 2:31 PM, Davide Gullo <gullo@m4ss.net> wrote:

> Hi Matt,
> I caught some kinds of BODYSTRUCTURE with rights and wrongs rfc822.
> Look at the attachment.
> I'm not found nothing in common in the wrongs emails.
> And you?
> 
> 
> Davide
> 
> 
> 
> 2013/2/12 Matt Ronge <mronge@mronge.com>
> Huh, interesting. Does it always seem to be the same message?
> --
> Matt Ronge
> 
> iOS App Consultant
> Central Atomics Inc.
> http://www.centralatomics.com
> 
> 
> 
> 
> 
> 
> 
> On Feb 12, 2013, at 3:19 AM, Davide Gullo <gullo@m4ss.net> wrote:
> 
> > Hi Matt,
> > by CTCoreFolder:
> >
> > NSArray*list=messagesFromUID:startUID to:endUID 
withFetchAttributes:CTFetchAttrDefaultsOnly;
> >
> > But not for any message in the above list it occurs, only for someone 
messages.
> > I don't know why...
> >
> >
> >
> >
> >
> >
> >
> >
> > 2013/2/12 Matt Ronge <mronge@mronge.com>
> > Hey,
> >
> > How did you get the CTCoreMessage that you called rfc822 on?
> > --
> > Matt Ronge
> >
> > iOS App Consultant
> > Central Atomics Inc.
> > http://www.centralatomics.com
> >
> >
> >
> >
> >
> >
> >
> > On Feb 8, 2013, at 11:45 AM, Davide Gullo <gullo@m4ss.net> wrote:
> >
> > > Hello,
> > > do you have notice about some issue on the rfc822 method?
> > > See here:
> > >
> > > - (NSString *)rfc822 {
> > >     char *result = NULL;
> > >     NSString *nsresult;
> > >     int r = mailimap_fetch_rfc822([self imapSession], [self 
sequenceNumber], &result);
> > >     if (r == MAIL_NO_ERROR) {
> > >         nsresult = [[NSString alloc] initWithCString:result 
encoding:NSUTF8StringEncoding];
> > >     } else {
> > >         self.lastError = MailCoreCreateErrorFromIMAPCode(r);
> > >         return nil;
> > >     }
> > >     mailimap_msg_att_rfc822_free(result);
> > >     return [nsresult autorelease];
> > > }
> > >
> > >
> > > result is always filled from mailimap_fetch_rfc822
> > > but then nsresult is empty.
> > > Maybe it can be an issue related to NSUTF8StringEncoding?
> > > Someone can help me?
> > >
> > > Thanks,
> > > Davide
> > >
> > > --
> > > Davide Gullo, Consulente Web
> > > http://www.m4ss.net
> > > gullo@m4ss.net
> >
> >
> >
> >
> > --
> > Davide Gullo, Consulente Web
> > http://www.m4ss.net
> > gullo@m4ss.net
> 
> 
> 
> 
> -- 
> Davide Gullo, Consulente Web
> http://www.m4ss.net
> gullo@m4ss.net

Re: [mailcore] rfc822 issue

From:
Davide Gullo
Date:
2013-02-12 @ 20:37
could not decode message