link2xt
572b99a2e1
Rewrite member added/removed messages even if the change is not allowed
...
PR https://github.com/deltachat/deltachat-core-rust/pull/4529
2023-07-06 13:47:56 +00:00
link2xt
3992b5a063
refactor: move handle_mdn and handle_ndn to mimeparser and make them private
...
Previously handle_mdn was erroneously exposed in the public API.
2023-07-06 12:34:49 +00:00
link2xt
64c218f1ea
fix: rewrite "member added" message even if change is not allowed
2023-07-06 01:36:42 +00:00
link2xt
deed790950
test: test that "member added" message is rewritten even if self is not in chat
2023-07-06 01:36:23 +00:00
link2xt
b33ae3cd0f
fix: rewrite "member removed" message even if change is not allowed
2023-07-06 01:36:23 +00:00
link2xt
9480699362
test: test that "member removed" message is rewritten if self is not in chat
2023-07-06 01:36:08 +00:00
link2xt
94c190e844
fix: use different member added/removal messages locally and on the network
...
This commit adds new stock strings
"I added member ...",
"I removed member ..." and
"I left the group" that are sent over the network
and are visible in classic MUAs like Thunderbird.
Member name in these messages uses authname
instead of the display name,
so the name set locally does not get leaked when
a member is added or removed.
2023-07-05 16:16:30 +00:00
link2xt
578e47666f
api!: replace message::get_msg_info() with MsgId.get_info()
2023-07-05 14:22:37 +00:00
link2xt
9c68fac4b6
api!: make Message.text non-optional
...
Message.set_text() and Message.get_text() are modified accordingly
to accept String and return String.
Messages which previously contained None text
are now represented as messages with empty text.
Use Message.set_text("".to_string())
instead of Message.set_text(None).
2023-07-03 15:36:32 +00:00
link2xt
2d30afd212
fix: do not run simplify() on dehtml() output
...
simplify() is written to process incoming plaintext messages
and extract footers and quotes from them.
Incoming messages contain various quote styles
and simplify() implements heuristics to detects them.
If dehtml() output is processed by simplify(),
simplify() heuristics may erroneously detect
footers and quotes in produced plaintext.
dehtml() should directly detect quotes
instead of converting them to plaintext quotes
for parsing with simplify().
2023-07-02 23:12:13 +00:00
link2xt
5fe94e8bce
docs(dehtml): document AddText variants
2023-07-02 23:12:13 +00:00
link2xt
1351f71632
fix(remove_contact_from_chat): do not emit event if the contact was not removed
2023-07-02 23:00:49 +00:00
link2xt
d42322b38b
fix(remove_contact_from_chat): bubble up chat loading errors
2023-07-02 23:00:49 +00:00
link2xt
ce6876c418
fix(remove_contact_from_chat): do not ignore database errors when loading the contact
2023-07-02 23:00:49 +00:00
link2xt
2a6b7d9766
api(contact): add Contact::get_by_id_optional() API
2023-07-02 23:00:49 +00:00
link2xt
fa1924da2b
api!(contact): remove Contact::load_from_db() in favor of Contact::get_by_id()
2023-07-02 23:00:49 +00:00
link2xt
d5214eb192
refactor: check if the contact is blocked with a dedicated SQL query
...
Avoid loading unnecessary fields from the database.
2023-07-02 23:00:49 +00:00
link2xt
7d98978269
chore: rustfmt
2023-07-02 01:17:12 +00:00
link2xt
5024f48609
refactor: add error context to Message::load_from_db()
2023-07-01 19:40:23 +00:00
link2xt
e975568122
docs: fix a typo in get_for_contact documentation
2023-07-01 19:39:50 +00:00
link2xt
8d26303cad
refactor(simplify): remove local variable empty_body
2023-06-25 12:55:21 +00:00
Simon Laux
0d8a76593a
fix: make avatar image work on more platforms (use xlink:href)
...
Without it delta touch (qt) can not render the avatar image
and also inkscape does not show it either.
2023-06-22 15:42:08 +00:00
link2xt
efa37dd283
fix: preserve indentation when converting plaintext to HTML
2023-06-22 13:24:40 +00:00
link2xt
323e44da04
test: make plaintext to HTML conversion tests non-async
2023-06-22 13:24:40 +00:00
link2xt
5659c1b9c2
refactor: do not treat messages without headers as a special case
2023-06-19 12:00:03 +00:00
link2xt
00cb72f04d
fix(dehtml): do not insert unnecessary newlines when parsing <p> tags
...
Previously, parsing of `<p>Foo</p><p>Bar</p>`
resulted in `\n\nFoo\n\n\n\nBar\n\n`.
Now it results in `Foo\n\nBar`.
2023-06-16 16:27:14 +00:00
Sebastian Klähn
768f8175e6
api(rust): Add api endpoint get_status_update ( #4468 )
...
* start
* derive default
* make some webxdc file public
* shorten code
* Add from<u32> for chatid
* reduce changes to a bare minimum
* fix nested errors
* @hocuris fixes
* fix @link2xt changes
---------
Co-authored-by: septias <xxsebastian.kleahnxx@gmail.com >
2023-06-15 15:35:57 +02:00
link2xt
c3f352aff1
fix(dehtml): skip links with empty text
2023-06-14 15:41:38 +00:00
link2xt
1a62b6d77f
refactor: rename MimeMessage.header into MimeMessage.headers
2023-06-09 22:20:46 +00:00
link2xt
9ab9d2eb7b
fix: ignore address case when comparing the To: field to Autocrypt-Gossip:
2023-06-07 19:50:42 +00:00
link2xt
e6d9a49187
api: emit DC_EVENT_MSGS_CHANGED per chat when messages are deleted
2023-06-07 09:07:21 +00:00
link2xt
33a014eea4
feat: add MsgDeleted event
2023-06-07 09:07:21 +00:00
link2xt
9be871ccf6
fix: emit DC_EVENT_MSGS_CHANGED without IDs when the message expires
...
Specifying msg IDs that cannot be loaded in the event payload
results in an error when the UI tries to load the message.
Instead, emit an event without IDs
to make the UI reload the whole messagelist.
2023-06-07 09:07:21 +00:00
Sebastian Klähn
6eb8abe535
feat: new group membership update algorithm
...
New algorithm improves group consistency
in cases of missing messages,
restored old backups and replies from classic MUAs.
Co-authored-by: Hocuri <hocuri@gmx.de >
Co-authored-by: link2xt <link2xt@testrun.org >
2023-06-06 23:49:55 +00:00
link2xt
a2495716b6
Merge tag 'v1.112.10'
2023-06-01 12:53:10 +00:00
link2xt
3eddc9164c
fix: disable fetch_existing_msgs setting by default
...
This caused too many problems after switching
the default setting for `show_emails`
from DC_SHOW_EMAILS_OFF to DC_SHOW_EMAILS_ALL
in <https://github.com/deltachat/deltachat-core-rust/pull/4019 >
There is a topic <https://support.delta.chat/t/setting-no-chats-only-for-show-classic-e-mails-showing-classic-emails/2481 >
on the forum with multiple requests to revert this setting
due to old emails being downloaded.
2023-06-01 11:11:36 +00:00
Hocuri
b9b0d20e8d
test: Add golden tests infrastructure ( #4395 )
2023-05-21 22:10:33 +00:00
link2xt
c7ad0b1f4f
test: make test_group_with_removed_message_id less flaky
...
It failed in CI once, apparently
because "Gr." was generated inside the group ID.
2023-05-21 11:50:41 +00:00
link2xt
f9dc8edbcb
feat: add more context to message loading errors
2023-05-16 19:40:38 +00:00
link2xt
67480999c0
feat: do not cut incoming text if "bot" config is set
2023-05-13 15:53:48 +00:00
Simon Laux
9ed36d4e05
api: rust: add get_msg_read_receipts(context, msg_id) - get the contacts that send read receipts for a message
2023-05-12 16:32:52 +02:00
link2xt
e3c01d76c4
fix: do not return an error from send_msg_to_smtp if retry limit is exceeded
...
This prevents sending the other messages for which the limit was not exceeded.
2023-05-12 13:26:37 +00:00
link2xt
9fc1fe74ad
fix: delete smtp rows when message sending is cancelled
2023-05-12 11:17:23 +00:00
link2xt
991089d98e
feat: improve SMTP logging
2023-05-12 10:07:55 +00:00
link2xt
c7a250da31
fix: fetch at most 100 existing messages even if EXISTS was not received
...
According to RFC 3501, EXISTS must always be sent in response to SELECT.
But if the server does not send it for some reason,
async-imap uses the default value, so we will essentially fetch `1:*`
and downloading all messages may take a long time.
2023-05-12 10:07:29 +00:00
link2xt
c5b6bad956
fix: recreate smtp table with AUTOINCREMENT
...
This ensures the rows cannot be confused accidentally
when referred by row_id.
2023-05-12 09:53:58 +00:00
link2xt
c4534ff621
feat: improve SMTP logging
2023-05-12 09:53:32 +00:00
Hocuri
b2c299fa82
fix: Don't put a double dot at the end of error messages ( #4398 )
2023-05-11 18:43:22 +02:00
Asiel Díaz Benítez
4a593a8d7e
api!:jsonrpc: sort reactions in descending order ( #4388 )
...
convert `JSONRPCReactions.reactions` to a `Vec<JSONRPCReaction>` with unique reactions and their count, sorted in descending order.
---------
Co-authored-by: link2xt <link2xt@testrun.org >
2023-05-11 08:29:43 -04:00
link2xt
e216dfd655
fix: delete smtp rows when message sending is cancelled
2023-05-10 16:08:00 +00:00