Expand description
Β§Download large messages manually.
ModulesΒ§
- post_
msg_ πmetadata
EnumsΒ§
- Download
State - Download state of the message.
ConstantsΒ§
- MIN_
DELETE_ πSERVER_ AFTER - If a message is downloaded only partially
and
delete_server_afteris set to small timeouts (eg. βat onceβ), the user might have no chance to actually download that message.MIN_DELETE_SERVER_AFTERincreases the timeout in this case. - PRE_
MSG_ πATTACHMENT_ SIZE_ THRESHOLD - From this point onward outgoing messages are considered large and get a Pre-Message, which announces the Post-Message. This is only about sending so we can modify it any time. Current value is a bit less than the minimum auto-download setting from the UIs (which is 160 KiB).
- PRE_
MSG_ πSIZE_ WARNING_ THRESHOLD - Max size for pre messages. A warning is emitted when this is exceeded.
FunctionsΒ§
- available_
post_ πmsgs_ contains_ rfc724_ mid - delete_
from_ πavailable_ post_ msgs - delete_
from_ πdownloads - download_
known_ πpost_ messages_ without_ pre_ message - Downloads known post-messages without pre-messages in order to guard against lost pre-messages.
- download_
msg π - Actually download a message partially downloaded before.
- download_
msgs π - msg_
is_ πdownloaded_ for - set_
state_ πto_ failure