Handle C attachments
This commit is contained in:
parent
b2f56c1660
commit
0db91aaa5f
1
mbox2web
1
mbox2web
|
@ -60,6 +60,7 @@ def save_part(msg, disposition):
|
|||
"text/plain": ".txt",
|
||||
"application/x-gzip": ".gz", # more likely tar.gz, but we can't know without looking into it which we ain't
|
||||
"image/gif": ".gif",
|
||||
"text/x-c": ".c",
|
||||
}[content_type]
|
||||
|
||||
name = msg.get_param("name") or "(data)"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<div class="partouter">
|
||||
<div class="partheader">
|
||||
text/x-c
|
||||
</div>
|
||||
<div class="partinner">
|
||||
<a href="{{url}}">{{name}}</a>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue