]> granicus.if.org Git - neomutt/commitdiff
Move address to libmutt and merge it with mutt_address
authorPietro Cerutti <gahr@gahr.ch>
Mon, 26 Feb 2018 12:14:10 +0000 (12:14 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 27 Feb 2018 15:19:20 +0000 (15:19 +0000)
40 files changed:
Makefile.autosetup
addrbook.c
alias.c
commands.c
compose.c
copy.c
edit.c
envelope.c
group.c
hcache/hcache.c
hdrline.c
hook.c
init.c
main.c
mbox.c
mutt/address.c [moved from address.c with 95% similarity]
mutt/address.h [moved from address.h with 100% similarity]
mutt/mutt.h
mutt_address.c [deleted file]
mutt_lua.c
muttlib.c
mx.c
ncrypt/crypt.c
ncrypt/crypt_gpgme.c
ncrypt/pgp.c
ncrypt/pgpinvoke.c
ncrypt/pgpkey.c
ncrypt/smime.c
parse.c
pattern.c
pop_auth.c
query.c
recvcmd.c
remailer.c
rfc2047.c
send.c
sendlib.c
smtp.c
sort.c
url.c

index a8b1f568350764ba93a08884fa901268bfb83147..9120c636327fd418a8ccdf97d3636ee56d0b80db 100644 (file)
@@ -60,11 +60,11 @@ NEOMUTTOBJS=        mutt_account.o addrbook.o alias.o attach.o bcache.o body.o \
                curs_main.o edit.o editmsg.o enter.o envelope.o filter.o \
                flags.o from.o group.o handler.o hdrline.o \
                header.o help.o history.o hook.o init.o keymap.o main.o \
-               mbox.o menu.o mh.o muttlib.o mutt_address.o \
+               mbox.o menu.o mh.o muttlib.o \
                mutt_socket.o tags.o mx.o \
                newsrc.o nntp.o pager.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 address.o \
+               rfc1524.o rfc2047.o rfc2231.o rfc3676.o \
                safe_asprintf.o score.o send.o sendlib.o sidebar.o mutt_signal.o \
                resize.o smtp.o sort.o state.o status.o system.o thread.o url.o \
                version.o
@@ -87,8 +87,8 @@ ALLOBJS+=     $(NEOMUTTOBJS)
 ###############################################################################
 # libmutt
 LIBMUTT=       libmutt.a
-LIBMUTTOBJS=   mutt/base64.o mutt/buffer.o mutt/charset.o mutt/date.o \
-               mutt/debug.o mutt/exit.o \
+LIBMUTTOBJS=   mutt/address.o mutt/base64.o mutt/buffer.o mutt/charset.o \
+               mutt/date.o mutt/debug.o mutt/exit.o \
                mutt/file.o mutt/hash.o mutt/idna.o mutt/list.o \
                mutt/mapping.o mutt/mbyte.o mutt/md5.o \
                mutt/memory.o mutt/message.o mutt/mime.o mutt/parameter.o \
@@ -267,14 +267,14 @@ git_ver.h: $(ALL_FILES)
        cmp -s git_ver.h.tmp git_ver.h || mv git_ver.h.tmp git_ver.h; \
        rm -f git_ver.h.tmp
 
-hcache/hcversion.h:    $(SRCDIR)/mutt.h $(SRCDIR)/address.h \
+hcache/hcversion.h:    $(SRCDIR)/mutt.h $(SRCDIR)/mutt/address.h \
                        $(SRCDIR)/mutt/list.h $(SRCDIR)/mutt/buffer.h \
                        $(SRCDIR)/mutt/parameter.h $(SRCDIR)/body.h \
                        $(SRCDIR)/envelope.h $(SRCDIR)/header.h \
                        $(SRCDIR)/hcache/hcachever.sh \
                        $(PWD)/hcache
        ( echo '#include "config.h"'; echo '#include "mutt.h"'; \
-       echo '#include "address.h"'; echo '#include "mutt/list.h"'; \
+       echo '#include "mutt/address.h"'; echo '#include "mutt/list.h"'; \
        echo '#include "mutt/buffer.h"'; echo '#include "mutt/parameter.h"'; \
        echo '#include "body.h"'; echo '#include "envelope.h"'; \
        echo '#include "header.h"';) | $(CPP) $(CFLAGS) - | \
index b97799d4a91db5498c8e907d678f8a98512021ae..ce70601f8a3b397999e7fd3d15ec6562a74246b8 100644 (file)
@@ -26,7 +26,6 @@
 #include <stdlib.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "format_flags.h"
 #include "globals.h"
diff --git a/alias.c b/alias.c
index 60b7e358738a2d1f228daf37f53f44b6adfec77e..28a7b39d872a2d5730b5205ee1170bf413555a67 100644 (file)
--- a/alias.c
+++ b/alias.c
@@ -32,7 +32,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "alias.h"
-#include "address.h"
 #include "envelope.h"
 #include "globals.h"
 #include "mutt_curses.h"
index 129501183e5fc7bacee44d9d90e0ce3fc2e345ba..af92f7081a52b0d15b3f3c1ce0598e2d43d41b1e 100644 (file)
@@ -32,7 +32,6 @@
 #include "mutt/mutt.h"
 #include "conn/conn.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "buffy.h"
index 84abb6319e12172b28e6c1ca873097b71142d7b9..ac839b442d653b4e26bdda41486ec0c2dbacb378 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -32,7 +32,6 @@
 #include "mutt/mutt.h"
 #include "conn/conn.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "attach.h"
 #include "body.h"
diff --git a/copy.c b/copy.c
index 6f7b1a756ba623bc45cdc1acd7a1c945136bfb07..4faa6d8b14419e13131c031dc1cceb8a6bbdfefb 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -28,7 +28,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "copy.h"
-#include "address.h"
 #include "body.h"
 #include "context.h"
 #include "envelope.h"
diff --git a/edit.c b/edit.c
index 18d3f0d81a00e1510e66608ccc31f2f7623ab2b7..6dfce77b05767254e1b902a1d4391cdbc40d6fb2 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -31,7 +31,6 @@
 #include <string.h>
 #include <sys/stat.h>
 #include "mutt/mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "context.h"
index c59f8dd835fdfc551faec22ba2cb3aaba5805680..264d83196259bc4267b718739027d9bd162f4ee1 100644 (file)
@@ -39,7 +39,6 @@
 #include <stddef.h>
 #include "mutt/mutt.h"
 #include "envelope.h"
-#include "address.h"
 #include "protos.h"
 
 /**
diff --git a/group.c b/group.c
index c780cfa90240bff0337a82019f8d4a913dc7e5b7..f92150b63e6d5f9bf7d41bb7474b389c3a958463 100644 (file)
--- a/group.c
+++ b/group.c
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include "mutt/mutt.h"
 #include "group.h"
-#include "address.h"
 #include "globals.h"
 #include "protos.h"
 
index 4c0187de4dc238e0046c1affa296ef23d6e02b07..1d289332ea9f1569a9a1a55ffbd3ff9d4eef0fac 100644 (file)
@@ -48,7 +48,6 @@
 #include <sys/time.h>
 #include <unistd.h>
 #include "mutt/mutt.h"
-#include "address.h"
 #include "backend.h"
 #include "body.h"
 #include "envelope.h"
index e63b0f85748f198af32c9cc692f2ef88e30510c4..6afed0125626723f46dab546eb418b28c20bd949 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -31,7 +31,6 @@
 #include <time.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "body.h"
 #include "context.h"
 #include "envelope.h"
diff --git a/hook.c b/hook.c
index 0ed9895d828961c03c94c2ab6f2d7d09e218ba75..612e85669605fa56838db42c0742dcceebd1d414 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -29,7 +29,6 @@
 #include <unistd.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "envelope.h"
 #include "globals.h"
 #include "header.h"
diff --git a/init.c b/init.c
index 7be8ebe9569de44d866d2244f7d575a1278bd899..93050d84864c688c835e6538b540168eaf56aa47 100644 (file)
--- a/init.c
+++ b/init.c
@@ -38,7 +38,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "init.h"
-#include "address.h"
 #include "alias.h"
 #include "context.h"
 #include "envelope.h"
diff --git a/main.c b/main.c
index 66d91cf0d0ce9c91f1dd2e06adb1102a547a85ba..822ce32245c00953bc1fade58cd1b8a5be6e34fd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -37,7 +37,6 @@
 #include "mutt/mutt.h"
 #include "conn/conn.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "buffy.h"
diff --git a/mbox.c b/mbox.c
index a9d78d8f40cf56a43b554636f721dbed26e811a8..84c986297d3d90d475ab5896d0d856a813dd2399 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -34,7 +34,6 @@
 #include <utime.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "body.h"
 #include "buffy.h"
 #include "context.h"
similarity index 95%
rename from address.c
rename to mutt/address.c
index 32810519465444be9c316059812806ff6a90c720..e28b028159ffdcf93199b0bce9c8cd0f5976620b 100644 (file)
--- a/address.c
  * | mutt_addr_valid_msgid()      | Is this a valid Message ID?
  * | mutt_addr_write()            | Write an Address to a buffer
  * | mutt_addr_write_single()     | Write a single Address to a buffer
+ * | mutt_addrlist_to_intl()      | Convert an Address list to Punycode
+ * | mutt_addrlist_to_local()     | Convert an Address list from Punycode
  */
 
 #include "config.h"
 #include <stdio.h>
 #include <string.h>
-#include "mutt/mutt.h"
 #include "address.h"
+#include "idna2.h"
+#include "memory.h"
+#include "string2.h"
 
 /**
  * AddressSpecials - Characters with special meaning for email addresses
@@ -1231,3 +1235,68 @@ done:
   *pbuf = 0;
   return pbuf - buf;
 }
+
+/**
+ * mutt_addrlist_to_intl - Convert an Address list to Punycode
+ * @param[in]  a   Address list to modify
+ * @param[out] err Pointer for failed addresses
+ * @retval 0  Success, all addresses converted
+ * @retval -1 Error, err will be set to the failed address
+ */
+int mutt_addrlist_to_intl(struct Address *a, char **err)
+{
+  char *user = NULL, *domain = NULL;
+  char *intl_mailbox = NULL;
+  int rc = 0;
+
+  if (err)
+    *err = NULL;
+
+  for (; a; a = a->next)
+  {
+    if (!a->mailbox || mutt_addr_is_intl(a))
+      continue;
+
+    if (mutt_addr_mbox_to_udomain(a->mailbox, &user, &domain) == -1)
+      continue;
+
+    intl_mailbox = mutt_idna_local_to_intl(user, domain);
+    if (!intl_mailbox)
+    {
+      rc = -1;
+      if (err && !*err)
+        *err = mutt_str_strdup(a->mailbox);
+      continue;
+    }
+
+    mutt_addr_set_intl(a, intl_mailbox);
+  }
+
+  return rc;
+}
+
+/**
+ * mutt_addrlist_to_local - Convert an Address list from Punycode
+ * @param a Address list to modify
+ * @retval 0 Always
+ */
+int mutt_addrlist_to_local(struct Address *a)
+{
+  char *user = NULL, *domain = NULL;
+  char *local_mailbox = NULL;
+
+  for (; a; a = a->next)
+  {
+    if (!a->mailbox || mutt_addr_is_local(a))
+      continue;
+
+    if (mutt_addr_mbox_to_udomain(a->mailbox, &user, &domain) == -1)
+      continue;
+
+    local_mailbox = mutt_idna_intl_to_local(user, domain, 0);
+    if (local_mailbox)
+      mutt_addr_set_local(a, local_mailbox);
+  }
+
+  return 0;
+}
similarity index 100%
rename from address.h
rename to mutt/address.h
index 4c9abe47d07ee15be280f4bdcafd26bffa995918..d77dc40fed65348b4db676b18066ae7fcc4edee9 100644 (file)
@@ -27,6 +27,7 @@
  *
  * | File             | Description        |
  * | :--------------- | :----------------- |
+ * | mutt/address.c   | @subpage address   |
  * | mutt/base64.c    | @subpage base64    |
  * | mutt/buffer.c    | @subpage buffer    |
  * | mutt/charset.c   | @subpage charset   |
@@ -57,6 +58,7 @@
 #ifndef _MUTT_MUTT_H
 #define _MUTT_MUTT_H
 
+#include "address.h"
 #include "base64.h"
 #include "buffer.h"
 #include "charset.h"
diff --git a/mutt_address.c b/mutt_address.c
deleted file mode 100644 (file)
index 14e2237..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * @file
- * Representation of an email address
- *
- * @authors
- * Copyright (C) 1996-2000,2011-2013 Michael R. Elkins <me@mutt.org>
- * Copyright (C) 2017 Richard Russon <rich@flatcap.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/>.
- */
-
-#include "config.h"
-#include <stdio.h>
-#include "mutt/mutt.h"
-#include "address.h"
-
-/**
- * mutt_addrlist_to_intl - Convert an Address list to Punycode
- * @param[in]  a   Address list to modify
- * @param[out] err Pointer for failed addresses
- * @retval 0  Success, all addresses converted
- * @retval -1 Error, err will be set to the failed address
- */
-int mutt_addrlist_to_intl(struct Address *a, char **err)
-{
-  char *user = NULL, *domain = NULL;
-  char *intl_mailbox = NULL;
-  int rc = 0;
-
-  if (err)
-    *err = NULL;
-
-  for (; a; a = a->next)
-  {
-    if (!a->mailbox || mutt_addr_is_intl(a))
-      continue;
-
-    if (mutt_addr_mbox_to_udomain(a->mailbox, &user, &domain) == -1)
-      continue;
-
-    intl_mailbox = mutt_idna_local_to_intl(user, domain);
-    if (!intl_mailbox)
-    {
-      rc = -1;
-      if (err && !*err)
-        *err = mutt_str_strdup(a->mailbox);
-      continue;
-    }
-
-    mutt_addr_set_intl(a, intl_mailbox);
-  }
-
-  return rc;
-}
-
-/**
- * mutt_addrlist_to_local - Convert an Address list from Punycode
- * @param a Address list to modify
- * @retval 0 Always
- */
-int mutt_addrlist_to_local(struct Address *a)
-{
-  char *user = NULL, *domain = NULL;
-  char *local_mailbox = NULL;
-
-  for (; a; a = a->next)
-  {
-    if (!a->mailbox || mutt_addr_is_local(a))
-      continue;
-
-    if (mutt_addr_mbox_to_udomain(a->mailbox, &user, &domain) == -1)
-      continue;
-
-    local_mailbox = mutt_idna_intl_to_local(user, domain, 0);
-    if (local_mailbox)
-      mutt_addr_set_local(a, local_mailbox);
-  }
-
-  return 0;
-}
index a8b4a2526a2a1106cbd923be5d42762a8cf0f820..6f099079c12ea72022679f1fd456936db3225847 100644 (file)
@@ -32,7 +32,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "mutt_lua.h"
-#include "address.h"
 #include "globals.h"
 #include "mailbox.h"
 #include "mbtable.h"
index fb01225f52bbe01cc8d6459a207a3fda77dc1646..1c825af9aba7e1a3fc8deca681a044c62e387ff3 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -42,7 +42,6 @@
 #include <wchar.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "envelope.h"
diff --git a/mx.c b/mx.c
index e32cd87f62ee253b9385a0a5978616ebb9508e87..c81d1a9c89863d68586d57f6ce7918825e3d793f 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -33,7 +33,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "mx.h"
-#include "address.h"
 #include "body.h"
 #include "buffy.h"
 #include "context.h"
index 4cf1795cd939f88ebb6c46892d9404699da34fcc..29b034474eedd9c55f95a308392aa4fa59972398 100644 (file)
@@ -34,7 +34,6 @@
 #include <time.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "content.h"
index 1690c461e5678ac13fa97b29cefc862af6394549..6f5a943ae09809202103311060dd065602d617ba 100644 (file)
@@ -44,7 +44,6 @@
 #include <unistd.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "crypt.h"
index b684878ebeab1f5c3a5a4e0fb13136f61e2fe517..a622ab64622617bb0df2b875a7dc0b45befcf696 100644 (file)
@@ -43,7 +43,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "pgp.h"
-#include "address.h"
 #include "body.h"
 #include "crypt.h"
 #include "cryptglue.h"
index b49c6ad1b4d1ebf19ac0d611e86a24a63616cb3f..07e33c3a4b2905ed85f2adbee106f1ce89d11929 100644 (file)
@@ -31,7 +31,6 @@
 #include <string.h>
 #include <unistd.h>
 #include "mutt/mutt.h"
-#include "address.h"
 #include "filter.h"
 #include "format_flags.h"
 #include "globals.h"
index 91c3077d6d6ce6dbab9f21f225157c41afb4fd85..f56c8d38ac3fe671490699232eb3a939ab0477be 100644 (file)
@@ -35,7 +35,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "pgpkey.h"
-#include "address.h"
 #include "body.h"
 #include "crypt.h"
 #include "filter.h"
index fa5f2a59c7c9356e7e97f52438feb73717cadd28..60412fc234d3c506e93a4ca8e3fd82f4c9fececd 100644 (file)
@@ -32,7 +32,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "smime.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "copy.h"
diff --git a/parse.c b/parse.c
index 219db043318cc91139e1ff7fc773dcae5e6a5cf7..778798cc80622e24a4e4c7de3a2343854878c832 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -30,7 +30,6 @@
 #include <time.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "body.h"
 #include "envelope.h"
 #include "globals.h"
index 400de908a608b86481bcd9c36d656161589876b0..b82c14fcff49fb0590e1cd2239a67451d13474df 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -37,7 +37,6 @@
 #include "conn/conn.h"
 #include "mutt.h"
 #include "pattern.h"
-#include "address.h"
 #include "body.h"
 #include "context.h"
 #include "copy.h"
index e7999332b5bc6d784d2eda179ec360a869511328..bc1e0040092ddf7ed6c3507ff66bc7b7f583521c 100644 (file)
@@ -27,7 +27,6 @@
 #include "mutt/mutt.h"
 #include "conn/conn.h"
 #include "mutt.h"
-#include "address.h"
 #include "globals.h"
 #include "mutt_account.h"
 #include "mutt_socket.h"
diff --git a/query.c b/query.c
index 0b0015ee30f6eea891da50353b882f1dc017963d..9ae9068c2f6924521e31224cf9e63570ef256a83 100644 (file)
--- a/query.c
+++ b/query.c
@@ -29,7 +29,6 @@
 #include <sys/types.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "envelope.h"
 #include "filter.h"
index c7a3f85c325d6423708aacb6b7eceea2c1b92273..e13087ae81fa52416fb7036549ee8ef4af91b7cf 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -27,7 +27,6 @@
 #include <string.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "attach.h"
 #include "body.h"
index 4ea72304cc2d40ad1b8a19173f09c93c07fc0761..bc4a58d8cf57ee44aed59d0b19711bcc884e3b79 100644 (file)
@@ -34,7 +34,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "remailer.h"
-#include "address.h"
 #include "envelope.h"
 #include "filter.h"
 #include "format_flags.h"
index 7a2c1d420076cf843ff03fa2b31cbce2a1e7b0f8..9e88f6a305cd06777d6b423a6a1fa15fe9549c52 100644 (file)
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -22,9 +22,9 @@
  */
 
 #include "config.h"
+#include "mutt/address.h"
 #include "mutt/charset.h"
 #include "mutt/rfc2047.h"
-#include "address.h"
 #include "globals.h"
 
 #include <string.h>
diff --git a/send.c b/send.c
index fb3704cd5219906a505ce0ee6574959b975d4cec..ad8d902d38d6fd654f0eab4e05797e8a3753ca2a 100644 (file)
--- a/send.c
+++ b/send.c
@@ -33,7 +33,6 @@
 #include <unistd.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "alias.h"
 #include "body.h"
 #include "context.h"
index f93e1fe9205abfa69b8ace0e9e1210be9b4d17ce..18f80f380408f5476b566777076265f66a313151 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -37,7 +37,6 @@
 #include <unistd.h>
 #include "mutt/mutt.h"
 #include "mutt.h"
-#include "address.h"
 #include "body.h"
 #include "buffy.h"
 #include "content.h"
diff --git a/smtp.c b/smtp.c
index fb5648e3232732314e05749ba88e03cd54696d64..d772df1ae99f7e4bf710d55c4813cdd3bb60285c 100644 (file)
--- a/smtp.c
+++ b/smtp.c
@@ -34,7 +34,6 @@
 #include "mutt/mutt.h"
 #include "conn/conn.h"
 #include "mutt.h"
-#include "address.h"
 #include "globals.h"
 #include "mutt_account.h"
 #include "mutt_curses.h"
diff --git a/sort.c b/sort.c
index 452abe670fe026619759d09b01fe2684244d5e49..12c782b4caf86ba8353c664460c569e3fad759f1 100644 (file)
--- a/sort.c
+++ b/sort.c
@@ -26,7 +26,6 @@
 #include <string.h>
 #include "mutt/mutt.h"
 #include "sort.h"
-#include "address.h"
 #include "body.h"
 #include "context.h"
 #include "envelope.h"
diff --git a/url.c b/url.c
index 8adea2cab5c51d693868ef3bcb56e88a7be2ef98..b869eb4f5ab5b8233e0995d55f4aab1644b12913 100644 (file)
--- a/url.c
+++ b/url.c
@@ -31,7 +31,6 @@
 #include "mutt/mutt.h"
 #include "mutt.h"
 #include "url.h"
-#include "address.h"
 #include "envelope.h"
 #include "globals.h"
 #include "protos.h"