Commit 986ab5e9 authored by Thomas Roessler's avatar Thomas Roessler

CVS branch clean-up.

parent 9044dd4d
This diff is collapsed.
Changes since 0.92.10i
----------------------
Tue Jun 16 15:15:00 1998 Thomas Roessler <roessler@guug.de>
* imap.h: Check in a proper version of imap.h.
* color.c: Fix the "unknown color" bug reported by Vikas.
* mx.c: Remove a spurious #include "imap.h" from mx.c.
* doc/style-guide: Add a note about the global Muttrc to style-guide.
* configure.in, Muttrc.in, configure, Attic/Muttrc, Makefile.in:
The global Muttrc contains a list of default settings
which can be used as a starting-point for the user's own
configuration.
* pgppubring.c, pgp.h, gnupgparse.c:
Removing some duplicate code from gnupgparse.c and
pgppubring.c.
* pgpinvoke.c, gnupgparse.c:
Include part of Werner Koch's latest GPG patches.
......@@ -18,6 +18,7 @@ systems:
MkLinux
NetBSD
QNX
SCO Unix 3.2v4/5
Solaris
SunOS
Ultrix
......@@ -37,11 +38,12 @@ systems:
Installation
============
Installing Mutt is rather painless through the use of the GNU autoconf
package. Simply untar the Mutt distribution, and run the ``configure''
script. In most cases, it will automatically determine everything it needs
to know in order to compile. However, there are a few options to
``configure'' to help it out, or change the default behavior:
Installing Mutt is rather painless through the use of the GNU
autoconf package. Simply untar the Mutt distribution, and run the
``configure'' script. In most cases, it will automatically determine
everything it needs to know in order to compile. However, there are
a few options to ``configure'' to help it out, or change the default
behavior:
--prefix=DIR
install Mutt in DIR instead of /usr/local
......@@ -71,22 +73,19 @@ to know in order to compile. However, there are a few options to
--enable-pop
enable POP3 support
--enable-hidden-host
local hostname is not part of the FQDN.
--with-rx
use GNU rx instead of local regexp routines. Many systems don't
have the POSIX compliant regcomp/regexec/regfree routines, so this
provides a way to support them.
--enable-flock
use flock() to lock files
use flock() to lock files.
--disable-fcntl
by default, Mutt uses fcntl() to lock files. Over NFS this can
result in poor performance on read/write. Note that using this
option could be dangerous if dotlocking is also disabled
option could be dangerous if dotlocking is also disabled.
--enable-nfs-fix
some implementations of NFS do not always write the
atime/mtime of small files. This means that Mutt's ``mailboxes''
......@@ -114,12 +113,17 @@ to know in order to compile. However, there are a few options to
when you press '!'. Only use this option to solve the above problem,
and only specify one of the above shells as its argument.
(If you encounter this problem with your platform's native
Bourne shell, please send a short report to mutt-dev@cs.hmc.edu,
so a short note on this topic can be added to the Platform notes
section below.)
--enable-exact-address
By default, Mutt will rewrite all addresses in the form
Personal Name <user@host.domain>
regardless of the input. By enabling this option, Mutt will write
addresses in the same form they are parsed. NOTE: this requires
significantly more memory
significantly more memory.
Once ``configure'' has completed, simply type ``make install.''
......@@ -129,9 +133,18 @@ A_NORMAL or KEY_MIN, then you probably don't have a SysV compliant curses
library. You should install either ncurses or S-Lang (see above), and then
run the ``configure'' script again.
Platform Notes
==============
All platforms
There is a bug in most (if not all) S-Lang versions which
prevents the Meta key from working with mutt. A patch can be
found in the file patch.slang-1.2.2.keypad.1 in this mutt
distribution.
Solaris 2.4
The system regcomp() and regexec() routines are very badly broken.
......@@ -142,3 +155,34 @@ Solaris 2.4
Color does not work right with Solaris curses. You will have to
compile with either ncurses or slang to get working color support.
Linux
On recent Linux systems, flock() and fcntl() locks don't mix. If
you use the --enable-flock switch on such systems, be sure to
give the --disable-fcntl argument as well.
The Linux libc 5.4.45 disables locale support in programs running
setgid mail. You'll need to use the configure switch
"--enable-locales-fix". If you're using a non-iso-8859 font, you
lose. This is not an issue on glibc (libc 6) based systems.
Digital Unix (OSF/1)
Don't try "--with-rx", because you won't be able to match
anything (using system's regex functions seems to work fine
though).
Also, the system curses library is said to be badly broken. Use
GNU ncurses or SLang instead.
FreeBSD 3.0
/bin/sh is broken on this platform. You need the
"--with-exec-shell" configuration switch here; ksh
and bash are reported to be fine.
This may also be an issue with earlier FreeBSD
versions.
......@@ -32,21 +32,22 @@ VPATH=@srcdir@
INSTALL=@INSTALL@
CC=@CC@
XCPPFLAGS=-I. @CPPFLAGS@
CFLAGS=@CFLAGS@ -DSHAREDIR=\"$(sharedir)\" $(XCPPFLAGS)
XCPPFLAGS=-I. @CPPFLAGS@ -DSHAREDIR=\"$(sharedir)\" -DDOTLOCK=\"$(bindir)/mutt.dotlock\"
CFLAGS=@CFLAGS@ $(XCPPFLAGS)
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
OPS=@OPS@
OBJS= addrbook.o alias.o attach.o browser.o buffy.o color.o \
commands.o complete.o compose.o copy.o curs_lib.o curs_main.o date.o \
edit.o enter.o flags.o init.o filter.o from.o getdomain.o \
handler.o hash.o hdrline.o headers.o help.o hook.o keymap.o lib.o \
handler.o hash.o hdrline.o headers.o help.o \
history.o hook.o keymap.o lib.o \
main.o mbox.o menu.o mh.o mx.o pager.o parse.o pattern.o \
postpone.o query.o recvattach.o rfc822.o \
rfc1524.o rfc2047.o score.o send.o sendlib.o signal.o sort.o \
status.o system.o thread.o @LIBOBJS@
CLEANFILES=mutt *.o core
CLEANFILES=dotlock mutt *.o core
VERYCLEANFILES=$(CLEANFILES) Makefile config.cache config.log \
config.status config.h Muttrc
DISTCLEANFILES=$(VERYCLEANFILES) tags keymap_defs.h *.rej *.orig *~ Makefile.bak
......@@ -56,19 +57,22 @@ NONEXPORT=pgp.c pgp.h pgpinvoke.c pgpkey.c pgppubring.c sha.h sha1dgst.c \
gnupgparse.c sha_locl.h OPS.PGP doc/pgp-Notes.txt doc/language.txt \
doc/language50.txt
all: mutt
all: mutt @DOTLOCK_TARGET@
mutt: keymap_defs.h $(OBJS) $(REGEX)
$(CC) -o mutt $(OBJS) $(REGEX) $(LDFLAGS) $(LIBS)
dotlock: dotlock.o @SNPRINTFOBJS@
$(CC) -o dotlock dotlock.o @SNPRINTFOBJS@
keymap_defs.h: Makefile $(OPS)
rm -f keymap_defs.h
$(srcdir)/gen_defs $(OPS) > keymap_defs.h
install: mutt install.doc
install: mutt install.doc @DOTLOCK_INSTALL_TARGET@
$(srcdir)/mkinstalldirs $(bindir)
-mv -f $(bindir)/mutt $(bindir)/mutt.old
$(INSTALL) @MUTT_GROUP@ -m @MUTT_PERMISSION@ mutt $(bindir)
$(INSTALL) -m 755 mutt $(bindir)
-if [ ! -f $(sharedir)/Muttrc ]; then \
$(srcdir)/mkinstalldirs $(sharedir); \
$(INSTALL) -m 644 $(srcdir)/Muttrc $(sharedir); \
......@@ -77,14 +81,19 @@ install: mutt install.doc
$(INSTALL) -m 644 $(srcdir)/mime.types $(sharedir); \
fi
install.dotlock: dotlock
$(srcdir)/mkinstalldirs $(bindir)
-mv -f $(bindir)/mutt.dotlock $(bindir)/mutt.dotlock.old
$(INSTALL) @DOTLOCK_GROUP@ -m @DOTLOCK_PERMISSION@ dotlock $(bindir)/mutt.dotlock
install.doc:
make -C $(srcdir)/doc/ install
( cd $(srcdir)/doc && make install )
uninstall: uninstall.doc
rm -f $(bindir)/mutt $(sharedir)/Muttrc
rm -f $(bindir)/mutt $(sharedir)/Muttrc $(bindir)/mutt.dotlock
uninstall.doc:
make -C $(srcdir)/doc/ uninstall
( cd $(srcdir)/doc/ && make uninstall )
$(srcdir)/configure: $(srcdir)/configure.in
autoconf
......
......@@ -8,11 +8,11 @@ ignore "from " received content- mime-version status x-status message-id
ignore sender references return-path lines
# imitate the old search-body function
macro index \eb '/~b '
macro index \eb '/~b ' 'search in message bodies'
# simluate the old url menu
macro index \cb |urlview\n
macro pager \cb |urlview\n
macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
# If Mutt is unable to determine your sites domain name correctly, you can
# set the default here.
......@@ -55,7 +55,6 @@ macro pager \cb |urlview\n
# set dsn_return=""
# unset edit_headers
# set editor=""
# set empty_to="undisclosed-recipients"
# set escape="~"
# unset fast_reply
# unset fcc_attach
......
Announcing Mutt 0.91
====================
Major changes since 0.91.1
--------------------------
NOTE: PLEASE read the following list of changes carefully, especially the
first couple entries related to changes in variables/commands and see the
manual before posting questions. Taking a little time to read this notice
will significantly reduce the amount of confusion as to why some things
might seem broken at first.
Major changes since 0.89.1:
- The matching for the send-hook, save-hook and fcc-hook commands has been
extended so that it understands Mutt's matching language (used for
searching and limits). You may still use a "simple" regular expression,
but Mutt will expand that with the value of $default_hook (similar to
$simple_search). Additionally, all hooks are now executed in the order
they appear in your .muttrc instead of first doing `to', then `cc'.
- new config command `score' which allows you to assign a numerical value to
a message based upon header information (similar to scoring in slrn). the
score can be displed in $hdr_format with %N, you can sort by `score' and
you can match messages with a certain score (or range) with the `~n'
operator
- new variable $beep_new which causes Mutt to beep when new mail is
delivered to a mailbox specified by the `mailboxes' command
- new sort method `to' for sorting by who messages are addressed to
- new variable $meta_key which causes Mutt to interpet keystrokes with the
hi bit set as ESC plus the key with the hi bit stripped (eg. ALT-x will
get interpetted as "\ex")
- new variable $sort_alias which controls the order the aliases appear in
the menu (may be either "alias" or "address")
- new variable $alias_format to control the way the aliases are displayed in
the alias menu
- additional format for $hdr_format
%L displays the total size of all visible messages in a
limited view
%<fmt> displays current time using strftime(fmt)
- additional operators to the pattern matching lanauge:
~S superseded messages
~E expired messages
~p personal mail (finds $alternates in to: or cc:)
~P mail from you (finds $alternates in from: or sender:)
~l list mail (finds `lists' in to: or cc:)
~L<pattern> finds <pattern> in to:, cc:, from: or sender:
~C<pattern> finds <pattern> in to: or cc:
- additional formats for $hdr_format
%N displays the message score
%(fmt) displayes the message's received time using strftime()
- additional formats for $status_format
%P percentage of menu seen
%S current value of $sort_aux (%s no longer displays $sort_aux)
%o number of old messages
%u number of unread messages
- new configure option `--enable-exact-address' which causes Mutt to rewrite
addresses in the same format they were parsed instead of rewriting them in
the form `Name <user@host>'
- new command line argument `-e' which allows you to specify configuration
commands to be executed *after* your .muttrc is parsed
(eg. mutt -e 'set edit_hdrs' mutt-dev)
- you can now use `mono <object> normal' to set to normal attribute
- new function `search-opposite' which searches for the current search
pattern in the opposition direction from the previous search
Mutt's primary distribution point is ftp://ftp.cs.hmc.edu/pub/me/mutt.
See the Mutt Home Page (http://www.cs.hmc.edu/~me/mutt/) for mirror sites.
Bug reports should be sent to the Mutt User's Mailing List
<mutt-users@cs.hmc.edu>.
Michael Elkins <me@cs.hmc.edu>
April 10, 1998
~B<pattern> finds pattern anywhere in the message (more
efficient than ~h %s | ~b %s
~z<size> finds messages of size <size>
E.g.
~z<10k #finds messages smaller than 10KB
~z>10k #finds messages larger than 10KB
~z10k #finds messages exactly 10KB in length
- the $hdr_format variable is renamed to $index_format
$hdr_format is still accepted for backwards compatibility
- new variable $folder_format to display entries in the 'browser' menu.
- new variable $followup_to to control generation of Mail-Followup-To
field. You can edit this field and Mutt will not overwrite it.
- new variable $sendmail_wait
Specifies the number of seconds to wait for the ``sendmail'' process
to finish before giving up and putting delivery in the background.
Mutt interprets the value of this variable as follows:
>0 number of seconds to wait for sendmail to finish before continuing
0 wait forever for sendmail to finish
<0 always put sendmail in the background without waiting
Note that if you specify a value other than 0, the output of the child
process will be put in a temporary file. If there is some error, you
will be informed as to where to find the output.
- Variable $sendmail_bounce has been removed. Mutt now passes all
recipients on the command line for normal sending.
- new variable $query_command
Adds support for querying an external database for email addresses.
- The $forward_decode variable has been removed. This has been split into 2
variables
$forward_decode - used when $mime_fwd is not set
$mime_forward_decode - used when $mime_fwd is set
- new variable $wrap_search. This controls whether searches wrap around the
end of the mailbox.
When set, searches will wrap around the first (or last) message. When
unset, searches will not wrap
- New command 'reset' to reset variables to their default compile-time
definitions. When used with special keyword 'all', all variables are
reset to their default values. When used with the 'set' command and the
variable name prefixed with '&', this has the same behaviour as the
'reset' command.
Eg.
reset move
reset all
set &move
set &all
- Function key names used in muttrc need to be enclosed in <>.
Function keys can be used in macros also.
Eg.
macro index Y *<PageUp>
bind index <down> next-entry
- You can now delete a message's attachments by pressing 'd' (delete-entry)
on the attachment in the attachment menu.
- You can now color index menu entries using the pattern matching language.
The 'uncolor' command resets the entry to its default color. The '*'
token can be used to reset all index entries to their default colors.
Eg.
color index blue white ~fvikas
color index red white ~z>100k
uncolor index ~fvikas
uncolor index *
- mailboxes specified in save-hooks can be %-expanded using $header_format
- the default save mailbox no longer looks at defined `lists'. To get the
old behaviour, use
save-hook ~l %B
- optional strings in format strings have been extended to allow for an
`else' clause. the new syntax is:
%?<testchar>?<if-string>&<else-string>?
or if no `else' clause is desired (backwards compatibility):
%?<testchar>?<if-string>?
- If new mail is delivered to a folder when Mutt is displaying a limited
view of the folder, it is added to the limited view only if it satisfies
the current limit criteria.
- the <Tab> key on the command-line now completes commands and variable
names. The longest non-ambiguous part is put on the command-line.
Entering additional text and using <Tab> will perform completion again.
......@@ -4,9 +4,11 @@ OP_ATTACH_VIEW_TEXT "view attachment as text"
OP_BOTTOM_PAGE "move to the bottom of the page"
OP_BOUNCE_MESSAGE "remail a message to another user"
OP_BROWSER_NEW_FILE "select a new file in this directory"
OP_BROWSER_VIEW_FILE "view file"
OP_CHANGE_DIRECTORY "change directories"
OP_CHECK_NEW "check mailboxes for new mail"
OP_COMPOSE_ATTACH_FILE "attach a file(s) to this message"
OP_COMPOSE_ATTACH_MESSAGE "attach message(s) to this message"
OP_COMPOSE_EDIT_BCC "edit the BCC list"
OP_COMPOSE_EDIT_CC "edit the CC list"
OP_COMPOSE_EDIT_DESCRIPTION "edit attachment description"
......@@ -27,6 +29,7 @@ OP_COMPOSE_POSTPONE_MESSAGE "save this message to send later"
OP_COMPOSE_RENAME_FILE "rename/move an attached file"
OP_COMPOSE_SEND_MESSAGE "send the message"
OP_COMPOSE_TOGGLE_UNLINK "toggle whether to delete file after sending it"
OP_COMPOSE_UPDATE_ENCODING "update an attachment's encoding info"
OP_COPY_MESSAGE "copy a message to a file/mailbox"
OP_CREATE_ALIAS "create an alias from a message sender"
OP_CURRENT_BOTTOM "move entry to bottom of screen"
......@@ -132,6 +135,7 @@ OP_TAG_SUBTHREAD "tag the current subthread"
OP_TAG_THREAD "tag the current thread"
OP_TOGGLE_NEW "toggle a message's 'new' flag"
OP_TOGGLE_WRITE "toggle whether the mailbox will be rewritten"
OP_TOGGLE_MAILBOXES "toggle wether to browse mailboxes or all files"
OP_TOP_PAGE "move to the top of the page"
OP_UNDELETE "undelete the current entry"
OP_UNDELETE_THREAD "undelete all messages in thread"
......
README for mutt-0.90i
=======================
README for mutt-0.93i
=====================
Installation instructructions are detailed in ``INSTALL''.
Installation instructions are detailed in ``INSTALL''.
The user manual is in doc/manual.txt.
The user manual is in doc/manual.txt. A list of major
changes since the last public version can be found under
NEWS.
PGP users please read doc/PGP-Notes.txt before proceeding.
For more information, see the Mutt home page,
http://www.cs.hmc.edu/~me/mutt/index.html.
For more information, see the Mutt home page:
The primary distribution point for Mutt is
ftp://ftp.cs.hmc.edu/pub/me/mutt. See the home page for
mirror sites.
http://www.cs.hmc.edu/~me/mutt/index.html
Michael Elkins <me@cs.hmc.edu>, January 22, 1998
Thomas Roessler <roessler@guug.de>, February 3, 1998
The primary distribution points for Mutt are:
ftp://riemann.iam.uni-bonn.de/pub/mutt/
ftp://ftp.guug.de/pub/mutt
Mirror sites for the pgp-enabled version of mutt can be
found at the following places:
ftp://ftp.gbnet.net/pub/mutt-international/
ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/
ftp://pgp.rasip.fer.hr/pub/mutt/international/
ftp://ftp.gwdg.de/pub/unix/mail/mutt
ftp://ftp.iks-jena.de/pub/mitarb/lutz/crypt/software/pgp/mutt
ftp://ftp.lip6.fr/pub/unix/mail/mutt
ftp://ftp.arch.pwr.wroc.pl/pub/mutt/
ftp://ftp.uib.no/pub/mutt
Mirror sites for the pgp-disabled version:
ftp://ftp.ewd.3com.com/pub/mutt/
Thomas Roessler <roessler@guug.de>, July 10, 1998
- Other than multipart/mixed and PGP/MIME, Mutt should allow the user to
specify what to do with other types of multipart messages (i.e., so a user
can deal with S/MIME messages reasonably)
This list tries to cover the open problems we have with
mutt. It's compiled from the old BUGS and TODO files in
the distribution, from recent mutt-dev postings, and from
other messages relating to problems and/or wishes with
mutt.
I'm listing the problems in approximate order of priority.
- Fix the "unexpected EXPUNGE" IMAP bug.
- Ask IMAP servers for hierarchy separators. (-> Brandon's
note from Aug 18)
- Apply proper quoting when sending imap "ASTRING"s. (->
John Prevost wrote something on this on Aug 19).
- When using EXACT_ADDRESS, the following memory leak may
occur (insure++ output):
| [rfc822.c:400] **LEAK_ASSIGN**
| >> last->val = mutt_substrdup (begin, s);
|
| Memory leaked due to pointer reassignment: (void *) malloc(siz)
|
| Lost block : 0x082e7da0 thru 0x082e7db6 (23 bytes)
| (void *) malloc(siz), allocated at:
| safe_malloc() lib.c, 283
| mutt_substrdup() lib.c, 861
| rfc822_parse_adrlist() rfc822.c, 377
| mutt_read_rfc822_header() parse.c, 1112
| mbox_parse_mailbox() mbox.c, 272
| mbox_open_mailbox() mbox.c, 390
| mx_open_mailbox() mx.c, 598
| mutt_index_menu() curs_main.c, 874
|
| Stack trace where the error occurred:
| rfc822_parse_adrlist() rfc822.c, 400
| mutt_read_rfc822_header() parse.c, 1112
| mbox_parse_mailbox() mbox.c, 272
| mbox_open_mailbox() mbox.c, 390
| mx_open_mailbox() mx.c, 598
| mutt_index_menu() curs_main.c, 874
| main() main.c, 635
|
| ************************** INSURE SUMMARY ************************* v4.1 **
| * Program : mutt *
| * Arguments : *
| * Directory : /home/olga/Mail *
| * Compiled on : Aug 18, 1998 19:52:01 *
| * Run on : Aug 18, 1998 19:57:08 *
| * Elapsed time : 00:04:26 *
| * Malloc HWM : 855,258 bytes (835K) *
| ***************************************************************************
|
| PROBLEM SUMMARY - by type
| ===============
|
| Problem Reported Suppressed
| -------------------------------------------------
| LEAK_ASSIGN 1 1
| RETURN_FAILURE 0 70
| USER_ERROR 0 24
| -------------------------------------------------
| TOTAL 1 95
| -------------------------------------------------
|
| PROBLEM SUMMARY - by location
| ===============
|
| LEAK_ASSIGN: Memory leaked due to pointer reassignment, 1 unique occurrence
| 2 at rfc822.c, 400
|
- In the "attachment" menu, assume this:
1 [text/plain, 7bit, 1.1K] <no description>
2 [message/rfc822, 7bit, 6.1K] A test message
3 [text/plain, 7bit, 0.1K] |-><no description>
4 [message/rfc822, base64, 2.5K] |-><no description>
5 [message/rfc822, base64, 2.7K] `-><no description>
(please note the "message/rfc822" attachments encoded as
Base64; that's illegal, but Sun's Mailtool sends that
kind of messages); then go to, say, attachment "4",
delete it, and go to the main menu; you won't be able to
quit the mailbox (ok, 'x' works, but 'q' doesn't).
The problem here lies in the fact that mutt uses mailbox
handling functions to access message/rfc822 type
attachments. We'd need to perform an additional
decoding step before using these functions to fix this
bug.
Please note that mutt's just assuming RFC-compliant mail
here. Fixing this stuff may become a PITA.
- mailbox resync code for mh and maildir mailboxes. This
will most probably help to fix the following problems:
In maildir folders, the cursor will jump to an
unpredictible message when new mail arrives.
When accessing maildir folders with two mutts in
parallel, messages which have been marked read (and thus
moved to the cur/ subdirectory) by one of the mutts
can't be read from the other one.
- Re-visit nametemplate support. Currently, we use
symbolic links in our temporary directory for this.
- BODY struct should probably have a pointer to its
corresponding HEADER struct. this is needed for
mh/maildir mailboxes so the correct pathname can be
found. Or perhaps all we need is a .hdr member of the
STATE struct so that all of the MIME handlers can look
up the corresponding HEADERs if need be?
- option to not include attachments in replies
- handle message/external-body in some fashion
- handle message/partial reconstruction
- not possible to view the header of a single part message which contains
something that requires a mailcap entry to view
- need to clean up the error recovery when running out of space when syncing
a mbox/mmdf mailbox
- BODY struct should probably have a pointer to its corresponding HEADER
struct. this is needed for mh/maildir mailboxes so the correct pathname
can be found. Or perhaps all we need is a .hdr member of the STATE struct
so that all of the MIME handlers can look up the corresponding HEADERs if
need be?
- mailbox resync code for mh and maildir mailboxes
- fold long user-defined header fields
- history classes
- document honored environment variables
- add -v flag to pass to sendmail...
- ordered tag
- rfc822 parser needs to do something with the @host1@host2: portion of the
route-addr
- command completion for `enter-command'
- new forward command to include first attachment in the editor and attach
other attachments to the message
- adjust the names of *adr() and *adrlist() and calling routines for
consistency
- mbox-hook entries should override $move?
- add a preserved flag to messages
- not possible to view the header of a single part message
which contains something that requires a mailcap entry to
view
......@@ -48,9 +48,6 @@
/* Where new mail is spooled */
#undef MAILPATH
/* Should I just use the domain name? (--enable-hidden-host) */
#undef HIDDEN_HOST
/* Does your system have the srand48() suite? */
#undef HAVE_SRAND48
......@@ -111,3 +108,6 @@
/* Does your system have the vsnprintf() call? */
#undef HAVE_VSNPRINTF
/* Does your system have the fchdir() call? */
#undef HAVE_FCHDIR
......@@ -18,6 +18,7 @@
#include "mutt.h"
#include "mutt_menu.h"
#include "mapping.h"
#include "sort.h"
#include <string.h>
......
......@@ -18,6 +18,7 @@
#include "mutt.h"
#include "mutt_regex.h"
#include "mutt_curses.h"
#include <pwd.h>
#include <string.h>
......@@ -37,7 +38,8 @@ static ADDRESS *mutt_expand_aliases_r (ADDRESS *a, LIST **expn)
ADDRESS *head = NULL, *last = NULL, *t, *w;
LIST *u;
char i;
const char *fqdn;
while (a)
{
if (!a->group && !a->personal && a->mailbox && strchr (a->mailbox, '@') == NULL)
......@@ -90,8 +92,7 @@ static ADDRESS *mutt_expand_aliases_r (ADDRESS *a, LIST **expn)
*p = 0;
a->personal = safe_strdup (buffer);
#ifdef EXACT_ADDRESS
free (a->val);
a->val = NULL;
FREE (&a->val);
#endif
}
}
......@@ -108,10 +109,10 @@ static ADDRESS *mutt_expand_aliases_r (ADDRESS *a, LIST **expn)
last->next = NULL;
}
if (option (OPTUSEDOMAIN) && Fqdn[0] != '@')
if (option (OPTUSEDOMAIN) && (fqdn = mutt_fqdn(1)))
{
/* now qualify all local addresses */
rfc822_qualify (head, Fqdn);
rfc822_qualify (head, fqdn);
}
return (head);
......@@ -205,13 +206,19 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr)
else
buf[0] = 0;
if (