~ubuntu-branches/ubuntu/quantal/dovecot/quantal

« back to all changes in this revision

Viewing changes to sieve/src/lib-sieve/sieve-error-private.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short, Scott Kitterman
  • Date: 2010-06-22 10:33:51 UTC
  • mfrom: (1.13.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100622103351-ifbmnklp8kxrhb30
Tags: 1:1.2.12-0ubuntu1
* New upstream release:
  - deliver: Don't crash when a message with Auto-submitted: header gets
   rejected.
  - lib-storage: Fixed header searches to work correctly when there are
    multiple headers with same name.
  - dict client: Disconnect from dict server after 1 second of idling.
  - dict: If process crashed, it wasn't automatically restarted
  - dict file: If dict file's group permissions equal world permissions,
    don't try to change its gid.
  - maildir: Fixed a memory leak when copying with hardlinks.
  - maildir: Expunging last messages may have assert-crashed if their
    filenames had just changed.
 * Update sieve patch to 0.1.17
 * debian/dovecot-common.postinst: Add warning about expired certificate.
   (Debian Bug: #576455)
 * Silence lintian warnings.

 [Scott Kitterman]
 * Rename dovecot-postfix to mail-stack-delivery per server-maverick-mail-
   integration spec.
   - Update debian/rules
   - Convert existing package to a dummy package and add new binary in debian/control
   - Update maintainer scripts.
   - Move previously installed backups and config files to new package name
     space in preinst
   - Add new debian/mail-stack-delivery.prerm to handle downgrades
   - Rename debian/dovecot-postfix.* to debian/mail-stack-delivery.*

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        (struct sieve_error_handler *ehandler, pool_t pool, unsigned int max_errors);
44
44
 
45
45
void sieve_error_handler_init_from_parent
46
 
        (struct sieve_error_handler *ehandler, pool_t pool,
 
46
        (struct sieve_error_handler *ehandler, pool_t pool, 
47
47
                struct sieve_error_handler *parent);
48
48
 
49
49
/*
51
51
 */
52
52
 
53
53
static inline void sieve_direct_verror
54
 
(struct sieve_error_handler *ehandler, const char *location,
 
54
(struct sieve_error_handler *ehandler, const char *location, 
55
55
        const char *fmt, va_list args)
56
56
{
57
57
        if ( ehandler->parent != NULL || sieve_errors_more_allowed(ehandler) ) {
58
58
                if ( ehandler->verror != NULL )
59
59
                        ehandler->verror(ehandler, location, fmt, args);
60
 
 
 
60
                
61
61
                if ( ehandler->pool != NULL )
62
62
                        ehandler->errors++;
63
63
        }
64
64
}
65
65
 
66
66
static inline void sieve_direct_vwarning
67
 
(struct sieve_error_handler *ehandler, const char *location,
 
67
(struct sieve_error_handler *ehandler, const char *location, 
68
68
        const char *fmt, va_list args)
69
69
{
70
 
        if ( ehandler->vwarning != NULL )
 
70
        if ( ehandler->vwarning != NULL )       
71
71
                ehandler->vwarning(ehandler, location, fmt, args);
72
72
 
73
73
        if ( ehandler->pool != NULL )
75
75
}
76
76
 
77
77
static inline void sieve_direct_vinfo
78
 
(struct sieve_error_handler *ehandler, const char *location,
 
78
(struct sieve_error_handler *ehandler, const char *location, 
79
79
        const char *fmt, va_list args)
80
80
{
81
81
        if ( ehandler->parent != NULL || ehandler->log_info ) {
82
 
                if ( ehandler->vinfo != NULL )
 
82
                if ( ehandler->vinfo != NULL )  
83
83
                        ehandler->vinfo(ehandler, location, fmt, args);
84
84
        }
85
85
}
86
86
 
87
87
static inline void sieve_direct_vdebug
88
 
(struct sieve_error_handler *ehandler, const char *location,
 
88
(struct sieve_error_handler *ehandler, const char *location, 
89
89
        const char *fmt, va_list args)
90
90
{
91
91
        if ( ehandler->parent != NULL || ehandler->log_info ) {
92
 
                if ( ehandler->vdebug != NULL )
 
92
                if ( ehandler->vdebug != NULL ) 
93
93
                        ehandler->vdebug(ehandler, location, fmt, args);
94
94
        }
95
95
}
96
96
 
97
97
static inline void sieve_direct_error
98
 
(struct sieve_error_handler *ehandler, const char *location,
 
98
(struct sieve_error_handler *ehandler, const char *location, 
99
99
        const char *fmt, ...)
100
100
{
101
101
        va_list args;
102
102
        va_start(args, fmt);
103
 
 
 
103
        
104
104
        sieve_direct_verror(ehandler, location, fmt, args);
105
 
 
 
105
        
106
106
        va_end(args);
107
107
}
108
108
 
109
109
static inline void sieve_direct_warning
110
 
(struct sieve_error_handler *ehandler, const char *location,
 
110
(struct sieve_error_handler *ehandler, const char *location, 
111
111
        const char *fmt, ...)
112
112
{
113
113
        va_list args;
114
114
        va_start(args, fmt);
115
 
 
 
115
        
116
116
        sieve_direct_vwarning(ehandler, location, fmt, args);
117
 
 
 
117
        
118
118
        va_end(args);
119
119
}
120
120
 
121
121
static inline void sieve_direct_info
122
 
(struct sieve_error_handler *ehandler, const char *location,
 
122
(struct sieve_error_handler *ehandler, const char *location, 
123
123
        const char *fmt, ...)
124
124
{
125
125
        va_list args;
126
126
        va_start(args, fmt);
127
 
 
 
127
        
128
128
        sieve_direct_vinfo(ehandler, location, fmt, args);
129
 
 
 
129
        
130
130
        va_end(args);
131
131
}
132
132