mx.c newsrc.c nntp.c options.h pager.c parameter.c parameter.h \
parse.c pattern.c pattern.h pop.c pop_auth.c pop_lib.c postpone.c \
query.c recvattach.c recvcmd.c rfc1524.c rfc2047.c rfc2231.c rfc3676.c \
- rfc822.c safe_asprintf.c score.c send.c sendlib.c sidebar.c mutt_signal.c \
+ address.c safe_asprintf.c score.c send.c sendlib.c sidebar.c mutt_signal.c \
smtp.c sort.c state.c state.h status.c system.c thread.c thread.h url.c \
version.c where.h mutt_tags.c
mutt_options.h mutt_regex.h \
mutt_socket.h mx.h myvar.h nntp.h opcodes.h pager.h \
pgpewrap.c pop.h protos.h README.md README.SSL remailer.c remailer.h \
- rfc1524.h rfc2047.h rfc2231.h rfc3676.h rfc822.h sidebar.h \
+ rfc1524.h rfc2047.h rfc2231.h rfc3676.h sidebar.h \
sort.h txt2c.c txt2c.sh version.h mutt_tags.h
EXTRA_SCRIPTS =
mutt_socket.o mutt_tags.o mx.o \
newsrc.o nntp.o pager.o parameter.o parse.o pattern.o pop.o \
pop_auth.o pop_lib.o postpone.o query.o recvattach.o recvcmd.o \
- rfc1524.o rfc2047.o rfc2231.o rfc3676.o rfc822.o \
+ rfc1524.o rfc2047.o rfc2231.o rfc3676.o address.o \
safe_asprintf.o score.o send.o sendlib.o sidebar.o mutt_signal.o \
smtp.o sort.o state.o status.o system.o thread.o url.o \
version.o
#include "opcodes.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
#include "sort.h"
#define RSORT(x) (SortAlias & SORT_REVERSE) ? -x : x
#include <stdio.h>
#include <string.h>
#include "mutt/mutt.h"
-#include "rfc822.h"
+#include "address.h"
#include "mutt_idna.h"
/**
bool intl_checked : 1;
};
+/**
+ * enum AddressError - possible values for RFC822Error
+ */
+enum AddressError
+{
+ ERR_MEMORY = 1,
+ ERR_MISMATCH_PAREN,
+ ERR_MISMATCH_QUOTE,
+ ERR_BAD_ROUTE,
+ ERR_BAD_ROUTE_ADDR,
+ ERR_BAD_ADDR_SPEC
+};
+
+void rfc822_free_address(struct Address **p);
+void rfc822_qualify(struct Address *addr, const char *host);
+struct Address *rfc822_parse_adrlist(struct Address *top, const char *s);
+struct Address *rfc822_cpy_adr(struct Address *addr, int prune);
+struct Address *rfc822_cpy_adr_real(struct Address *addr);
+struct Address *rfc822_append(struct Address **a, struct Address *b, int prune);
+int rfc822_write_address(char *buf, size_t buflen, struct Address *addr, int display);
+void rfc822_write_address_single(char *buf, size_t buflen, struct Address *addr, int display);
+void rfc822_cat(char *buf, size_t buflen, const char *value, const char *specials);
+bool rfc822_valid_msgid(const char *msgid);
+int rfc822_remove_from_adrlist(struct Address **a, const char *mailbox);
+
+extern int RFC822Error;
+extern const char *const RFC822Errors[];
+extern const char RFC822Specials[];
+
+#define rfc822_error(x) RFC822Errors[x]
+
+/**
+ * rfc822_new_address - Create a new Address
+ * @retval ptr Newly allocated Address
+ *
+ * Free the result with free_address() or rfc822_free_address()
+ */
+static inline struct Address *rfc822_new_address(void)
+{
+ return mutt_mem_calloc(1, sizeof(struct Address));
+}
+
#endif /* _MUTT_ADDRESS_H */
#include "mutt_idna.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
struct Address *mutt_lookup_alias(const char *s)
{
#include "pager.h"
#include "parameter.h"
#include "protos.h"
-#include "rfc822.h"
+#include "address.h"
#include "sort.h"
#ifdef USE_IMAP
#include "imap/imap.h"
#include "opcodes.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
+#include "address.h"
#include "sort.h"
#ifdef MIXMASTER
#include "remailer.h"
#include "options.h"
#include "protos.h"
#include "rfc2047.h"
-#include "rfc822.h"
#include "state.h"
#ifdef USE_NOTMUCH
#include "mutt_notmuch.h"
#include "mutt_idna.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
+#include "address.h"
/*
* SLcurses_waddnstr() can't take a "const char *", so this is only
#include "mutt/memory.h"
#include "mutt/queue.h"
#include "envelope.h"
-#include "rfc822.h"
+#include "address.h"
/**
* mutt_new_envelope - Create a new Envelope
#include "address.h"
#include "globals.h"
#include "protos.h"
-#include "rfc822.h"
struct Group *mutt_pattern_group(const char *k)
{
#include "mutt_tags.h"
#include "parameter.h"
#include "protos.h"
-#include "rfc822.h"
static unsigned int hcachever = 0x0;
#include "ncrypt/ncrypt.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
#include "sort.h"
#include "thread.h"
#ifdef USE_NOTMUCH
#include "ncrypt/ncrypt.h"
#include "options.h"
#include "pattern.h"
-#include "rfc822.h"
#include "sidebar.h"
#include "version.h"
#ifdef USE_NOTMUCH
#include "ncrypt/ncrypt.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
#include "url.h"
#include "version.h"
#ifdef USE_SIDEBAR
#include "options.h"
#include "parameter.h"
#include "protos.h"
-#include "rfc822.h"
#include "sort.h"
#include "thread.h"
#include <stdio.h>
#include <string.h>
#include "mutt/mutt.h"
+#include "address.h"
#include "mutt_idna.h"
-#include "rfc822.h"
void rfc822_write_address_single(char *buf, size_t buflen, struct Address *addr, int display)
{
#include "mutt_options.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
+#include "address.h"
static int handle_panic(lua_State *l)
{
#include "options.h"
#include "parameter.h"
#include "protos.h"
-#include "rfc822.h"
#include "url.h"
#ifdef USE_IMAP
#include "imap/imap.h"
#include "options.h"
#include "parameter.h"
#include "protos.h"
-#include "rfc822.h"
#include "state.h"
/**
#include "pager.h"
#include "parameter.h"
#include "protos.h"
-#include "rfc822.h"
#include "sort.h"
#include "state.h"
#include "pgplib.h"
#include "pgpmicalg.h"
#include "protos.h"
-#include "rfc822.h"
#include "state.h"
char PgpPass[LONG_STRING];
#include "pgp.h"
#include "pgpkey.h"
#include "protos.h"
-#include "rfc822.h"
/**
* struct PgpCommandContext - Data for a PGP command
#include "pgpinvoke.h"
#include "pgplib.h"
#include "protos.h"
-#include "rfc822.h"
#include "sort.h"
/**
#include "options.h"
#include "parameter.h"
#include "protos.h"
-#include "rfc822.h"
#include "smime.h"
#include "state.h"
#include "protos.h"
#include "rfc2047.h"
#include "rfc2231.h"
-#include "rfc822.h"
+#include "address.h"
#include "url.h"
struct Address;
addrbook.c
+address.c
alias.c
attach.c
bcache.c
rfc2047.c
rfc2231.c
rfc3676.c
-rfc822.c
safe_asprintf.c
score.c
send.c
#include "options.h"
#include "pop.h"
#include "protos.h"
-#include "rfc822.h"
+#include "address.h"
#ifdef USE_SASL
#include <sasl/sasl.h>
#include <sasl/saslutil.h>
#include "mutt_menu.h"
#include "opcodes.h"
#include "protos.h"
-#include "rfc822.h"
/**
* struct Query - An entry from an external address-book
#include "mutt_idna.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
+#include "address.h"
#include "state.h"
/**
#include "opcodes.h"
#include "options.h"
#include "protos.h"
-#include "rfc822.h"
/**
* struct Coord - Screen coordinates
#define CONTINUATION_BYTE(c) (((c) &0xc0) == 0x80)
-extern char RFC822Specials[];
-
typedef size_t (*encoder_t)(char *s, const char *d, size_t dlen, const char *tocode);
static size_t convert_string(const char *f, size_t flen, const char *from,
* if col is non-zero, the preceding character was a space.
*/
static int rfc2047_encode(const char *d, size_t dlen, int col, const char *fromcode,
- const char *charsets, char **e, size_t *elen, char *specials)
+ const char *charsets, char **e, size_t *elen, const char *specials)
{
int rc = 0;
char *buf = NULL;
+++ /dev/null
-/**
- * @file
- * RFC822 Email format routines
- *
- * @authors
- * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
- * Copyright (C) 2012 Michael R. Elkins <me@mutt.org>
- *
- * @copyright
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 2 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _MUTT_RFC822_H
-#define _MUTT_RFC822_H
-
-#include <stddef.h>
-#include <stdbool.h>
-#include "address.h"
-#include "mutt/mutt.h"
-
-/**
- * enum AddressError - possible values for RFC822Error
- */
-enum AddressError
-{
- ERR_MEMORY = 1,
- ERR_MISMATCH_PAREN,
- ERR_MISMATCH_QUOTE,
- ERR_BAD_ROUTE,
- ERR_BAD_ROUTE_ADDR,
- ERR_BAD_ADDR_SPEC
-};
-
-void rfc822_free_address(struct Address **p);
-void rfc822_qualify(struct Address *addr, const char *host);
-struct Address *rfc822_parse_adrlist(struct Address *top, const char *s);
-struct Address *rfc822_cpy_adr(struct Address *addr, int prune);
-struct Address *rfc822_cpy_adr_real(struct Address *addr);
-struct Address *rfc822_append(struct Address **a, struct Address *b, int prune);
-int rfc822_write_address(char *buf, size_t buflen, struct Address *addr, int display);
-void rfc822_write_address_single(char *buf, size_t buflen, struct Address *addr, int display);
-void rfc822_cat(char *buf, size_t buflen, const char *value, const char *specials);
-bool rfc822_valid_msgid(const char *msgid);
-int rfc822_remove_from_adrlist(struct Address **a, const char *mailbox);
-
-extern int RFC822Error;
-extern const char *const RFC822Errors[];
-extern const char RFC822Specials[];
-
-#define rfc822_error(x) RFC822Errors[x]
-
-/**
- * rfc822_new_address - Create a new Address
- * @retval ptr Newly allocated Address
- *
- * Free the result with free_address() or rfc822_free_address()
- */
-static inline struct Address *rfc822_new_address(void)
-{
- return mutt_mem_calloc(1, sizeof(struct Address));
-}
-
-#endif /* _MUTT_RFC822_H */
#include "protos.h"
#include "rfc2047.h"
#include "rfc3676.h"
-#include "rfc822.h"
#include "sort.h"
#include "url.h"
#ifdef USE_NNTP
#include "protos.h"
#include "rfc2047.h"
#include "rfc2231.h"
-#include "rfc822.h"
#include "state.h"
#ifdef USE_NNTP
#include "nntp.h"
#include "mime.h"
#include "protos.h"
#include "rfc2047.h"
-#include "rfc822.h"
+#include "address.h"
static const struct Mapping UrlMap[] = {
{ "file", U_FILE }, { "imap", U_IMAP }, { "imaps", U_IMAPS },