Commit Graph

1269 Commits

Author SHA1 Message Date
Jan Engelhardt
0ce327abee
url: strip leading slash from url-path (#298) 2024-03-04 11:46:03 +01:00
Jan Engelhardt
c6b01fcc32
url: repair off-by-one bug in extractHost (#297)
`hostPart[len]` is pointing to `]`, but we need to check the
char after that.

Fixes: v0.9.2-187-g874a1d8c
2024-03-04 11:45:49 +01:00
Jan Engelhardt
c3c6242ed1
url: add remark to documentation about hardcoded // substring (#293) 2024-01-30 12:41:49 +01:00
Jan Engelhardt
874a1d8c33
url: support IPv6 literals (RFC 2732) (#292) 2024-01-30 12:38:41 +01:00
Vincent Richard
8bed1cc743
Fixed confusing source/bin dirs in makefile. (#291) 2024-01-12 13:36:00 +01:00
vincent-richard
a5623d695f Fixed use of old API (#287). 2024-01-01 18:02:32 +01:00
bmagistro
6fd4de8fb5
Add parsing feedback via parsingContext (#280)
* Add parsing feedback via parsingContext

Changes the parsing context to be modifiable to be able to provide
feedback on the parsing. This allows the user to check if header
recovery was necessary, for example, while parsing the current message.

Signed-off-by: Ben Magistro <koncept1@gmail.com>
Co-authored-by: Vincent Richard <vincent@vincent-richard.net>
2023-12-31 16:10:18 +01:00
bmagistro
9b65b4de6c
Configurable email add domain (#287)
* Allow appending of local hostname to be configured via parsing context

Signed-off-by: Ben Magistro <koncept1@gmail.com>
Co-authored-by: Vincent Richard <vincent@vincent-richard.net>
2023-12-31 16:03:30 +01:00
Jan Engelhardt
acfc0bbf82
Avoid generating illegal Envelope-From with sendmail:// transport (#285)
When the ``sender`` function argument is the empty object, vmime
would still attempt to use it at ``sender.getEmail().generate()``,
but that produces just ``@``. As sendmail is called with ``-f @``,
this shows up in postfix's logs as ``<""@>``.
2023-12-31 15:56:28 +01:00
bmagistro
022303bbc9
Build: static lib dependency for ICU (#281)
* Fix missed path for generated files in #277

* Update cmake to include char conversion dependency on static library
2023-12-31 15:54:48 +01:00
bmagistro
7ada1c974c
Build: fix missed path for generated files in #277 (#278) 2023-12-31 15:35:57 +01:00
Jan Engelhardt
82377e0342
Build: add FreeBSD & libc++ compilation support (#288)
* build: add FreeBSD compilation support

* build: unbreak compilation with clang libc++

unary_function is obsolete with C++11 and removed in C++17.
gnu-gcc-libstdc++ still has the class, but llvm-clang-libc++ does
not, and there is a compile error.

vmime should have just stopped using unary_function with commit
v0.9.2-48-g8564b2f8.

	$ cat x.cpp
	$ clang++ -std=c++17 -stdlib=libc++ -c x.cpp
	In file included from x.cpp:1:
	In file included from /usr/local/include/vmime/net/transport.hpp:34:
	In file included from /usr/local/include/vmime/net/service.hpp:36:
	In file included from /usr/local/include/vmime/net/session.hpp:40:
	In file included from /usr/local/include/vmime/utility/url.hpp:30:
	/usr/local/include/vmime/propertySet.hpp:339:33: error: no template named
	/'unary_function' in namespace 'std'; did you mean '__unary_function'?
		class propFinder : public std::unary_function <shared_ptr <property>, bool> {
					  ~~~~~^~~~~~~~~~~~~~
					       __unary_function
2023-12-31 15:22:36 +01:00
bmagistro
6e11c9c9f8
Make default context thread_local (#286)
* Make default context thread_local

Signed-off-by: Ben Magistro <koncept1@gmail.com>
Co-authored-by: Vincent Richard <vincent@vincent-richard.net>
2023-12-31 15:19:28 +01:00
Jan Engelhardt
1a35bb6d71
Build: add Solaris compilation support (#282) 2023-11-09 20:32:47 +01:00
bmagistro
c6b9ad3c78
Update cmake (#277)
This restructures the cmake a little bit to only find components if they
are actually enabled.  It also rearranges things to better group some
related items.  This change also fixes include directories for the build
target allowing the library to be embedded making the install step
optional.

Signed-off-by: Ben Magistro <koncept1@gmail.com>
2023-08-09 10:59:38 +02:00
Vincent Richard
fc69321d53
Merge pull request #272 from frodegill/bytearray_to_string
Utility function to convert byteArray to HEX string. Useful for printing fingerprint digests etc.
2022-03-26 22:30:00 +01:00
Vincent Richard
56b77ca3b7
Merge pull request #271 from frodegill/digest_sha256
Added support for digest algorithm SHA256
2022-03-26 22:19:47 +01:00
Frode Roxrud Gill
6fd3632912 Added utility function to convert byteArray to HEX string. Useful for printing fingerprint digests etc. 2022-03-13 11:59:02 +01:00
Frode Roxrud Gill
46c09fa8a5
Merge pull request #1 from frodegill/digest_sha256
Added support for digest algorithm SHA256
2022-03-13 11:54:16 +01:00
Frode Roxrud Gill
cd59fabe79 Added support for digest algorithm SHA256 2022-03-13 11:44:27 +01:00
vincent-richard
561746081f Fixed possible recursion crash when parsing mailbox groups. 2022-01-25 10:28:20 +01:00
Vincent Richard
23ab2a6a3c Fixed Cppcheck issues. 2021-11-25 21:57:07 +01:00
Vincent Richard
80ad529d5a #268 Code style fixes + moved specific bits to IMAP namespace 2021-11-25 21:23:50 +01:00
Vincent Richard
c6e3b759bc
Merge pull request #268 from jacadcaps/search
Implemented IMAP SEARCH.
2021-11-25 20:22:50 +01:00
Jacek Piszczek
1a0a22a311 Implemented IMAP SEARCH 2021-10-28 23:17:29 -04:00
Vincent Richard
edcb4b4b1f
Merge pull request #262 from ibanic/master
Prevent accessing empty buffer when using FilteredOutputStream with ICU
2021-05-16 18:43:14 +02:00
ibanic
f5fa6434aa fixed coding style 2021-05-16 09:43:32 +02:00
ibanic
5d78d879bb Prevent accessing empty buffer 2021-05-15 22:32:24 +02:00
vincent-richard
c86e4bcd3a #261 Workaround for bad SEARCH response with AOL IMAP server 2021-05-11 08:31:03 +02:00
vincent-richard
7503cd3747 #200 Fixed installation directory 2021-05-06 21:06:47 +02:00
vincent-richard
c6904bd7cf SMTP/DSN refactoring. 2021-04-03 11:21:50 +02:00
Vincent Richard
a6226e8cbc
Merge pull request #256 from jacadcaps/IMAP.PEEK
IMAP PEEK support.
2021-03-31 21:37:30 +02:00
Vincent Richard
8024c650a2
Merge pull request #258 from jacadcaps/processFetchResponse
Process Message-ID and In-Reply-To in ENVELOPE.
2021-03-31 21:22:13 +02:00
Jacek Piszczek
c0f2380aac Fixed build 2021-03-25 02:17:17 +01:00
vincent-richard
e5186e6710 Fixed parsing of IMAP astring. 2021-03-24 21:04:01 +01:00
Jacek Piszczek
6feb658bfb Added missing includes 2021-03-24 15:57:25 -04:00
Vincent Richard
7d64105dee
Merge pull request #257 from jacadcaps/defaultCertificateVerifier
Improved certificate verification.
2021-03-24 20:52:05 +01:00
Vincent Richard
b2d08d4f71
Merge pull request #255 from jacadcaps/weak_ptr-checks
Weak ptr checks + forced socket disconnections.
2021-03-24 20:41:58 +01:00
Jacek Piszczek
9ec84cf80f Process Message-ID and In-Reply-To in EVELOPE 2021-03-24 14:24:35 -04:00
Jacek Piszczek
db486520f2 Improved certificate verification 2021-03-24 12:55:42 -04:00
Jacek Piszczek
a0d02afc69 IMAP PEEK support 2021-03-24 12:27:47 -04:00
Jacek Piszczek
d7eaba1007 Cosmetics 2021-03-24 11:14:03 -04:00
Jacek Piszczek
68f8eb0d39 Ensure disconnect() method always disconnect the underlying sockets.
Added additional checks after weak pointer locks.
2021-03-24 11:08:40 -04:00
Vincent Richard
115d232483
Merge pull request #253 from jacadcaps/MessageParser
Default missing Content-Type to text/plain.
2021-03-16 21:38:34 +01:00
Vincent Richard
cb5adc3a23
Merge pull request #254 from jacadcaps/MessageParserDate
Workaround a RECEIVED message field missing actual date info.
2021-03-16 21:36:25 +01:00
Jacek Piszczek
025c155919 Workaround a RECEIVED message field missing actual date info. 2021-03-15 20:38:04 -04:00
Jacek Piszczek
408ffb13ea Default missing Content-Type to Text/Plain as per https://tools.ietf.org/html/rfc2045#section-5.2 2021-03-15 20:31:07 -04:00
Vincent Richard
98ec456ed1
Merge pull request #252 from jacadcaps/replyTo
Fixed an ENVELOPE ReplyTo handling regression.
2021-03-15 19:39:33 +01:00
Jacek Piszczek
8416534992 Fixed an ENVELOPE ReplyTo handling regression 2021-03-15 08:18:33 -04:00
Vincent Richard
98e9759da2
Merge pull request #251 from jacadcaps/exception_fixes
Exceptions handling / re-throwing fixes
2021-02-25 20:48:39 +01:00