mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 01:36:04 +03:00
[PR #60] [CLOSED] NEW Feature: try to open email attachments that have no file extension #137
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#137
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?
📋 Pull Request Information
Original PR: https://github.com/d99kris/nmail/pull/60
Author: @sc0ttj
Created: 11/20/2020
Status: ❌ Closed
Base:
master← Head:feature--open-attachments-without-extensions📝 Commits (2)
0b74862Added: try to open email attachments that have no file extension:0a5d393fixed a typo in a DEBUG message in src/ui.cpp📊 Changes
1 file changed (+111 additions, -94 deletions)
View changed files
📝
src/ui.cpp(+111 -94)📄 Description
Instead of popping up an error saying unknown extension, try to
open the file with the external viewer. Let the external
viewer decide if the file can be opened or not.
This has not been super heavily tested, although I was able to
open various plain text attachments without issues, which had
no extension, like "mailcap", "config" and so on.
(I used w3m as my external viewer in tests, following the fix in
a previous commit to make it work OK.)
The actual change is one block at: https://github.com/d99kris/nmail/pull/60/files#diff-55aec75c24c55b4c3afef28178fec266f9fce113d40a1f876df30a711d3f499eR2616
I didn't think hard about the consequences of this change, so I
wont feel bad if you don't want them lol.
Also bear in mind: I don't know C++, no idea if I should unset some
vars or what else.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.