librelist archives

« back to archive

Envelope fields

Envelope fields

From:
Rick Gigger
Date:
2012-08-29 @ 08:20
In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:

> The fields of the envelope structure are in the following
>  order: date, subject, from, sender, reply-to, to, cc, bcc,
>  in-reply-to, and message-id.  The date, subject, in-reply-to,
>  and message-id fields are strings.  The from, sender, reply-to,
>  to, cc, and bcc fields are parenthesized lists of address
>  structures.

The MailCore API seems to have all of those except for "in-reply-to".
Am I missing something or is it actually not there. And if it's not
there is it for a technical reason or is it just that no one has
gotten around to implementing it yet?

Rick

Re: Envelope Fields

From:
Rick Gigger
Date:
2012-08-30 @ 08:58
So I went into CTCoreMessage.m and implemented  the method "- (NSSet 
*)inReplyTo". It seems to be working ok for me. Let me know if you want me
to send you a pull request or something.

> In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:
> 
>> The fields of the envelope structure are in the following
>> order: date, subject, from, sender, reply-to, to, cc, bcc,
>> in-reply-to, and message-id.  The date, subject, in-reply-to,
>> and message-id fields are strings.  The from, sender, reply-to,
>> to, cc, and bcc fields are parenthesized lists of address
>> structures.
> 
> The MailCore API seems to have all of those except for "in-reply-to".
> Am I missing something or is it actually not there. And if it's not
> there is it for a technical reason or is it just that no one has
> gotten around to implementing it yet?
> 
> Rick

Re: [mailcore] Re: Envelope Fields

From:
Olivier Palliere
Date:
2012-08-30 @ 09:01
Hi Rick, 

Well, in any case I would love to see it. I am also implementing some 
stuff in MailCore. Namely, the possibility to specify attachments as 
inline, or really attachments. I didn't find a way to do it with the 
actual source.

Please let me know if there is, or if I should try to understand git to 
push them to you as well ;-)

Many thanks,
Olivier./.

On Aug 30, 2012, at 10:58 AM, Rick Gigger <rgigger@gmail.com> wrote:

> So I went into CTCoreMessage.m and implemented  the method "- (NSSet 
*)inReplyTo". It seems to be working ok for me. Let me know if you want me
to send you a pull request or something.
> 
>> In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:
>> 
>>> The fields of the envelope structure are in the following
>>> order: date, subject, from, sender, reply-to, to, cc, bcc,
>>> in-reply-to, and message-id.  The date, subject, in-reply-to,
>>> and message-id fields are strings.  The from, sender, reply-to,
>>> to, cc, and bcc fields are parenthesized lists of address
>>> structures.
>> 
>> The MailCore API seems to have all of those except for "in-reply-to".
>> Am I missing something or is it actually not there. And if it's not
>> there is it for a technical reason or is it just that no one has
>> gotten around to implementing it yet?
>> 
>> Rick

Re: [mailcore] Envelope Fields

From:
Matt Ronge
Date:
2012-08-30 @ 19:44
A pull request on Github for both of these would be awesome!
--
Matt Ronge
mronge@mronge.com
iOS Developer & Consultant
Central Atomics Inc.




On Aug 30, 2012, at 4:01 AM, Olivier Palliere <olivier@molowa.com> wrote:

> Hi Rick, 
> 
> Well, in any case I would love to see it. I am also implementing some 
stuff in MailCore. Namely, the possibility to specify attachments as 
inline, or really attachments. I didn't find a way to do it with the 
actual source.
> 
> Please let me know if there is, or if I should try to understand git to 
push them to you as well ;-)
> 
> Many thanks,
> Olivier./.
> 
> On Aug 30, 2012, at 10:58 AM, Rick Gigger <rgigger@gmail.com> wrote:
> 
>> So I went into CTCoreMessage.m and implemented  the method "- (NSSet 
*)inReplyTo". It seems to be working ok for me. Let me know if you want me
to send you a pull request or something.
>> 
>>> In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:
>>> 
>>>> The fields of the envelope structure are in the following
>>>> order: date, subject, from, sender, reply-to, to, cc, bcc,
>>>> in-reply-to, and message-id.  The date, subject, in-reply-to,
>>>> and message-id fields are strings.  The from, sender, reply-to,
>>>> to, cc, and bcc fields are parenthesized lists of address
>>>> structures.
>>> 
>>> The MailCore API seems to have all of those except for "in-reply-to".
>>> Am I missing something or is it actually not there. And if it's not
>>> there is it for a technical reason or is it just that no one has
>>> gotten around to implementing it yet?
>>> 
>>> Rick
> 

Re: [mailcore] Envelope Fields

From:
Rick Gigger
Date:
2012-09-01 @ 07:40
sent

On Aug 30, 2012, at 1:44 PM, Matt Ronge <mronge@mronge.com> wrote:

> A pull request on Github for both of these would be awesome!
> --
> Matt Ronge
> mronge@mronge.com
> iOS Developer & Consultant
> Central Atomics Inc.
> 
> 
> 
> 
> On Aug 30, 2012, at 4:01 AM, Olivier Palliere <olivier@molowa.com> wrote:
> 
>> Hi Rick, 
>> 
>> Well, in any case I would love to see it. I am also implementing some 
stuff in MailCore. Namely, the possibility to specify attachments as 
inline, or really attachments. I didn't find a way to do it with the 
actual source.
>> 
>> Please let me know if there is, or if I should try to understand git to
push them to you as well ;-)
>> 
>> Many thanks,
>> Olivier./.
>> 
>> On Aug 30, 2012, at 10:58 AM, Rick Gigger <rgigger@gmail.com> wrote:
>> 
>>> So I went into CTCoreMessage.m and implemented  the method "- (NSSet 
*)inReplyTo". It seems to be working ok for me. Let me know if you want me
to send you a pull request or something.
>>> 
>>>> In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:
>>>> 
>>>>> The fields of the envelope structure are in the following
>>>>> order: date, subject, from, sender, reply-to, to, cc, bcc,
>>>>> in-reply-to, and message-id.  The date, subject, in-reply-to,
>>>>> and message-id fields are strings.  The from, sender, reply-to,
>>>>> to, cc, and bcc fields are parenthesized lists of address
>>>>> structures.
>>>> 
>>>> The MailCore API seems to have all of those except for "in-reply-to".
>>>> Am I missing something or is it actually not there. And if it's not
>>>> there is it for a technical reason or is it just that no one has
>>>> gotten around to implementing it yet?
>>>> 
>>>> Rick
>> 
> 

Re: [mailcore] Envelope Fields

From:
Rick Gigger
Date:
2012-08-30 @ 10:28
No problem. I am still figuring out git/github as well but I will try to 
send you what I have soon.

One thing I also want to work on is support for FETCH BODYSTRUCTURE. The 
request is defined in section 6.4.5. of the below RFC. and the response is
in 7.4.2. It doesn't seem to be related in any way to 
CTCoreMessage::fetchBodyStructure unfortunately. I want to be able to 
determine the internal structure of an email without downloading it. Then 
I want to implement BODY[<section>]<<origin octet>> which would allow me 
to only download certain portions rather than the whole message. For 
instance I could download just the plain text but no html or attachments.

To make an inline attachment you need to add a tag like this to the html 
"<img src="cid:my-photo" alt="my-photo" />" but that requires that you are
able to specify the cid when you add the attachment. I couldn't find 
anywhere in MailCore or libetpan for that matter that will allow you to do
that, but I am pretty new to the code so I could be missing something.

Rick

On Aug 30, 2012, at 3:01 AM, Olivier Palliere <olivier@molowa.com> wrote:

> Hi Rick, 
> 
> Well, in any case I would love to see it. I am also implementing some 
stuff in MailCore. Namely, the possibility to specify attachments as 
inline, or really attachments. I didn't find a way to do it with the 
actual source.
> 
> Please let me know if there is, or if I should try to understand git to 
push them to you as well ;-)
> 
> Many thanks,
> Olivier./.
> 
> On Aug 30, 2012, at 10:58 AM, Rick Gigger <rgigger@gmail.com> wrote:
> 
>> So I went into CTCoreMessage.m and implemented  the method "- (NSSet 
*)inReplyTo". It seems to be working ok for me. Let me know if you want me
to send you a pull request or something.
>> 
>>> In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:
>>> 
>>>> The fields of the envelope structure are in the following
>>>> order: date, subject, from, sender, reply-to, to, cc, bcc,
>>>> in-reply-to, and message-id.  The date, subject, in-reply-to,
>>>> and message-id fields are strings.  The from, sender, reply-to,
>>>> to, cc, and bcc fields are parenthesized lists of address
>>>> structures.
>>> 
>>> The MailCore API seems to have all of those except for "in-reply-to".
>>> Am I missing something or is it actually not there. And if it's not
>>> there is it for a technical reason or is it just that no one has
>>> gotten around to implementing it yet?
>>> 
>>> Rick
> 

Re: [mailcore] Envelope Fields

From:
Olivier Pallière
Date:
2012-08-30 @ 11:51
See inline!

Olivier./.

On Aug 30, 2012, at 12:28 PM, Rick Gigger <rgigger@gmail.com> wrote:

> No problem. I am still figuring out git/github as well but I will try to
send you what I have soon.
> 
> One thing I also want to work on is support for FETCH BODYSTRUCTURE. The
request is defined in section 6.4.5. of the below RFC. and the response is
in 7.4.2. It doesn't seem to be related in any way to 
CTCoreMessage::fetchBodyStructure unfortunately. I want to be able to 
determine the internal structure of an email without downloading it. Then 
I want to implement BODY[<section>]<<origin octet>> which would allow me 
to only download certain portions rather than the whole message. For 
instance I could download just the plain text but no html or attachments.
> 
> To make an inline attachment you need to add a tag like this to the html
"<img src="cid:my-photo" alt="my-photo" />" but that requires that you are
able to specify the cid when you add the attachment. I couldn't find 
anywhere in MailCore or libetpan for that matter that will allow you to do
that, but I am pretty new to the code so I could be missing something.

Yeah, this is what I implemented. I have a CID generator, which I insert 
into the HTML (could use some code here too cause my HTML kinda sucks), 
then use that CID when I create the CTCoreAttachment, using inline 
disposition. Lot to do still, but I can end mails with inline images. 

Oli./.

> 
> Rick
> 
> On Aug 30, 2012, at 3:01 AM, Olivier Palliere <olivier@molowa.com> wrote:
> 
>> Hi Rick, 
>> 
>> Well, in any case I would love to see it. I am also implementing some 
stuff in MailCore. Namely, the possibility to specify attachments as 
inline, or really attachments. I didn't find a way to do it with the 
actual source.
>> 
>> Please let me know if there is, or if I should try to understand git to
push them to you as well ;-)
>> 
>> Many thanks,
>> Olivier./.
>> 
>> On Aug 30, 2012, at 10:58 AM, Rick Gigger <rgigger@gmail.com> wrote:
>> 
>>> So I went into CTCoreMessage.m and implemented  the method "- (NSSet 
*)inReplyTo". It seems to be working ok for me. Let me know if you want me
to send you a pull request or something.
>>> 
>>>> In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:
>>>> 
>>>>> The fields of the envelope structure are in the following
>>>>> order: date, subject, from, sender, reply-to, to, cc, bcc,
>>>>> in-reply-to, and message-id.  The date, subject, in-reply-to,
>>>>> and message-id fields are strings.  The from, sender, reply-to,
>>>>> to, cc, and bcc fields are parenthesized lists of address
>>>>> structures.
>>>> 
>>>> The MailCore API seems to have all of those except for "in-reply-to".
>>>> Am I missing something or is it actually not there. And if it's not
>>>> there is it for a technical reason or is it just that no one has
>>>> gotten around to implementing it yet?
>>>> 
>>>> Rick
>> 
> 

Re: [mailcore] Envelope Fields

From:
Rick Gigger
Date:
2012-08-30 @ 18:49
Inline? Is that a method in a MailCore class? A libetpan function? I don't
see any reference to it in the docs.

On Aug 30, 2012, at 5:51 AM, "Olivier Pallière" <olivier@molowa.com> wrote:

> See inline!
> 
> Olivier./.
> 
> On Aug 30, 2012, at 12:28 PM, Rick Gigger <rgigger@gmail.com> wrote:
> 
>> No problem. I am still figuring out git/github as well but I will try 
to send you what I have soon.
>> 
>> One thing I also want to work on is support for FETCH BODYSTRUCTURE. 
The request is defined in section 6.4.5. of the below RFC. and the 
response is in 7.4.2. It doesn't seem to be related in any way to 
CTCoreMessage::fetchBodyStructure unfortunately. I want to be able to 
determine the internal structure of an email without downloading it. Then 
I want to implement BODY[<section>]<<origin octet>> which would allow me 
to only download certain portions rather than the whole message. For 
instance I could download just the plain text but no html or attachments.
>> 
>> To make an inline attachment you need to add a tag like this to the 
html "<img src="cid:my-photo" alt="my-photo" />" but that requires that 
you are able to specify the cid when you add the attachment. I couldn't 
find anywhere in MailCore or libetpan for that matter that will allow you 
to do that, but I am pretty new to the code so I could be missing 
something.
> 
> Yeah, this is what I implemented. I have a CID generator, which I insert
into the HTML (could use some code here too cause my HTML kinda sucks), 
then use that CID when I create the CTCoreAttachment, using inline 
disposition. Lot to do still, but I can end mails with inline images. 
> 
> Oli./.
> 
>> 
>> Rick
>> 
>> On Aug 30, 2012, at 3:01 AM, Olivier Palliere <olivier@molowa.com> wrote:
>> 
>>> Hi Rick, 
>>> 
>>> Well, in any case I would love to see it. I am also implementing some 
stuff in MailCore. Namely, the possibility to specify attachments as 
inline, or really attachments. I didn't find a way to do it with the 
actual source.
>>> 
>>> Please let me know if there is, or if I should try to understand git 
to push them to you as well ;-)
>>> 
>>> Many thanks,
>>> Olivier./.
>>> 
>>> On Aug 30, 2012, at 10:58 AM, Rick Gigger <rgigger@gmail.com> wrote:
>>> 
>>>> So I went into CTCoreMessage.m and implemented  the method "- (NSSet 
*)inReplyTo". It seems to be working ok for me. Let me know if you want me
to send you a pull request or something.
>>>> 
>>>>> In rfc3501 (http://tools.ietf.org/html/rfc3501) it states:
>>>>> 
>>>>>> The fields of the envelope structure are in the following
>>>>>> order: date, subject, from, sender, reply-to, to, cc, bcc,
>>>>>> in-reply-to, and message-id.  The date, subject, in-reply-to,
>>>>>> and message-id fields are strings.  The from, sender, reply-to,
>>>>>> to, cc, and bcc fields are parenthesized lists of address
>>>>>> structures.
>>>>> 
>>>>> The MailCore API seems to have all of those except for "in-reply-to".
>>>>> Am I missing something or is it actually not there. And if it's not
>>>>> there is it for a technical reason or is it just that no one has
>>>>> gotten around to implementing it yet?
>>>>> 
>>>>> Rick
>>> 
>> 

Re: [mailcore] Envelope Fields

From:
Matt Ronge
Date:
2012-08-30 @ 19:49
On Aug 30, 2012, at 5:28 AM, Rick Gigger <rgigger@gmail.com> wrote:

> No problem. I am still figuring out git/github as well but I will try to
send you what I have soon.
> 
> One thing I also want to work on is support for FETCH BODYSTRUCTURE. The
request is defined in section 6.4.5. of the below RFC. and the response is
in 7.4.2. It doesn't seem to be related in any way to 
CTCoreMessage::fetchBodyStructure unfortunately. I want to be able to 
determine the internal structure of an email without downloading it. Then 
I want to implement BODY[<section>]<<origin octet>> which would allow me 
to only download certain portions rather than the whole message. For 
instance I could download just the plain text but no html or attachments.

Some of this should be possible now. -(BOOL)fetchBodyStructure should 
fetch the body structure as you described. From there an object graph of 
the structure is built up in memory. Then the internal CTCoreMessage 
method - (void)_buildUpBodyText:(CTMIME *)mime result:(NSMutableString 
*)result iterates over the parts and calls -(void)fetchPart on sections to
be downloaded.

Take a look at that, hope that ehlps
--
Matt Ronge
mronge@mronge.com
iOS Developer & Consultant
Central Atomics Inc.

Re: [mailcore] Envelope Fields

From:
Rick Gigger
Date:
2012-09-01 @ 07:48
Oh awesome. That's exactly what I wanted. I just misunderstood the documentation.

On Aug 30, 2012, at 1:49 PM, Matt Ronge <mronge@mronge.com> wrote:

> On Aug 30, 2012, at 5:28 AM, Rick Gigger <rgigger@gmail.com> wrote:
> 
>> No problem. I am still figuring out git/github as well but I will try 
to send you what I have soon.
>> 
>> One thing I also want to work on is support for FETCH BODYSTRUCTURE. 
The request is defined in section 6.4.5. of the below RFC. and the 
response is in 7.4.2. It doesn't seem to be related in any way to 
CTCoreMessage::fetchBodyStructure unfortunately. I want to be able to 
determine the internal structure of an email without downloading it. Then 
I want to implement BODY[<section>]<<origin octet>> which would allow me 
to only download certain portions rather than the whole message. For 
instance I could download just the plain text but no html or attachments.
> 
> Some of this should be possible now. -(BOOL)fetchBodyStructure should 
fetch the body structure as you described. From there an object graph of 
the structure is built up in memory. Then the internal CTCoreMessage 
method - (void)_buildUpBodyText:(CTMIME *)mime result:(NSMutableString 
*)result iterates over the parts and calls -(void)fetchPart on sections to
be downloaded.
> 
> Take a look at that, hope that ehlps
> --
> Matt Ronge
> mronge@mronge.com
> iOS Developer & Consultant
> Central Atomics Inc.
>