Compare commits

..

1 Commits

Author SHA1 Message Date
link2xt
d7987dbad3 ci: use --locked flag with cargo build 2026-05-15 03:16:09 +02:00
4 changed files with 18 additions and 16 deletions

View File

@@ -183,7 +183,7 @@ jobs:
cache-bin: false cache-bin: false
- name: Build C library - name: Build C library
run: cargo build -p deltachat_ffi run: cargo build -p deltachat_ffi --locked
- name: Upload C library - name: Upload C library
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
@@ -212,7 +212,7 @@ jobs:
cache-bin: false cache-bin: false
- name: Build deltachat-rpc-server - name: Build deltachat-rpc-server
run: cargo build -p deltachat-rpc-server run: cargo build -p deltachat-rpc-server --locked
- name: Upload deltachat-rpc-server - name: Upload deltachat-rpc-server
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7

View File

@@ -304,7 +304,7 @@ mod tests {
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
This message does not have Content-Type nor Subject.<br/> This message does not have Content-Type nor Subject.<br/>
</body></html> </body></html>
"# "#
@@ -322,7 +322,7 @@ This message does not have Content-Type nor Subject.<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
message with a non-UTF-8 encoding: äöüßÄÖÜ<br/> message with a non-UTF-8 encoding: äöüßÄÖÜ<br/>
</body></html> </body></html>
"# "#
@@ -341,7 +341,7 @@ message with a non-UTF-8 encoding: äöüßÄÖÜ<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
This line ends with a space and will be merged with the next one due to format=flowed.<br/> This line ends with a space and will be merged with the next one due to format=flowed.<br/>
<br/> <br/>
This line does not end with a space<br/> This line does not end with a space<br/>
@@ -362,7 +362,7 @@ and will be wrapped as usual.<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
mime-modified should not be set set as there is no html and no special stuff;<br/> mime-modified should not be set set as there is no html and no special stuff;<br/>
although not being a delta-message.<br/> although not being a delta-message.<br/>
test some special html-characters as &lt; &gt; and &amp; but also &quot; and &#x27; :)<br/> test some special html-characters as &lt; &gt; and &amp; but also &quot; and &#x27; :)<br/>

View File

@@ -39,7 +39,7 @@ impl PlainText {
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
"# "#
.to_string(); .to_string();
@@ -132,7 +132,7 @@ http://link-at-start-of-line.org
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
line 1<br/> line 1<br/>
line 2<br/> line 2<br/>
line with <a href="https://link-mid-of-line.org">https://link-mid-of-line.org</a> and <a href="http://link-end-of-line.com/file?foo=bar%20">http://link-end-of-line.com/file?foo=bar%20</a><br/> line with <a href="https://link-mid-of-line.org">https://link-mid-of-line.org</a> and <a href="http://link-end-of-line.com/file?foo=bar%20">http://link-end-of-line.com/file?foo=bar%20</a><br/>
@@ -156,7 +156,7 @@ line with <a href="https://link-mid-of-line.org">https://link-mid-of-line.org</a
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
Foo<br/> Foo<br/>
bar<br/> bar<br/>
</body></html> </body></html>
@@ -178,7 +178,7 @@ bar<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
line with &lt;<a href="http://encapsulated.link/?foo=_bar">http://encapsulated.link/?foo=_bar</a>&gt; here!<br/> line with &lt;<a href="http://encapsulated.link/?foo=_bar">http://encapsulated.link/?foo=_bar</a>&gt; here!<br/>
</body></html> </body></html>
"# "#
@@ -199,7 +199,7 @@ line with &lt;<a href="http://encapsulated.link/?foo=_bar">http://encapsulated.l
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
line with nohttp://no.link here<br/> line with nohttp://no.link here<br/>
</body></html> </body></html>
"# "#
@@ -220,7 +220,7 @@ line with nohttp://no.link here<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
just an address: <a href="mailto:foo@bar.org">foo@bar.org</a> <a href="mailto:another@one.de">another@one.de</a><br/> just an address: <a href="mailto:foo@bar.org">foo@bar.org</a> <a href="mailto:another@one.de">another@one.de</a><br/>
</body></html> </body></html>
"# "#
@@ -241,7 +241,7 @@ just an address: <a href="mailto:foo@bar.org">foo@bar.org</a> <a href="mailto:an
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
line still line<br/> line still line<br/>
<em>&gt;quote </em><br/> <em>&gt;quote </em><br/>
<em>&gt;still quote</em><br/> <em>&gt;still quote</em><br/>
@@ -265,7 +265,7 @@ line still line<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
linestill line<br/> linestill line<br/>
<em>&gt;quote </em><br/> <em>&gt;quote </em><br/>
<em>&gt;still quote</em><br/> <em>&gt;still quote</em><br/>
@@ -289,7 +289,7 @@ linestill line<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
line <br/> line <br/>
still line<br/> still line<br/>
<em>&gt;quote </em><br/> <em>&gt;quote </em><br/>
@@ -314,7 +314,7 @@ still line<br/>
<html><head> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
</head><body dir="auto" style="unicode-bidi: plaintext"> </head><body>
def foo():<br/> def foo():<br/>
&nbsp;&nbsp;&nbsp;&nbsp;pass<br/> &nbsp;&nbsp;&nbsp;&nbsp;pass<br/>
<br/> <br/>

View File

@@ -2344,6 +2344,8 @@ INSERT INTO msgs
/// Checks for "Chat-Edit" and "Chat-Delete" headers, /// Checks for "Chat-Edit" and "Chat-Delete" headers,
/// and edits/deletes existing messages accordingly. /// and edits/deletes existing messages accordingly.
///
/// Returns `true` if this message is an edit/deletion request.
async fn handle_edit_delete( async fn handle_edit_delete(
context: &Context, context: &Context,
mime_parser: &MimeMessage, mime_parser: &MimeMessage,