Home » Developing U++ » U++ Developers corner » Pop3 class and reference examples for U++
Re: Pop3 class and reference examples for U++ [message #42848 is a reply to message #42698] |
Thu, 10 April 2014 01:24 |
Oblivion
Messages: 1094 Registered: August 2007
|
Senior Contributor |
|
|
Hello Mirek,
I've noticed that you refactored the INetMessage and SMTP classes. When I looked into the code of Smtp class I noticed that the quoted-printable encoding was hard coded into the class.
So I took the opportunity to improvise on the existing codebase. While I did not touch the Smtp class, but I wrote a generic QPEncode() function to accompany the existing QPDecode() function.
There seem to be two problems with the current QP encoding of Smtp (if I am not missing anything, or got something totally wrong ):
1) It violates the maxlen (should be <= 76 chars) of quoted-printable text (RFC 1521, rule 5).
2) It does not encode horizontal tab (=09) or space (=20) at the EOL, just before the CRLF (it should). (This statement is wrong, it turns out that I misread the code, it was only implicit. )
So, I created the function and patched accordingly the source files (inet.h, inet.cpp) and the documentation (inet$en-us.tpp)
I tested it with a lot of strings, but as usual, it always needs to be tested more. Please find enclosed the patched files.
As usual, I would be grateful if you could please review it.
EDIT: Fixed misinformation.
Regards.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Thu, 10 April 2014 12:35] Report message to a moderator
|
|
|
|
|
Pop3 class and reference examples for U++
By: Oblivion on Fri, 17 January 2014 01:49
|
|
|
Re: Pop3 class and reference examples for U++
By: koldo on Fri, 17 January 2014 08:12
|
|
|
Re: Pop3 class and reference examples for U++
By: mirek on Fri, 17 January 2014 08:27
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Fri, 17 January 2014 12:00
|
|
|
Re: Pop3 class and reference examples for U++
By: mirek on Tue, 25 March 2014 10:07
|
|
|
Re: Pop3 class and reference examples for U++
By: mirek on Wed, 26 March 2014 10:34
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Wed, 26 March 2014 12:37
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Wed, 26 March 2014 18:31
|
|
|
Re: Pop3 class and reference examples for U++
By: mirek on Thu, 27 March 2014 08:45
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Thu, 27 March 2014 15:24
|
|
|
Re: Pop3 class and reference examples for U++
By: mirek on Thu, 27 March 2014 15:38
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Sun, 30 March 2014 01:48
|
|
|
Re: Pop3 class and reference examples for U++
By: mirek on Sun, 30 March 2014 09:29
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Thu, 10 April 2014 01:24
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Thu, 10 April 2014 16:14
|
|
|
Re: Pop3 class and reference examples for U++
By: mirek on Mon, 28 April 2014 17:48
|
|
|
Re: Pop3 class and reference examples for U++
By: Oblivion on Wed, 16 April 2014 03:00
|
Goto Forum:
Current Time: Sun May 12 01:28:46 CEST 2024
Total time taken to generate the page: 0.02767 seconds
|