+
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: chatmail/core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: chatmail/core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 19 commits
  • 60 files changed
  • 6 contributors

Commits on Jul 12, 2025

  1. feat: Log failed debug assertions in all configurations

    Add `logged_debug_assert` macro logging a warning if a condition is not satisfied, before invoking
    `debug_assert!`, and use this macro where `Context` is accessible (i.e. don't change function
    signatures for now).
    Follow-up to 0359481.
    iequidoo committed Jul 12, 2025
    Configuration menu
    Copy the full SHA
    58b99f5 View commit details
    Browse the repository at this point in the history
  2. test: Tune down DELTACHAT_SAVE_TMP_DB hint (#6998)

    Follow-up for #6992
    
    Since we're printing the hint to stderr now, rather than stdout (as per
    link2xt's suggestion), it was too noisy. Also, it was printed once for
    every test account rather than once per test.
    
    Now, it integrates nicely with rust's hint to enable a backtrace:
    
    ```
      stderr ───
    
        thread 'chat::chat_tests::test_broadcasts_name_and_avatar' panicked at src/chat/chat_tests.rs:2757:5:
        assertion failed: `(left == right)`
    
        Diff < left / right > :
        <true
        >false
    
    
        note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
        note: If you want to examine the database files, set environment variable DELTACHAT_SAVE_TMP_DB=1
    
            FAIL [   0.265s] deltachat chat::chat_tests::test_broadcast
    ```
    Hocuri authored Jul 12, 2025
    Configuration menu
    Copy the full SHA
    f5e8c80 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2025

  1. feat: Donation request device message (#6913)

    A donation request device message is added if >= 100 messages have been sent and delivered. The
    condition is checked every 30 days since the first message is sent. The message is added only once.
    iequidoo committed Jul 13, 2025
    Configuration menu
    Copy the full SHA
    2cf979d View commit details
    Browse the repository at this point in the history
  2. api: Add chat::create_group_ex(), deprecate create_group_chat() (#6927)

    `chat::create_group_ex()` gains an `encryption: Option<ProtectionStatus>` parameter to support
    unencrypted chats.
    iequidoo committed Jul 13, 2025
    Configuration menu
    Copy the full SHA
    d3908d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0299543 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    752f45f View commit details
    Browse the repository at this point in the history
  5. feat: advance next UID even if connection fails while fetching

    Connection sometimes fails while processing FETCH
    responses. In this case `fetch_new_messages` exits early
    and does not advance next expected UID even if
    some messages were processed.
    
    This results in prefetching the same messages
    after reconnection and log messages
    similar to
    "Not moving the message ab05c85a-e191-4fd2-a951-9972bc7e167f@localhost that we have seen before.".
    
    With this change we advance next expected UID
    even if `fetch_new_messages` returns a network error.
    link2xt committed Jul 13, 2025
    Configuration menu
    Copy the full SHA
    d45ec7f View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2025

  1. api!: In ChatListItem, replace is_group and is_(out_)broadcast with c…

    …hat_type property (#7003)
    
    - removed ChatListItem.is_broadcast
    - mark ChatListItem.is_group as deprecated
    nicodh authored Jul 14, 2025
    Configuration menu
    Copy the full SHA
    0142515 View commit details
    Browse the repository at this point in the history
  2. fix: always prefer the last header

    Headers are normally added at the top of the message,
    e.g. when forwarding new `Received` headers are
    added at the top.
    
    When headers are protected with DKIM-Signature
    and oversigning is not used,
    forged headers may be added on top
    so headers from the top are generally less trustworthy.
    
    This is tested with `test_take_last_header`,
    but so far last header was only preferred
    for known headers. This change extends
    preference of the last header to all headers.
    link2xt committed Jul 14, 2025
    Configuration menu
    Copy the full SHA
    e6fd52a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0f6bdf View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2025

  1. fix: Ignore protected headers in outer message part (#6357)

    Delta Chat always adds protected headers to the inner encrypted or signed message, so if a protected
    header is only present in the outer part, it should be ignored because it's probably added by the
    server or somebody else. The exceptions are Subject and List-ID because there are known cases when
    they are only present in the outer message part.
    
    Also treat any Chat-* headers as protected. This fixes e.g. a case when the server injects a
    "Chat-Version" IMF header tricking Delta Chat into thinking that it's a chat message.
    
    Also handle "Auto-Submitted" and "Autocrypt-Setup-Message" as protected headers on the receiver
    side, this was apparently forgotten.
    iequidoo committed Jul 16, 2025
    Configuration menu
    Copy the full SHA
    6d8dff5 View commit details
    Browse the repository at this point in the history
  2. feat(repl): Print errors and debug logs to stderr

    Follow-up to 545007a.
    iequidoo committed Jul 16, 2025
    Configuration menu
    Copy the full SHA
    c5c947e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8fc6ea1 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2025

  1. fix: List e-mail contacts in repl listcontacts command

    - After the revisions to support key contacts, the 'listcontacts'
      command in the repl only lists key-contacts.  A separate flag now
      has to be passed to Contact::get_all() to list address contacts.
      This makes it difficult to run the example in README.md because we
      need to see the new contact so we can get its ID for the next
      command in the example, that creates a chat by ID.
    - Revised 'listcontacts' command to make a second call to
      Contact::get_all() with the DC_GCL_ADDRESS flag, then print the
      e-mail contacts after the key contacts.
    - Revised configuration example in top-level README.md to reflect
      current command output.
    
    fixes #7011
    cliffmccarthy authored and Hocuri committed Jul 17, 2025
    Configuration menu
    Copy the full SHA
    e03e2d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6df1d16 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2df295 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2025

  1. feat: add "e2ee encrypted" info message to all e2ee chats (#7008)

    this PR adds a info message "messages are end-to-end-encrypted" also for
    chats created by eg. vcards. by the removal of lock icons, this is a
    good place to hint for that in addition; this is also what eg. whatsapp
    and others are doing
    
    the wording itself is tweaked at
    deltachat/deltachat-android#3817 (and there is
    also the rough idea to make the message a little more outstanding, by
    some more dedicated colors)
    
    ~~did not test in practise, if this leads to double "e2ee info messages"
    on secure join, tests look good, however.~~ EDIT: did lots of practise
    tests meanwhile :)
    
    most of the changes in this PR are about test ...
    
    ftr, in another PR, after 2.0 reeases, there could probably quite some
    code cleanup wrt set-protection, protection-disabled etc.
    
    ---------
    
    Co-authored-by: Hocuri <hocuri@gmx.de>
    r10s and Hocuri authored Jul 18, 2025
    Configuration menu
    Copy the full SHA
    2c7d51f View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2025

  1. fix: save peer address for LoggingStream early

    Socket may lose peer address when it is disconnected from
    the server side. In this case debug_assert! failed
    for me when running the core in debug mode on desktop.
    To avoid the case of peer_addr not being available,
    we now store it when LoggingStream is created.
    link2xt committed Jul 19, 2025
    Configuration menu
    Copy the full SHA
    7b41425 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e3973f6 View commit details
    Browse the repository at this point in the history
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载