/[mailutils]/mailutils/mail/send.c
ViewVC logotype

Log of /mailutils/mail/send.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.62
Mon Dec 8 15:22:09 2008 UTC (15 years, 4 months ago) by cvs2git
Branch: MAIN
CVS Tags: HEAD
Changes since 1.61: +0 -0 lines
FILE REMOVED
remove all files; README-use-git: add this one new file


Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Fri Oct 24 21:18:21 2008 UTC (15 years, 6 months ago) by gray
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60
Initial implementation of a `prog' mailer.

* configure.ac: Enable/disable prog mailer support.
* include/mailutils/progmailer.h: New file.
* include/mailutils/Makefile.am (pkginclude_HEADERS): Add
progmailer.h
* include/mailutils/mailutils.h: Include progmailer.h
* include/mailutils/registrar.h (MU_PROG_PRIO): New define.
(mu_prog_record): New extern.
(mu_register_all_mailer_formats): Register mu_prog_record.
* include/mailutils/types.hin (mu_progmailer_t): New typedef.
* libproto/include/registrar0.h (MU_PROG_SCHEME)
(MU_PROG_SCHEME_LEN): New defines.
* libproto/mailer/prog.c: New file.
* libproto/mailer/Makefile.am (libmu_mailer_la_SOURCES): Add
prog.c
* libproto/mailer/sendmail.c: Rewrite using mu_progmailer_t
* libproto/remote/folder.c (_remote_is_scheme): Remove unused
variable.
* mailbox/progmailer.c: New file
* mailbox/Makefile.am (libmailutils_la_SOURCES): Add progmailer.c

* mailbox/acl.c (_expand_aclno): Add a fixme.
* mail/send.c (msg_to_pipe): Bugfix: use pclose, instead of fclose.
* examples/config/mailutils.schema: Update.


Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Tue Dec 4 09:48:33 2007 UTC (16 years, 4 months ago) by gray
Branch: MAIN
Changes since 1.59: +1 -3 lines
Diff to previous 1.59
* imap4d/imap4d.h: Include xalloc.h
* frm/common.c, imap4d/imap4d.c: Shut compiler warnings.
* include/mailutils/cfg.h (mu_cfg_format_tree): Rename to
mu_cfg_format_parse_tree
(mu_cfg_format_container,mu_format_config_tree): New functions.
(mu_parse_config_tree): New prototype.
(mu_cfg_tree_create_node): Change signature (const char* instead
of char*).
* include/mailutils/gocs.h (mu_gocs_register): First arg is const.
* include/mailutils/libargp.h (mu_argp_node_list_new): Mark
invariable arguments as const.
* include/mailutils/libcfg.h (mu_libcfg_init): Remove const from
the arg.
* include/mailutils/mutil.h (mu_spawnvp): Remove const from the
2nd arg.
* libargp/cmdline.c (mu_argp_node_list_new): Mark invariable
arguments as const.

* lib/mailcap.h: New file.
* lib/Makefile.am (libmuaux_la_SOURCES): Add mailcap.h
* libargp/cmdline.h (mu_help_config_mode): New extern.
* libargp/common.c: New option --config-help displays a
configuration file summary.
* libargp/muinit.c (mu_app_init): Handle --config-help.
* libcfg/init.c (mu_libcfg_init): Remove const from the arg.
* maidag/maidag.h (mda): New prototype.
* mail/decode.c: Include mailcap.h
* mail/mail.h: Define _GNU_SOURCE before including stdio.h
* mail/send.c: Fix includes.
* mail.remote/mail.remote.c: Include mu_umaxtostr.h

* mailbox/cfg_format.c (mu_cfg_data_type_string)
(mu_cfg_format_container): New function.
* mailbox/cfg_lexer.c (mu_build_container): New function.
(mu_parse_config_tree): Use mu_build_container.
(mu_format_config_tree): New function.
* mailbox/cfg_parser.y (mu_cfg_tree_create_node): Change proto.
* mailbox/gocs.c (struct mu_gocs_entry): Name is const.
(mu_gocs_register): 1st arg (capa) is const.
* mailbox/mutil.c (mu_spawnvp): Remove const from the 2nd arg.
* mh/mh_whatnow.c (invoke): Shut compiler warnings.
* mimeview/mimetypes.l (mimetypes_open): Shut compiler warnings.
* mimeview/mimeview.c: Include mailcap.h
(display_file): Shut compiler warnings.
* readmsg/readmsg.c: Include mu_umaxtostr.h
* sieve/sieve.c (parser): Remove unused variable.


Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Wed Nov 28 09:14:20 2007 UTC (16 years, 4 months ago) by gray
Branch: MAIN
CVS Tags: mu-1-2-90-separate-argp-cfg
Changes since 1.58: +1 -2 lines
Diff to previous 1.58
Introduce "global debug settings". Mailutils objects are supposed
to set their default mu_debug_t objects basing on these settings.

* include/mailutils/Makefile.am: Add debug.hin. Build debug.h from
it.
* include/mailutils/debug.hm4: New file.
* include/mailutils/debug.h: Remove generated file.
* scripts/Makefile.am (EXTRA_DIST): Add debugdef.m4
* scripts/debugdef.m4: New file.

* include/mailutils/gocs.h (struct mu_gocs_debug): New data type.
(mu_gocs_register_std): Argument is const.
(mu_gocs_debug_init): New function.
* include/mailutils/libargp.h (mu_debug_cmdline): New extern.
* include/mailutils/libcfg.h (mu_debug_cfg_capa): New extern.
* libargp/cmdline.c: Add mu_debug_cmdline
* libargp/common.c: Add debug settings.
* libargp/mu_argp.c (struct cap_buf.capa): Remove const qualifier.
* libcfg/common.c (mu_locking_param): Remove superfluous `lock-'
prefix from the statement names.
(mu_debug_param): New parameter group.
* libcfg/init.c: Add mu_debug_param.
* mailbox/gocs.c (mu_gocs_debug_init): New function.

* mailbox/Makefile.am (libmailutils_la_SOURCES): Add gdebug.c
* mailbox/gdebug.c: New file
* mailbox/debug.c (mu_debug_printf, mu_debug_vprintf)
(mu_debug_check_level): New functions.
(mu_debug_printv, mu_debug_print): Rewrite using new basic calls.

* comsat/comsat.c, dotlock/dotlock.c, examples/muauth.c,
mail.remote/mail.remote.c: Add debug capability.
* frm/frm.c, frm/from.c, guimb/main.c, imap4d/imap4d.c,
mail/mail.c, mail.local/main.c, messages/messages.c,
pop3d/pop3d.c, readmsg/readmsg.c: Add locking and debug capabilities.

* examples/mimetest.c, examples/msg-send.c, frm/common.c,
libargp/auth.c, libmu_scm/mu_message.c, mail/send.c, mh/send.c,
mimeview/mimeview.c, movemail/movemail.c, sieve/sieve.c: Update
invocation of mu_debug_set_level.

* libproto/imap/folder.c, libproto/imap/mbox.c,
libproto/include/folder0.h, libproto/include/mailbox0.h,
libproto/include/mailer0.h, libproto/mailer/sendmail.c,
libproto/mailer/smtp.c, libproto/mbox/mbox.c,
libproto/nntp/folder.c, libproto/nntp/nntp_debug.c,
libproto/pop/mbox.c, libproto/pop/pop3_debug.c, mailbox/amd.c,
mailbox/mailer.c, mailbox/message.c, mailbox/mu_auth.c: Use
MU_DEBUG[0-9] for debugging.

* mailbox/muerror.c: Include string.h
* mailbox/syslog.c (syslog_to_n): Remove unused variable.
* mailbox/assoc.c (struct _mu_assoc_elem): name is not const.
* mailbox/cfg_lexer.c: Quoted strings can be continued to the
following line either by using a trailing backslash or by
concatenating strings together, as in C.
* mailbox/mailbox.c (_create_mailbox): Initialize debug object
using global "mailbox" level.
(mu_mailbox_create): Fix bug introduced on 2007-11-26.

* include/mailutils/libsieve.h (mu_sieve_set_debug_level): Change
prototype.
(mu_sieve_set_debug_object): New prototype.
* libsieve/sieve.y (mu_sieve_machine_init): Initialize debug
object from "sieve" global level.
(mu_sieve_set_debug_level): Set only debug_level.
(mu_sieve_set_debug_object): New function.

* maidag/maidag.c: Remove explicit setting of debug object. Add
"debug" group, which provides the required functionality.
(set_debug_flags): Likewise. This function and the corresponding
command line option are fading out in favor of global debug
settings.


Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sun Nov 18 10:17:43 2007 UTC (16 years, 5 months ago) by gray
Branch: MAIN
Changes since 1.57: +0 -1 lines
Diff to previous 1.57
Make libmailutils independent from gnulib. Remove generated files
from the repository. Bootstrap directly from the gnulib CVS.

* configure.ac: Update.
* lib/Makefile.am: Update.
* mailbox/Makefile.am: Update.
* include/mailutils/Makefile.am (SUBDIRS): Remove gnu
* include/mailutils/gnu/Makefile.am: Remove
* examples/argcv.c, examples/mta.c, guimb/guimb.h,
imap4d/imap4d.h, libargp/mu_argp.c, libargp/tls.c,
maidag/maidag.h, mail/mail.h, mail/send.c,
mail.local/mail.local.h, mh/mh.h: Remove getline.h
* libproto/nntp/mbox.c: Include mailutils/md5.h
* libargp/cmdline.h: Include strings.h
* m4/debug.m4, m4/enable.m4, m4/gsasl.m4, m4/guile.m4,
m4/mu_libobj.m4: Minor fix
* m4/intmax.m4,m4/inttypes-pri.m4,m4/inttypes_h.m4: Update
* mailbox/alloca.h: Remove
* mailbox/mailbox.c: Include string.h
* mailbox/nls.c: Include locale.h
* po/Makevars: Remove.

* absolute-header.m4, alloca.m4, allocsa.m4, argp.m4, codeset.m4,
d-type.m4, eealloc.m4, eoverflow.m4, error.m4, exitfail.m4,
extensions.m4, fnmatch.m4, full-header-path.m4, getdelim.m4,
getline.m4, getlogin_r.m4, getndelim2.m4, getopt.m4, getpass.m4,
gettext.m4, glibc2.m4, glibc21.m4, glob.m4, gnulib.m4, iconv.m4,
intdiv0.m4, isc-posix.m4, lcmessage.m4, lib-ld.m4, lib-link.m4,
lib-prefix.m4, lock.m4, longdouble.m4, longlong.m4,
mailbox-link.m4, mbchar.m4, mbiter.m4, mbrtowc.m4, mbstate_t.m4,
mbswidth.m4, memchr.m4, mempcpy.m4, minmax.m4, obstack.m4,
onceonly.m4, po.m4, printf-posix.m4, progtest.m4, regex.m4,
restrict.m4, setenv.m4, signed.m4, size_max.m4, snprintf.m4,
ssize_t.m4, stat-macros.m4, stdbool.m4, stdint.m4, stdint_h.m4,
strcase.m4, strchrnul.m4, strdup.m4, strerror_r.m4, strndup.m4,
strnlen.m4, strtok_r.m4, sysexits.m4, uint32_t.m4, uintmax_t.m4,
ulonglong.m4, unistd_h.m4, unlocked-io.m4, vasnprintf.m4,
vasprintf.m4, visibility.m4, vsnprintf.m4, wchar_t.m4, wcwidth.m4,
wint_t.m4, xalloc.m4, xsize.m4: Remove.

* alloca.c, allocsa.c, allocsa.h, asprintf.c, basename.c, error.c,
error.h, exit.h, exitfail.c, exitfail.h, fnmatch.c, fnmatch_.h,
fnmatch_loop.c, getpass.c, getpass.h, intprops.h, malloc.c,
mbswidth.c, mbswidth.h, md5.c, md5.h, obstack.c, obstack.h,
realloc.c, setenv.c, setenv.h, snprintf.c, snprintf.h, stdbool.h,
stdbool_.h, strcasecmp.c, strncasecmp.c, strsignal.c, strtok_r.c,
unsetenv.c, utmp.c, vasprintf.c, vasprintf.h, vsyslog.c,
xalloc-die.c, xalloc.h, xalloc_die.c, xmalloc.c, xsize.h,
xstrdup.c: Remove.

* alloca.c, alloca_.h, argp-ba.c, argp-eexst.c, argp-fmtstream.c,
argp-fmtstream.h, argp-fs-xinl.c, argp-help.c, argp-namefrob.h,
argp-parse.c, argp-pin.c, argp-pv.c, argp-pvh.c, argp-xinl.c,
argp.h, asnprintf.c, fnmatch.c, fnmatch_.h, fnmatch_loop.c,
getdelim.c, getdelim.h, getline.c, getline.h, getlogin_r.c,
getlogin_r.h, getndelim2.c, getndelim2.h, getopt.c, getopt.h,
getopt1.c, getopt_.h, getopt_int.h, gettext.h, glob-libc.h,
glob.c, glob_.h, malloc.c, mbchar.c, mbchar.h, mbuiter.h,
memchr.c, mempcpy.c, mempcpy.h, minmax.h, pin.c, printf-args.c,
printf-args.h, printf-parse.c, printf-parse.h, regcomp.c, regex.c,
regex.h, regex_internal.c, regex_internal.h, regexec.c,
stat-macros.h, stdbool_.h, stdint_.h, strcase.h, strcasecmp.c,
strchrnul.c, strchrnul.h, strdup.c, strdup.h, strncasecmp.c,
strndup.c, strndup.h, strnlen.c, strnlen.h, strnlen1.c,
strnlen1.h, strtok_r.c, strtok_r.h, sysexit_.h, unlocked-io.h,
vasnprintf.c, vasnprintf.h, vsnprintf.c, vsnprintf.h, wcwidth.h,
xsize.h: Remove.


Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Sat Nov 17 16:38:18 2007 UTC (16 years, 5 months ago) by gray
Branch: MAIN
CVS Tags: mu-1-2-90-included-gnulib
Changes since 1.56: +1 -1 lines
Diff to previous 1.56
Move rc file and argp parsing into separate abstract layers.

* include/mailutils/gocs.h, include/mailutils/pam.h,
include/mailutils/radius.h, include/mailutils/syslog.h: New files
* lib/argpinit.c, lib/muinit.c, lib/muinit.h: New files.
* libsieve/conf.c: New file.

* libcfg: New directory
* libcfg/libcfg.h, libcfg/auth.c, libcfg/common.c, libcfg/init.c,
libcfg/gsasl.c, libcfg/pam.c, libcfg/radius.c, libcfg/sieve.c,
libcfg/sql.c, libcfg/tls.c, libcfg/virtdomain.c,
libcfg/.cvsignore: New files.

* libargp: New directory
* libargp/auth.c, libargp/cmdline.h, libargp/common.c,
libargp/gsasl.c, libargp/mu_argp.h, libargp/mu_argp.c,
libargp/pam.c, libargp/radius.c, libargp/sieve.c, libargp/sql.c,
libargp/tls.c, libargp/virtdomain.c, libargp/.cvsignore: New
files.

* mailbox/.cvsignore: Add cfg_parser.c and cfg_parser.h.
* Makefile.am (SUBDIRS): Add libargp and libcfg.
* configure.ac (MU_APP_LIBRARIES): New variable
(MU_COMMON_INCLUDES): add libargp and libcfg
(AC_CONFIG_FILES): Add libargp and libcfg.

* auth/gsasl.c, auth/pam.c, auth/radius.c, auth/sql.c, auth/sql.h,
auth/tls.c, auth/virtual.c, comsat/comsat.h, frm/frm.h,
guimb/guimb.h, imap4d/imap4d.h, include/mailutils/gsasl.h,
include/mailutils/libsieve.h, include/mailutils/mailutils.h,
include/mailutils/mu_auth.h, include/mailutils/tls.h,
include/mailutils/sql.h, maidag/maidag.h, mail/mail.h,
mail.local/mail.local.h, mailbox/daemon.c, mailbox/system.c,
mh/mh_argp.c, mh/mh_getopt.h, pop3d/pop3d.h,
readmsg/readmsg.h: Remove argp stuff

* comsat/comsat.c, config/mailutils-config.c, dotlock/dotlock.c,
examples/muauth.c, examples/muemail.c, frm/frm.c, frm/from.c,
guimb/main.c, imap4d/idle.c, imap4d/imap4d.c, imap4d/util.c,
imap4d/version.c, maidag/lmtp.c, maidag/maidag.c,
maidag/mailquota.c, mail/mail.c, mail/send.c, mail/version.c,
mail.local/mailquota.c, mail.local/main.c,
mail.remote/mail.remote.c, mailbox/mu_auth.c, messages/messages.c,
mimeview/mimeview.c, movemail/movemail.c, pop3d/extra.c,
pop3d/pop3d.c, pop3d/popauth.c, readmsg/readmsg.c, sieve/sieve.c:
Use mu_app_init for parsing command line and
configuration files.
* comsat/Makefile.am, config/Makefile.am, dotlock/Makefile.am,
examples/Makefile.am, frm/Makefile.am, guimb/Makefile.am,
imap4d/Makefile.am, maidag/Makefile.am, mail/Makefile.am,
mail.local/Makefile.am, mail.remote/Makefile.am,
mailbox/Makefile.am, messages/Makefile.am, mimeview/Makefile.am,
movemail/Makefile.am, pop3d/Makefile.am, readmsg/Makefile.am,
sieve/Makefile.am: Use MU_APP_LIBRARIES.

* include/mailutils/Makefile.am: Add new files.
* include/mailutils/argp.h: Remove.
* include/mailutils/cfg.h: New file.
* include/mailutils/daemon.h (MODE_INTERACTIVE,MODE_DAEMON): New
defines (from removed argp.h).
(mu_gocs_daemon): New decl.
* include/mailutils/error.h (mu_program_name): New variable
(mu_set_program_name): New function.
* lib/Makefile.am (libmuaux_la_SOURCES): Add new files.
* libsieve/Makefile.am (libsieve_la_SOURCES): Remove argp.c, add
conf.c instead.
* libsieve/argp.c: Remove.

* mailbox/cfg_parser.y (mu_cfg_parse_boolean): New function.
* mailbox/mu_argp.c: Remove.

* mailbox/muerror.c (mu_program_name): New variable
(mu_set_program_name): New function
(mu_default_error_printer): Print program name before diagnostic
string.
* mailbox/mutil.c (mu_sql_decode_password_type): New function.
* mh/mh_whom.c (mh_alias_expand): Bugfix
* po/POTFILES.in: Update
* testsuite/lib/mailutils.exp (mu_init): Pass --no-site-rcfile
--no-user-rcfile to all programs.


Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Wed Jun 27 12:07:05 2007 UTC (16 years, 10 months ago) by gray
Branch: MAIN
CVS Tags: mu-1-2-1-before-new-config, mu-1-2-90-included-argp
Changes since 1.55: +1 -1 lines
Diff to previous 1.55
Prepare for the GPL v.3 release. Relicense programs under GPL v.3, libraries under LPGL v.3


Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Tue Jun 26 13:57:03 2007 UTC (16 years, 10 months ago) by gray
Branch: MAIN
Changes since 1.54: +1 -3 lines
Diff to previous 1.54
Prefer mu_header_sgetwhere possible. Remove obsolete header calls.


Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Sun Jun 24 12:23:56 2007 UTC (16 years, 10 months ago) by gray
Branch: MAIN
Changes since 1.53: +2 -1 lines
Diff to previous 1.53
Use mu_address_sget functions, where possible.


Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Tue Feb 13 10:44:27 2007 UTC (17 years, 2 months ago) by gray
Branch: MAIN
Changes since 1.52: +1 -7 lines
Diff to previous 1.52
(compose_destroy): Do not free outfiles[i], the caller is responsible for that.


Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Fri Dec 29 13:12:52 2006 UTC (17 years, 3 months ago) by gray
Branch: MAIN
Changes since 1.51: +113 -89 lines
Diff to previous 1.51
Sent empty messages only if nullbody is set


Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Tue Jan 24 13:22:05 2006 UTC (18 years, 3 months ago) by gray
Branch: MAIN
CVS Tags: alpha_0_6_95, rel-1_0, release_1_1
Changes since 1.50: +2 -1 lines
Diff to previous 1.50
(mail_send0): Use MU_HEADER_X_MAILER


Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Mon Jan 16 13:04:03 2006 UTC (18 years, 3 months ago) by gray
Branch: MAIN
CVS Tags: alpha_0_6_92
Changes since 1.49: +39 -9 lines
Diff to previous 1.49
(compose_header_set): Check for valid arguments at
the beginning of the function (value can be NULL, e.g. if the user hit
C-D at Cc: prompt).
Call util_merge_addresses() only if inplacealiases is set. Expand
aliases before calling it.


Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Tue Nov 15 15:13:16 2005 UTC (18 years, 5 months ago) by gray
Branch: MAIN
CVS Tags: alpha_0_6_92_before_mu_off_t
Changes since 1.48: +1 -0 lines
Diff to previous 1.48
Add missing includes


Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Sat Aug 27 11:37:40 2005 UTC (18 years, 8 months ago) by polak
Branch: MAIN
CVS Tags: alpha_0_6_91_after_namespace
Changes since 1.47: +23 -23 lines
Diff to previous 1.47
Normalize global namespace. Part 2


Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Fri Aug 26 14:23:32 2005 UTC (18 years, 8 months ago) by gray
Branch: MAIN
Changes since 1.46: +26 -25 lines
Diff to previous 1.46
Normalize global namespace. Part 1


Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Tue Aug 16 11:13:32 2005 UTC (18 years, 8 months ago) by gray
Branch: MAIN
CVS Tags: alpha_0_6_91_before_namespace, alpha_0_6_91_libmailbox
Changes since 1.45: +2 -2 lines
Diff to previous 1.45
Remove __P() and __PMT() wrappers.


Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Thu Aug 11 07:29:47 2005 UTC (18 years, 8 months ago) by gray
Branch: MAIN
CVS Tags: alpha_0_6_91
Changes since 1.44: +5 -6 lines
Diff to previous 1.44
Use mail_find_escape()


Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Tue Jul 26 12:36:29 2005 UTC (18 years, 9 months ago) by gray
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43
Produce more detailed diagnostics


Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Tue May 17 13:13:37 2005 UTC (18 years, 11 months ago) by gray
Branch: MAIN
CVS Tags: alpha_0_6_90
Changes since 1.42: +2 -1 lines
Diff to previous 1.42
Updated FSF address


Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Tue Jan 4 17:16:42 2005 UTC (19 years, 3 months ago) by gray
Branch: MAIN
CVS Tags: alpha_0_6_1
Changes since 1.41: +7 -7 lines
Diff to previous 1.41
Revise error messages for accordance with GNU standards:
begin messages with a capital letter, unless they are prefixed
with `file:line:' or their exact look is important due to
compatibility reasons. Do not end messages with a period.
Avoid using contracted negations.


Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Wed Aug 11 11:04:32 2004 UTC (19 years, 8 months ago) by gray
Branch: MAIN
CVS Tags: rel_0_6
Changes since 1.40: +10 -4 lines
Diff to previous 1.40
Fixed coredump on reading a single escape char.


Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Thu May 27 19:10:51 2004 UTC (19 years, 11 months ago) by gray
Branch: MAIN
CVS Tags: rel_0_5
Branch point for: rel-0-5-devel
Changes since 1.39: +2 -1 lines
Diff to previous 1.39
(mail_send0): Check ignoreeof variable for interactive sessions only.


Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Tue Apr 27 11:41:49 2004 UTC (20 years ago) by gray
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38
Do not add X-Mailer if xmailer variable is unset.


Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Wed Jan 14 12:55:50 2004 UTC (20 years, 3 months ago) by gray
Branch: MAIN
Changes since 1.37: +4 -1 lines
Diff to previous 1.37
Check for error return from mailbox_append_message


Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Sun Jan 4 17:06:45 2004 UTC (20 years, 3 months ago) by polak
Branch: MAIN
Changes since 1.36: +2 -5 lines
Diff to previous 1.36
(mail_send): Bugfix. Removed free(p) and prevent from later segmentation
fault.


Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Tue Oct 28 15:40:25 2003 UTC (20 years, 6 months ago) by gray
Branch: MAIN
Changes since 1.35: +111 -6 lines
Diff to previous 1.35
(mail_sendheader,send_append_header,send_append_header2)


Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Mon Aug 18 14:00:28 2003 UTC (20 years, 8 months ago) by gray
Branch: MAIN
CVS Tags: rel_0_4
Changes since 1.34: +5 -5 lines
Diff to previous 1.34
Use ml_readline_with_intr() when prompting for header fields.


Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Mon Aug 18 11:07:35 2003 UTC (20 years, 8 months ago) by gray
Branch: MAIN
Changes since 1.33: +18 -6 lines
Diff to previous 1.33
(mail_send, mail_send0): Use `mailx'
to control mailx compatibility mode. Thanks Peter S Galbraith
<p.galbraith@globetrotter.net> for the idea.


Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Sun Aug 17 15:58:01 2003 UTC (20 years, 8 months ago) by gray
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32
(mail_send0): Fixed typo in variable name.


Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Sun Feb 9 12:33:01 2003 UTC (21 years, 2 months ago) by polak
Branch: MAIN
CVS Tags: rel_0_3, rel_0_3_1
Branch point for: dev-0-4-branch, rel-0-3-branch
Changes since 1.31: +1 -1 lines
Diff to previous 1.31
Updated FSF address.


Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Wed Jan 22 21:44:15 2003 UTC (21 years, 3 months ago) by gray
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
Renamed mu_errstring to mu_strerror for consistency with the usual practice.


Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Mon Dec 23 22:01:34 2002 UTC (21 years, 4 months ago) by polak
Branch: MAIN
Changes since 1.29: +17 -17 lines
Diff to previous 1.29
Added initial NLS support


Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Thu Oct 3 14:31:32 2002 UTC (21 years, 6 months ago) by gray
Branch: MAIN
CVS Tags: rel_0_2
Branch point for: ver-0-1-2-with-cmu-sieve
Changes since 1.28: +144 -138 lines
Diff to previous 1.28
(mail_send): Set save_to right after entering the function.
(mail_send0): deduce savefile basing on the localpart of
the first address (when save_to is set).
Expand aliases in every address-related header.


Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Wed Oct 2 14:39:29 2002 UTC (21 years, 6 months ago) by gray
Branch: MAIN
Changes since 1.27: +8 -6 lines
Diff to previous 1.27
(compose_header_set): COMPOSE_SINGLE_LINE part rewritten.


Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu Sep 26 14:19:00 2002 UTC (21 years, 7 months ago) by gray
Branch: MAIN
Changes since 1.26: +88 -46 lines
Diff to previous 1.26
Use new compose functions.


Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Tue Sep 24 14:14:20 2002 UTC (21 years, 7 months ago) by gray
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25
(mail_send0): Bugfix. A dot ends the message
only if it is the only character on the line. Thanks
to Thomas Esser <te@dbs.uni-hannover.de> for noticing.


Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Wed Aug 7 15:29:24 2002 UTC (21 years, 8 months ago) by gray
Branch: MAIN
CVS Tags: rel_0_1
Changes since 1.24: +20 -14 lines
Diff to previous 1.24
Use util_getenv()


Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue Mar 12 03:48:15 2002 UTC (22 years, 1 month ago) by sroberts
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23
Corrected type mismatches visible on 64-bit systems.


Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Thu Feb 21 01:25:43 2002 UTC (22 years, 2 months ago) by sroberts
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22
argcv_get() now (optionally) strips comments while parsing. Its the right
place because it tokenizes, and whether a char is a comment or not depends
on whether its in the middle of a token or not:  "hi # there"  # comment.


Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Thu Jan 17 22:30:55 2002 UTC (22 years, 3 months ago) by gray
Branch: MAIN
Changes since 1.21: +1 -1 lines
Diff to previous 1.21
Use mu_tempfile.


Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Tue Dec 18 03:08:01 2001 UTC (22 years, 4 months ago) by sroberts
Branch: MAIN
Changes since 1.20: +1 -1 lines
Diff to previous 1.20
modified to compile against the changed mailer_send_message()


Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Fri Oct 26 14:04:51 2001 UTC (22 years, 6 months ago) by gray
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19
Use ml_readline()


Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Sun Oct 14 08:03:07 2001 UTC (22 years, 6 months ago) by gray
Branch: MAIN
Changes since 1.18: +5 -0 lines
Diff to previous 1.18
Handle ~x escape properly.


Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Sat Sep 15 20:50:42 2001 UTC (22 years, 7 months ago) by alainm
Branch: MAIN
Changes since 1.17: +13 -12 lines
Diff to previous 1.17
	The exercise is to crank up the warnings from gcc and cleanup
	the code based on the hints generated by the compiler.  The usual
	errors:
	- signed vs unsigned, signedness or unsignedness problems.
	- printf() wrong formats
	- wrong prototypes declarations
	- and different buglets
	- "const char *" vs "char *"
	- unused variables
	- unused arguments.  Tell the compiler by typecasting to void
	 (void)var.
	- Some variable when shadowed, meaning in another block variable
	of the same name where reused.
	- atoi() is not an ANSI C function, we should use strtol().

	Changes to comply to GNU coding standards, and nuke trailing spaces.

	* mail/alias.c (alia_lookup): No prototypes and scope static.
	(hash_num, max_rehash, aliases): Scope static and unsigned.
	(hash): unsigned.
	(alias_rehash): i unsigned.
	(alias_lookup_or_install): slot variable unused.
	(alias_destroy): unsigned.
	* mail/copy.c (mail_copy0): fprintf wrong format.
	* mail/decode.c: dislay_message change prototype.
	(mail_decode): Cast when calling util_msgset_iterate().
	(display_message): Prototype change.
	(display_headers): unsigned issues.
	* mail/delete.c: Buglet was caling mail_delete0() instead of
	mail_delete.
	* mail/eq.c: Unused arguments.
	* mail/exit.c: Unused arguments.
	* mail/folders.c: Unused arguments.
	* mail/followup.c: Unused variables.
	* mail/from.c (mail_from): variable buffer was shadowing use variable
	name instead. snprintf() formatting issues.
* mail/headers.c: Unsigned issues.
	* mail/if.c: Unused arguments.
	* mail/inc.c: Unused arguments.
	* mail/list.c: Use const char *.
	* mail/mail.c: options[], argp[] initialised all elements.
	(mail_cmdline): Unused arguments.
	(main): Unsigned issues.
	(mail_warranty): Unused arguments.
	* mail/mail.h: function_t with complete prototype this necessary
	to let the compiler do proper checks.
	struct mail_command_entry rearrange the fields and a new field
	int (*escfunc) __P ((int, char **, struct send_environ *));
	Indentation rearrangements.
	* mail/mailline.c (ml_getc): Scope is static now.
	typecast for const char *.
	(ml_reread): Typecast.
	* mail/msgset.y: Declare yyerror() and yylex().
	(msgset_select): Change of prototpe to let the compiler do checks.
	(selec_sender): Unsused arguments.
	* mail/pipe.c: Rename variable pipe to tube.
	* mail/print.c: Unsigness and some shadow variables.
	* mail/quit.c: Shadow variables.
	* mail/send.c: Typecast when necessary. Use the second (escfunc)
	field now. Some shadow variables.
	* mail/shell.c: Unsigned.
	* mail/table.c: Readjust the table to correspond to the signature
	change in mail.h.
	* mail/tag.c: Prototype change.
	* mail/util.c (util_msglist_esccmd): New function.
	(util_find_entry): Prototype change.  And check return value
	of getenv().
	(util_screen_lines): Change atoi() to strtoul().
	(util_screen_columns): Change atoi() to strtoul().
	(util_find_env): Signedness.
	(util_fullpath): Prototype changed(const).
	(util_slist_to_string):Protorype changed (const).
	(util_strcat) :Protorype changed (const).
	(util_tempfile): const.
	* mail/var.c: Unsignedness, Unused arguments.
	(var_quote):  Use new function util_msglist_esccmd().
	* mail/version.c: Unused arguments.
	* mail/write.c: printf formats.
	* mail/z.c: Signedness.


Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Mon Aug 27 20:07:12 2001 UTC (22 years, 8 months ago) by jkaivo
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16
fix erroneous Subject: prompts


Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Sun Jul 22 09:38:09 2001 UTC (22 years, 9 months ago) by gray
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15
renamed debug_.* symbols to mu_debug_.* to avoid nameclashes.


Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Fri Jul 6 03:00:34 2001 UTC (22 years, 9 months ago) by alainm
Branch: MAIN
Changes since 1.14: +6 -0 lines
Diff to previous 1.14
	* mail/send.c(mail_send0): Put the mailer in debug mode
	if util_find_env("verbose")->set, good for debuging.


Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Fri Jul 6 02:36:12 2001 UTC (22 years, 9 months ago) by alainm
Branch: MAIN
Changes since 1.13: +69 -40 lines
Diff to previous 1.13
	According to the man page:
	"sendmail contains a command, possibly with options, that mailx
	invokes to send mail. You must manually set the default for this
	environment variable by editing ROOTDIR/etc/mailx.rc to specify the
	mail agent of your choice. The default is sendmail, but it can be any
	command that takes addresses on the command line and message contents
	on standard input."

	* mail/mail.c (main): Register smtp_record too as a mailer.
	Set variable sendmail to _PATH_SENDMAIL as the default mailer.
	* mail/mail.h: New proto util_setenv(), util_find_env()
	change to be const char *.
	* mail/send.c (msg_to_pipe): New function, open a pipe()
	and write a message to it.
	(mail_send0): Now create the mailer according to
	util_find_env("sendmail")->value.  Use a pipe() if mailer_create()
	fails.
	* mail/set.c (mail_set): After free(entry->value) set the value
	to NULL.
	* mail/util.c (util_find_env): Change the prototype to be const.
	Remove hack about need_free and use a static variable to hold
	"asksub".
	* mail/util.c (util_setenv): New function to set environment
	model on libc call setenv().

	* mailbox/message.c (message_sender): Set the default sender base on
	the passwd entry.


Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu Jul 5 23:48:50 2001 UTC (22 years, 9 months ago) by alainm
Branch: MAIN
Changes since 1.12: +129 -35 lines
Diff to previous 1.12
	We can send a message and if the address starts with '|'
	the message is pipe to the cmd and if starts with '/' it is
	save to a file.
	     mailx ghislaine '|cat >save'
	mails a message to ghislaine and also copies the message into a file
	called save.

	* mail/mail.h: Change struct send_environ to contain
	two new fields char **outfiles and int nfiles.
	* mail/send.c: Look for '/' and '|' when parsing the addresses
	and add them to struct send_environ outfiles.
	(mail_send0):  Memory overflow, we were free(buf) twice.
	made char *buf local where it is needed.  Save the message
	to outfiles when set.
	(isfilename): New function.
	* mail/followup.c: Initialise the struct send_environ new fields.
	* mail/reply.c: Initialise the struct send_environ new fields.

	* lib/argcv.c: Add support to consider string between
	single quote like one word(same as double quotes).


Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Tue Jul 3 11:45:27 2001 UTC (22 years, 9 months ago) by gray
Branch: MAIN
Changes since 1.11: +14 -6 lines
Diff to previous 1.11
check for "dot" variable. Implemented "~.","appenddeadletter"


Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sun Jul 1 04:57:58 2001 UTC (22 years, 9 months ago) by gray
Branch: MAIN
Changes since 1.10: +72 -28 lines
Diff to previous 1.10
Implemented "set ignore", "set ignoreeof", "set nosave".
Implemented using doubled escape character to insert a single escape
into the message body.


Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Sat Jun 30 09:25:43 2001 UTC (22 years, 9 months ago) by gray
Branch: MAIN
Changes since 1.9: +110 -174 lines
Diff to previous 1.9
Handle keyboard interrupts. Use util_tempfile().


Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue Jun 26 14:04:07 2001 UTC (22 years, 10 months ago) by gray
Branch: MAIN
Changes since 1.8: +36 -9 lines
Diff to previous 1.8
Call util_save_outgoing() to preserve the message.
Set umask 077 before calling mkstemp().


Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 08:20:13 2001 UTC (22 years, 10 months ago) by gray
Branch: MAIN
Changes since 1.7: +35 -18 lines
Diff to previous 1.7
Split off mail_send0(). It is used by mail_send() and mail_reply().


Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Fri Jun 22 16:38:08 2001 UTC (22 years, 10 months ago) by gray
Branch: MAIN
Changes since 1.6: +0 -1 lines
Diff to previous 1.6
removed unconditional #include <paths.h>: it already was included from "mail.h".


Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Mon Apr 16 05:19:56 2001 UTC (23 years ago) by alainm
Branch: MAIN
CVS Tags: mailutils-0-0-9
Changes since 1.5: +11 -11 lines
Diff to previous 1.5
        The FILE* stream "stdout" is not an lvalue so it is an error to
        attempt to assign to it.  To be able to redirect at will stdout
        we need to assign it.  In GNU lib C, it was not error since stdout
        stderr, and stdin are variables, but to be portable we can not
        assume this.  The way out is to always use fprintf () and have
        a global varialbe "ofile" pointing to stdout.

        * mail/*: All the files under mail been change to use fprintf()
        and ofile as the default stdout.
        Copyright updated.


Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Tue Jan 16 06:10:41 2001 UTC (23 years, 3 months ago) by alainm
Branch: MAIN
Changes since 1.4: +90 -13 lines
Diff to previous 1.4
Register sendmail_record to send mail via _PATH_SENDMAIL.
Modify send.c to sendmail an create temporary filenames more securely.
Copyright change --> 2001 and extra spaces nukes, done by emacs automaticaly.


Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sat Jan 13 08:23:51 2001 UTC (23 years, 3 months ago) by jkaivo
Branch: MAIN
Changes since 1.3: +18 -5 lines
Diff to previous 1.3
work on mail sending capability, now `mail -s"foo bar" baz@quux` is close to
doing the right thing


Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Thu Sep 7 06:58:40 2000 UTC (23 years, 7 months ago) by jkaivo
Branch: MAIN
Changes since 1.2: +142 -2 lines
Diff to previous 1.2
Begin real implementation of mailx mail command
make sure none of the necessary environment variables will be unset in mailx


Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Tue Sep 5 10:05:30 2000 UTC (23 years, 7 months ago) by jkaivo
Branch: MAIN
Changes since 1.1: +19 -0 lines
Diff to previous 1.1
Implement mailx commands {C,c}opy, {S,s}ave, {W,w}rite, set
Beginning of mailx command mail (in send.c)
Merge printall into print, remove printall.c


Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sat Sep 2 06:32:20 2000 UTC (23 years, 7 months ago) by jkaivo
Branch: MAIN
Bloated mail excessively with infrastructure to be fully UNIX98 mailx
compatible and updated to current API. Minor compilation fixes elsewhere.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26