* For mailing lists, Alpine adds a description of the type of link
[alpine.git] / alpine / mailpart.h
blob04547aa035fd2feb0093ab4b977c2efc983199ae
1 /*
2 * $Id: mailpart.h 769 2007-10-24 00:15:40Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006-2007 University of Washington
6 * Copyright 2013-2022 Eduardo Chappa
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PINE_MAILPART_INCLUDED
18 #define PINE_MAILPART_INCLUDED
21 #include "../pith/mailpart.h"
22 #include "context.h"
23 #include "../pith/state.h"
24 #include "../pith/icaltype.h"
26 #define DA_SAVE 0x01 /* flags used by display_attachment */
27 #define DA_FROM_VIEW 0x02 /* see mailpart.c */
28 #define DA_RESIZE 0x04
29 #define DA_DIDPROMPT 0x08 /* Already prompted to view att */
30 #define DA_EXTERNAL 0x10 /* use external viewer operations */
31 #define DA_ALLIMAGES 0x20 /* external browser displays all images */
34 /* exported prototypes */
35 void attachment_screen(struct pine *);
36 void write_attachment(int, long, ATTACH_S *, char *);
37 int write_attachment_to_file(MAILSTREAM *, long, ATTACH_S *, int, char *);
38 int display_attachment(long, ATTACH_S *, int);
39 void display_vevent_summary(long, ATTACH_S *, int, int);
40 int dispatch_attachment(ATTACH_S *);
41 #ifdef _WINDOWS
42 void display_att_window(ATTACH_S *);
43 #endif
46 #endif /* PINE_MAILPART_INCLUDED */