Maildir/MH private types. More...
#include <stdbool.h>
#include <stdio.h>
#include <sys/types.h>
Go to the source code of this file.
Functions | |
int | maildir_move_to_mailbox (struct Mailbox *m, struct MdEmailArray *mda) |
Copy the Maildir list to the Mailbox. More... | |
bool | mh_mkstemp (struct Mailbox *m, FILE **fp, char **tgt) |
Create a temporary file. More... | |
mode_t | mh_umask (struct Mailbox *m) |
Create a umask from the mailbox directory. More... | |
Maildir/MH private types.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file private.h.
int maildir_move_to_mailbox | ( | struct Mailbox * | m, |
struct MdEmailArray * | mda | ||
) |
Copy the Maildir list to the Mailbox.
[in] | m | Mailbox |
[out] | mda | Maildir array to copy, then free |
num | Number of new emails |
0 | Error |
Definition at line 75 of file shared.c.
bool mh_mkstemp | ( | struct Mailbox * | m, |
FILE ** | fp, | ||
char ** | tgt | ||
) |
Create a temporary file.
[in] | m | Mailbox to create the file in |
[out] | fp | File handle |
[out] | tgt | File name |
true | Success |
false | Failure |
Definition at line 78 of file mh.c.
mode_t mh_umask | ( | struct Mailbox * | m | ) |
Create a umask from the mailbox directory.
m | Mailbox |
num | Umask |
Definition at line 52 of file shared.c.