{
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
}
- ci_send_message(SEND_REPLY | SEND_GROUP_REPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
+ ci_send_message(SEND_REPLY | SEND_GROUP_REPLY, NULL, NULL, Context,
+ tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
{
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
}
- ci_send_message(SEND_REPLY | SEND_LIST_REPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
+ ci_send_message(SEND_REPLY | SEND_LIST_REPLY, NULL, NULL, Context,
+ tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
break;
{
char *personal; /**< real name of address */
char *mailbox; /**< mailbox and host address */
- bool group : 1; /**< group mailbox? */
+ bool group : 1; /**< group mailbox? */
bool is_intl : 1;
bool intl_checked : 1;
struct Address *next;
char *description; /**< content-description */
char *form_name; /**< Content-Disposition form-data name param */
long hdr_offset; /**< offset in stream where the headers begin.
- * this info is used when invoking metamail,
- * where we need to send the headers of the
- * attachment */
+ * this info is used when invoking metamail,
+ * where we need to send the headers of the
+ * attachment */
LOFF_T offset; /**< offset where the actual data begins */
LOFF_T length; /**< length (in bytes) of attachment */
char *filename; /**< when sending a message, this is the file
- * to which this structure refers */
+ * to which this structure refers */
char *d_filename; /**< filename to be used for the
- * content-disposition header.
- * If NULL, filename is used
- * instead. */
+ * content-disposition header.
+ * If NULL, filename is used
+ * instead. */
char *charset; /**< charset of attached file */
struct Content *content; /**< structure used to store detailed info about
- * the content of the attachment. this is used
- * to determine what content-transfer-encoding
- * is required when sending mail. */
+ * the content of the attachment. this is used
+ * to determine what content-transfer-encoding
+ * is required when sending mail. */
struct Body *next; /**< next attachment in the list */
struct Body *parts; /**< parts of a multipart or message/rfc822 */
struct Header *hdr; /**< header information for message/rfc822 */
bool collapsed : 1; /**< used by recvattach */
bool attach_qualifies : 1;
-
};
bool mutt_body_cmp_strict(const struct Body *b1, const struct Body *b2);
#include "header.h"
#include "idna2.h"
#include "mime.h"
-#include "parse.h"
#include "parameter.h"
+#include "parse.h"
#include "rfc2047.h"
#include "rfc2231.h"
#include "tags.h"
const char *mutt_idna_print_version(void);
int mutt_idna_to_ascii_lz(const char *input, char **output, int flags);
-
#endif /* _EMAIL_IDNA_H */
*
* Caller should free the Envelope using mutt_env_free().
*/
-struct Envelope *mutt_rfc822_read_header(FILE *f, struct Header *hdr,
- bool user_hdrs, bool weed)
+struct Envelope *mutt_rfc822_read_header(FILE *f, struct Header *hdr, bool user_hdrs, bool weed)
{
struct Envelope *e = mutt_env_new();
char *line = mutt_mem_malloc(LONG_STRING);
* @param specials Special characters to be encoded
* @retval 0 Success
*/
-static int encode(const char *d, size_t dlen, int col,
- const char *fromcode, const char *charsets, char **e,
- size_t *elen, const char *specials)
+static int encode(const char *d, size_t dlen, int col, const char *fromcode,
+ const char *charsets, char **e, size_t *elen, const char *specials)
{
int rc = 0;
char *buf = NULL;
*/
struct TagNode
{
- char *name;
- char *transformed;
- bool hidden;
- STAILQ_ENTRY(TagNode) entries;
+ char *name;
+ char *transformed;
+ bool hidden;
+ STAILQ_ENTRY(TagNode) entries;
};
STAILQ_HEAD(TagHead, TagNode);
if (!d)
return false;
- unsigned int mycrc = *(unsigned int *)(d + sizeof(union Validate));
+ unsigned int mycrc = *(unsigned int *) (d + sizeof(union Validate));
return (crc == mycrc);
}
* @retval ptr End of the newly packed binary
*/
unsigned char *serial_dump_char_size(char *c, unsigned char *d, int *off,
- ssize_t size, bool convert)
+ ssize_t size, bool convert)
{
char *p = c;
* @param convert If true, the strings will be converted to utf-8
* @retval ptr End of the newly packed binary
*/
-unsigned char *serial_dump_address(struct Address *a, unsigned char *d,
- int *off, bool convert)
+unsigned char *serial_dump_address(struct Address *a, unsigned char *d, int *off, bool convert)
{
unsigned int counter = 0;
unsigned int start_off = *off;
* @param off Offset into the blob
* @param convert If true, the strings will be converted from utf-8
*/
-void serial_restore_address(struct Address **a, const unsigned char *d,
- int *off, bool convert)
+void serial_restore_address(struct Address **a, const unsigned char *d, int *off, bool convert)
{
unsigned int counter = 0;
unsigned int g = 0;
* @param convert If true, the strings will be converted to utf-8
* @retval ptr End of the newly packed binary
*/
-unsigned char *serial_dump_stailq(struct ListHead *l, unsigned char *d,
- int *off, bool convert)
+unsigned char *serial_dump_stailq(struct ListHead *l, unsigned char *d, int *off, bool convert)
{
unsigned int counter = 0;
unsigned int start_off = *off;
* @param off Offset into the blob
* @param convert If true, the strings will be converted from utf-8
*/
-void serial_restore_stailq(struct ListHead *l, const unsigned char *d,
- int *off, bool convert)
+void serial_restore_stailq(struct ListHead *l, const unsigned char *d, int *off, bool convert)
{
unsigned int counter;
* @param convert If true, the strings will be converted to utf-8
* @retval ptr End of the newly packed binary
*/
-unsigned char *serial_dump_buffer(struct Buffer *b, unsigned char *d,
- int *off, bool convert)
+unsigned char *serial_dump_buffer(struct Buffer *b, unsigned char *d, int *off, bool convert)
{
if (!b)
{
* @param off Offset into the blob
* @param convert If true, the strings will be converted from utf-8
*/
-void serial_restore_buffer(struct Buffer **b, const unsigned char *d,
- int *off, bool convert)
+void serial_restore_buffer(struct Buffer **b, const unsigned char *d, int *off, bool convert)
{
unsigned int used;
unsigned int offset;
* @param convert If true, the strings will be converted to utf-8
* @retval ptr End of the newly packed binary
*/
-unsigned char *serial_dump_parameter(struct ParameterList *p,
- unsigned char *d, int *off, bool convert)
+unsigned char *serial_dump_parameter(struct ParameterList *p, unsigned char *d,
+ int *off, bool convert)
{
unsigned int counter = 0;
unsigned int start_off = *off;
* @param off Offset into the blob
* @param convert If true, the strings will be converted from utf-8
*/
-void serial_restore_parameter(struct ParameterList *p,
- const unsigned char *d, int *off, bool convert)
+void serial_restore_parameter(struct ParameterList *p, const unsigned char *d,
+ int *off, bool convert)
{
unsigned int counter;
* @param convert If true, the strings will be converted to utf-8
* @retval ptr End of the newly packed binary
*/
-unsigned char *serial_dump_envelope(struct Envelope *e, unsigned char *d,
- int *off, bool convert)
+unsigned char *serial_dump_envelope(struct Envelope *e, unsigned char *d, int *off, bool convert)
{
d = serial_dump_address(e->return_path, d, off, convert);
d = serial_dump_address(e->from, d, off, convert);
* @param off Offset into the blob
* @param convert If true, the strings will be converted from utf-8
*/
-void serial_restore_envelope(struct Envelope *e, const unsigned char *d,
- int *off, bool convert)
+void serial_restore_envelope(struct Envelope *e, const unsigned char *d, int *off, bool convert)
{
int real_subj_off;
int mutt_hist_search(char *search_buf, enum HistoryClass hclass, char **matches);
#endif /* _MUTT_HISTORY_H */
-
*/
struct ListNode
{
- char *data;
- STAILQ_ENTRY(ListNode) entries;
+ char *data;
+ STAILQ_ENTRY(ListNode) entries;
};
/**
#ifndef _MUTT_REGEX_H
#define _MUTT_REGEX_H
+#include <stddef.h>
#include <regex.h>
#include <stdbool.h>
-#include <stddef.h>
struct Buffer;
if (IsMsgAttach(extra))
mutt_attach_forward(extra->fp, extra->hdr, extra->actx, extra->bdy, SEND_NEWS);
else
- ci_send_message(SEND_NEWS | SEND_FORWARD, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_NEWS | SEND_FORWARD, NULL, NULL, extra->ctx,
+ extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
SEND_NEWS | SEND_REPLY);
}
else
- ci_send_message(SEND_NEWS | SEND_REPLY, NULL, NULL, extra->ctx, extra->hdr);
+ ci_send_message(SEND_NEWS | SEND_REPLY, NULL, NULL, extra->ctx,
+ extra->hdr);
pager_menu->redraw = REDRAW_FULL;
break;
}
goto cleanup;
}
- if (!SigOnTop && !(flags & (SEND_MAILX | SEND_KEY | SEND_BATCH)) && Editor &&
- (mutt_str_strcmp(Editor, "builtin") != 0))
+ if (!SigOnTop && !(flags & (SEND_MAILX | SEND_KEY | SEND_BATCH)) &&
+ Editor && (mutt_str_strcmp(Editor, "builtin") != 0))
{
append_signature(tempfp);
}