~ubuntu-branches/debian/squeeze/alpine/squeeze

« back to all changes in this revision

Viewing changes to pith/newmail.h

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: newmail.h 136 2006-09-22 20:06:05Z hubert@u.washington.edu $
 
3
 *
 
4
 * ========================================================================
 
5
 * Copyright 2006 University of Washington
 
6
 *
 
7
 * Licensed under the Apache License, Version 2.0 (the "License");
 
8
 * you may not use this file except in compliance with the License.
 
9
 * You may obtain a copy of the License at
 
10
 *
 
11
 *     http://www.apache.org/licenses/LICENSE-2.0
 
12
 *
 
13
 * ========================================================================
 
14
 */
 
15
 
 
16
#ifndef PITH_NEWMAIL_INCLUDED
 
17
#define PITH_NEWMAIL_INCLUDED
 
18
 
 
19
 
 
20
typedef enum {GoodTime = 0, BadTime, VeryBadTime, DoItNow} CheckPointTime;
 
21
 
 
22
 
 
23
/*
 
24
 * Macro to help with new mail check timing...
 
25
 */
 
26
#define NM_TIMING(X)    (((X)==NO_OP_IDLE) ? GoodTime : \
 
27
                                (((X)==NO_OP_COMMAND) ? BadTime : VeryBadTime))
 
28
#define NM_NONE         0x00
 
29
#define NM_STATUS_MSG   0x01
 
30
#define NM_DEFER_SORT   0x02
 
31
#define NM_FROM_COMPOSER 0x04
 
32
 
 
33
 
 
34
/*
 
35
 * Icon text types, to tell which icon to use
 
36
 */
 
37
#define IT_NEWMAIL 0
 
38
#define IT_MCLOSED 1
 
39
 
 
40
 
 
41
/* exported protoypes */
 
42
long    new_mail(int, CheckPointTime, int);
 
43
long    new_mail_count(void);
 
44
void    format_new_mail_msg(char *, long, ENVELOPE *, char *, char *, char *, char *, size_t);
 
45
void    check_point_change(MAILSTREAM *);
 
46
void    reset_check_point(MAILSTREAM *);
 
47
int     changes_to_checkpoint(MAILSTREAM *);
 
48
void    zero_new_mail_count(void);
 
49
void    init_newmailfifo(char *);
 
50
void    close_newmailfifo(void);
 
51
 
 
52
 
 
53
/* mandatory to implement prototypes */
 
54
void    newmail_check_cue(int);
 
55
void    newmail_check_point_cue(int);
 
56
void    icon_text(char *, int);
 
57
time_t  time_of_last_input(void);
 
58
 
 
59
 
 
60
#endif /* PITH_NEWMAIL_INCLUDED */