B. Petersen
7362941245
add kamadak-exif crate
2020-06-15 00:32:13 +02:00
Alexander Krotov
f7c7f414ed
refactor: remove .unwrap() from Peerstate.has_verified_key()
2020-06-15 00:47:25 +03:00
Hocuri
23d6012c1f
Start parsing ndns ( #1552 )
...
Fix #1478
I changed my original plans a little because I had so many extra ideas and then sorted that I should rather look at actual NDNs and look what is necessary to parse them:
- Recognize NDNs by ~the sender address, which is in a regex the providers database. The problem with heuristics would be that someone could send fake-NDNs and mark messages as failed.~ the standard ("report/delivery-status") and heuristics ("subject contains 'fail' and sender contains 'daemon'"). If there is a valid Message-ID, then rely on that this is an NDN (of course, generally someone might try to find out a Message-ID and send a fake NDN).
- ~Look for `In-Reply-To`~ (only Gmail did this and Gmail uses rfc822 anyway.)
- ~Look for a mimepart `message/delivery-status`, which might contain a `X-Original-Message-ID`~ (only Gmail did this and Gmail uses rfc822, too, anyway.).
- Search through the body and look for a line `Message-ID: *` (remember to remove `<`, `>`), in the hope that that's the original header
- Look for a mime-part containing the string `rfc822`, which will contain the original header. Parse them with Mailparse and look for `Message-ID`.
2020-06-13 17:44:29 +02:00
Hocuri
15b30ceed1
check for sender mailer-daemon as link2xt proposed
2020-06-13 17:29:38 +02:00
Hocuri
45b871f76d
Look at From instead of Subject and ContentType in prefetch_should_download.
2020-06-13 14:18:16 +02:00
Hocuri
9f1112833f
let prefetch_should_download() check if it might be an ndn
2020-06-13 12:06:30 +02:00
B. Petersen
fc88bff32f
make clippy happy
2020-06-13 10:18:18 +02:00
Hocuri
bbf049e95b
string
2020-06-13 10:18:18 +02:00
Hocuri
52dfa9b536
Renaming, comment
2020-06-13 10:18:18 +02:00
Hocuri
1fe85dfb3c
more functional
2020-06-13 10:18:17 +02:00
Hocuri
27ff1c4a75
check in heuristically_parse_ndn() that rfc724_mid_exists() so that we do not ignore emails because we erreneously thought that it was an ndn
2020-06-13 10:18:17 +02:00
Hocuri
adf4035775
rename reports
2020-06-13 10:18:17 +02:00
Hocuri
990c80cedf
lots of small fixes from the reviews
2020-06-13 10:18:17 +02:00
Hocuri
8ebce0c861
warn instead of error
2020-06-13 10:18:16 +02:00
Hocuri
ffb6a84b1f
Warn instead of error
2020-06-13 10:18:16 +02:00
Hocuri
c60ec00aac
Oops #2 , adapt DC_STR_COUNT in deltachat.h
2020-06-13 10:18:16 +02:00
Hocuri
dd3f81a556
Oops, add FAILED_SENDING_TO to deltachat.h
2020-06-13 10:18:16 +02:00
Hocuri
8938cb2573
clippy
2020-06-13 10:18:16 +02:00
Hocuri
995660020b
rm unused aol_ndn.eml (aol's ndns are very similar to these of Yahoo)
2020-06-13 10:18:15 +02:00
Hocuri
7997e7dde4
remove println
2020-06-13 10:18:15 +02:00
Hocuri
20ad98d168
typo
2020-06-13 10:18:15 +02:00
Hocuri
c827c9d209
Add yahoo test
2020-06-13 10:18:15 +02:00
Hocuri
bde97b20e9
Repair getting x-failed-recipients header, all tests passing now
2020-06-13 10:18:15 +02:00
Hocuri
777df24c75
Make the gmx test pass
2020-06-13 10:18:14 +02:00
Hocuri
e1711855cc
Make the posteo test pass
2020-06-13 10:18:14 +02:00
Hocuri
3899d70b3c
I hate SQL
2020-06-13 10:18:14 +02:00
Hocuri
e7aee5b4f4
add gmx and posteo tests
2020-06-13 10:18:14 +02:00
Hocuri
bd2a7a3d40
Correct failed recipient
2020-06-13 10:18:13 +02:00
Hocuri
2e59d5674e
fix sql
2020-06-13 10:18:13 +02:00
Hocuri
98b5f768b6
Improve test, fixed compile errors from rebasing
2020-06-13 10:18:13 +02:00
Hocuri
b7d0f29002
Add test-data/message/gmx_ndn.eml
2020-06-13 10:18:13 +02:00
Hocuri
df9cb5e3b8
Fix error in message info
2020-06-13 10:18:12 +02:00
Hocuri
a30486112f
Add test
2020-06-13 10:18:12 +02:00
Hocuri
016b96e30e
Fix migration
2020-06-13 10:18:12 +02:00
Hocuri
6b763bf417
Return true for MessageState::OutMdnRcvd.can_fail() because it could be a group message and only some recipients failed
2020-06-13 10:18:12 +02:00
Hocuri
6ded0d3bc1
Do not show error messages in chat
2020-06-13 10:18:12 +02:00
Hocuri
f0837cfa73
Repair errors saved for messages
2020-06-13 10:18:11 +02:00
Hocuri
8350729cbb
Improve errors
2020-06-13 10:18:11 +02:00
Hocuri
3757e5dca1
Try to add decent error msg (doesnt work yet)
2020-06-13 10:18:11 +02:00
Hocuri
f02c17cae4
Parse standard ndns (e.g. Gmail)
2020-06-13 10:18:11 +02:00
dignifiedquire
e08e817988
fix: update deps to fix nightly builds
2020-06-13 08:45:01 +02:00
Alexander Krotov
dad6381519
run_bot_process: remove account from _accounts before starting the bot
...
Otherwise wait_configure_and_start_io() will start account, and it will
operate on the same database as the bot.
2020-06-13 06:36:07 +02:00
bjoern
d35cf7d6a2
Merge pull request #1606 from deltachat/fix1589
...
attempt to fix #1598 -- less chatty on errors
2020-06-12 12:40:53 +02:00
holger krekel
1d34e1f27a
attempt to fix #1589 -- if we trigger a reconnect we don't need to "error!" which shows a toast to the user.
...
the next reconnect will report if it can't connect.
2020-06-12 11:57:38 +02:00
Alexander Krotov
e03246d105
refactor: replace calc_timestamps with calc_sort_timestamp
2020-06-12 09:13:56 +02:00
dignifiedquire
944f1ec005
feat: update dependencies for new rustcrypto releases
2020-06-12 09:12:38 +02:00
Friedel Ziegelmayer
d208905473
fix(receive): improve message sorting
2020-06-11 17:30:57 +02:00
Hocuri
6d2d31928d
Warn about the correct folder
2020-06-11 14:36:08 +02:00
Alexander Krotov
f5156f3df6
IMAP: logout from the server with a LOGOUT command
...
CLOSE, which was used previously, only expunges messages and deselects
folder, and it should only be called if some folder is selected. For that,
Imap.close_folder() method is used.
2020-06-11 13:54:14 +02:00
holger krekel
554160db15
also catch DC_KEY_GEN_RSA2048 as const
2020-06-11 09:22:31 +02:00