mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 17:56:00 +03:00
[GH-ISSUE #38] [Enhancement] Compose offline #34
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kabouik on GitHub (Mar 11, 2020).
Original GitHub issue: https://github.com/d99kris/nmail/issues/38
Originally assigned to: @d99kris on GitHub.
nmailthrows a warning when trying to compose an email offline, saying this is not supported. It would be useful to be able to compose drafts offline and send them later.@d99kris commented on GitHub (Mar 19, 2020):
Yeah, currently nmail is dependent on IMAP storage for drafts. But I agree offline draft compose is a pretty normal/basic feature for email clients, so I'll see what can be done.
@d99kris commented on GitHub (Jan 12, 2021):
I've been considering this feature for a while and I'm currently leaning towards leaving it out of scope.
It would make nmail a lot more complex (as it was designed with different assumptions), and the benefits do not outweigh the amount of work, from my perspective. The simple workaround is to open ones favourite text editor and type the email text there while offline, for later proper compose and sending using nmail (or other email client).
I will proceed to close this issue for now.
@d99kris commented on GitHub (Feb 15, 2021):
I've been considering this some more and I've come to the conclusion that basic offline compose can be implemented without a major re-design.
I will reopen this issue and update here once I have implemented something.
@d99kris commented on GitHub (Feb 19, 2021):
Brief description of the offline compose functionality implemented in
nmail:If postponing a composed message while offline, the message will be saved in an offline draft queue, and will be automatically uploaded to the configured
draftfolder once reconnected to the IMAP server.If sending a composed message while offline, the message will be saved in an offline outbox queue, and will be automatically attempted to be resent once online again.
While composing a message a backup copy is now stored every 10 seconds. If the computer shuts down (or nmail crashes) there is a backup of the composed email. When nmail starts up next time, it will upload that composed message to the
draftfolder.@Kabouik commented on GitHub (Feb 19, 2021):
That looks beautiful, thanks for adding this!
On 2021-02-19 13:07 Kristofer Berggren notifications@github.com wrote:
@Kabouik commented on GitHub (May 31, 2023):
Have you had any negative feedback about the auto-save and auto-send-when-back-online feature? I just worked on an email and my WiFi connection had expired when I tried to send it, so nmail failed to send it and failed to upload it to the IMAP drafts. However, I did find a
nmail-conf/cache/offlinequeue/outbox/0.emlfile and I made a backup of it before going back online, but the file is unreadable (mu viewandmu extactsay the file seems invalid), and it has disappeared from the above folder after nmail was back online, but I have nothing new in my drafts or sent emails, or any other subfolder ofofflinequeue/. This is not the first time this kind of issue happens to me, so I'm wondering if the feature is actually working as expected.So two questions:
musay the file seems invalid (my cache is not encrypted)?EDIT: Sorry, I said the recipient had not received the message and you may have seen that in your email notification for this Github comment, but they sent me another message saying they did receive it. It just doesn't appear on my end.. It's weird because my Drafts and Sent IMAP folders are correct, since all other emails usually show there correctly.
@d99kris commented on GitHub (Jun 3, 2023):
Hi @Kabouik - for the questions:
queue_encryptflag inmain.conf(and is enabled by default I think). So it may be enabled for you even though general message cache (cache_encrypt) is disabled.@d99kris commented on GitHub (Jun 3, 2023):
I reported a separate bug for this (see #140) and fixed it as well. Please let me know in case you encounter more issues.