Re: [WIP-PATCH 1/2] send-email: create email parser subroutine

2016-06-02 Thread Eric Wong
Samuel GROOT wrote: > On 05/29/2016 01:33 AM, Eric Wong wrote: > >Matthieu Moy wrote: > >>Samuel GROOT writes: > >> > >>>Parsing and processing in send-email is done in the same loop. > >>> > >>>To make

Re: [WIP-PATCH 1/2] send-email: create email parser subroutine

2016-05-30 Thread Samuel GROOT
On 05/29/2016 07:53 PM, Matthieu Moy wrote: Samuel GROOT writes: So should we merge parse_email and parse_header in one unique subroutine? At least on the user (i.e. caller of the API) side, one function is probably enough. I will do that, as soon as we

Re: [WIP-PATCH 1/2] send-email: create email parser subroutine

2016-05-29 Thread Matthieu Moy
Samuel GROOT writes: > So should we merge parse_email and parse_header in one unique > subroutine? At least on the user (i.e. caller of the API) side, one function is probably enough. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this

Re: [WIP-PATCH 1/2] send-email: create email parser subroutine

2016-05-29 Thread Samuel GROOT
On 05/29/2016 01:33 AM, Eric Wong wrote: Matthieu Moy wrote: Samuel GROOT writes: Parsing and processing in send-email is done in the same loop. To make the code more maintainable, we create two subroutines: - `parse_email` to

Re: [WIP-PATCH 1/2] send-email: create email parser subroutine

2016-05-28 Thread Eric Wong
Matthieu Moy wrote: > Samuel GROOT writes: > > > Parsing and processing in send-email is done in the same loop. > > > > To make the code more maintainable, we create two subroutines: > > - `parse_email` to separate header and body > >

Re: [WIP-PATCH 1/2] send-email: create email parser subroutine

2016-05-28 Thread Matthieu Moy
Samuel GROOT writes: > Parsing and processing in send-email is done in the same loop. > > To make the code more maintainable, we create two subroutines: > - `parse_email` to separate header and body > - `parse_header` to retrieve data from header These routines

[WIP-PATCH 1/2] send-email: create email parser subroutine

2016-05-27 Thread Samuel GROOT
Parsing and processing in send-email is done in the same loop. To make the code more maintainable, we create two subroutines: - `parse_email` to separate header and body - `parse_header` to retrieve data from header Signed-off-by: Samuel GROOT Signed-off-by: Tom