mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-27 05:40:00 +03:00
style edits
This commit is contained in:
parent
b19472fdec
commit
214322792d
1 changed files with 2 additions and 4 deletions
4
email.d
4
email.d
|
@ -351,14 +351,12 @@ class MimePart {
|
||||||
string gpgproto;
|
string gpgproto;
|
||||||
|
|
||||||
MimeAttachment toMimeAttachment() {
|
MimeAttachment toMimeAttachment() {
|
||||||
import std.array: empty;
|
|
||||||
|
|
||||||
if(type == "multipart/mixed" && stuff.length == 1)
|
if(type == "multipart/mixed" && stuff.length == 1)
|
||||||
return stuff[0].toMimeAttachment;
|
return stuff[0].toMimeAttachment;
|
||||||
|
|
||||||
MimeAttachment att;
|
MimeAttachment att;
|
||||||
att.type = type;
|
att.type = type;
|
||||||
if ( att.type == "application/octet-stream" && filename.empty && !name.empty ) {
|
if(att.type == "application/octet-stream" && filename.length == 0 && name.length > 0 ) {
|
||||||
att.filename = name;
|
att.filename = name;
|
||||||
} else {
|
} else {
|
||||||
att.filename = filename;
|
att.filename = filename;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue