- 11 Dec, 2010 2 commits
-
-
-
* libmailutils/base/spawnvp.c (mu_spawnvp): Use fork and _exit, unconditionally. * libmailutils/stdstream/basestr.c (mu_stdstream_setup): Borrow descriptors 0, 1, 2. * mail/mail.h (compose_env) <filename, file, ofile>: Remove. <compstr>: New member. * mail/alias.c: Use MU streams instead of stdlib. * mail/alt.c: Likewise. * mail/copy.c: Likewise. * mail/decode.c: Likewise. * mail/echo.c: Likewise. * mail/envelope.c: Likewise. * mail/eq.c: Likewise. * mail/escape.c: Likewise. * mail/followup.c: Likewise. * mail/from.c: Likewise. * mail/inc.c: Likewise. * mail/mail.c: Likewise. * mail/mailline.c: Likewise. * mail/mailvar.c: Likewise. * mail/msgset.y: Likewise. * mail/print.c: Likewise. * mail/quit.c: Likewise. * mail/reply.c: Likewise. * mail/retain.c: Likewise. * mail/send.c: Likewise. * mail/setenv.c: Likewise. * mail/shell.c: Likewise. * mail/size.c: Likewise. * mail/source.c: Likewise. * mail/summary.c: Likewise. * mail/top.c: Likewise. * mail/unset.c: Likewise. * mail/util.c: Likewise. * mail/version.c: Likewise. * mail/write.c: Likewise. * mail/z.c: Likewise.
Sergey Poznyakoff authored
-
- 09 Oct, 2010 1 commit
-
-
- 05 Jan, 2010 1 commit
- 07 Jul, 2009 1 commit
-
-
* include/mailutils/cctype.h: New file. * include/mailutils/cstr.h: New file. * include/mailutils/Makefile.am: Add new files. * mailbox/cstrcasecmp.c: New file. * mailbox/cstrlower.c: New file. * mailbox/cstrupper.c: New file. * mailbox/muctype.c: New file. * mailbox/strltrim.c: New file. * mailbox/strrtrim.c: New file. * mailbox/strskip.c: New file. * mailbox/Makefile.am: Add new files. * .gitignore: Update * gnulib.modules: Remove strcase. * comsat/comsat.h, imap4d/imap4d.h, include/mailutils/mailutils.h, include/mailutils/mutil.h, include/mailutils/sys/pop3.h, libmu_scm/mu_scm.h, mail/mail.h: Include cstr.h and cctype.h. * comsat/oldcfg.c, config/mailutils-config.c, examples/mimetest.c, examples/mta.c, examples/nntpclient.c, examples/pop3client.c, imap4d/append.c, imap4d/create.c, imap4d/delete.c, imap4d/fetch.c, imap4d/id.c, imap4d/idle.c, imap4d/list.c, imap4d/namespace.c, imap4d/rename.c, imap4d/search.c, imap4d/status.c, imap4d/store.c, imap4d/uid.c, imap4d/util.c, libmu_argp/compat.c, libmu_auth/ldap.c, libmu_auth/sql.c, libmu_scm/mu_message.c, libmu_sieve/actions.c, libmu_sieve/comparator.c, libmu_sieve/extensions/list.c, libmu_sieve/extensions/spamd.c, libmu_sieve/extensions/vacation.c, libmu_sieve/load.c, libmu_sieve/sieve.l, libmu_sieve/tests.c, libproto/imap/folder.c, libproto/mailer/smtp.c, libproto/mbox/mbox.c, libproto/mh/folder.c, libproto/mh/mbox.c, libproto/pop/folder.c, libproto/pop/mbox.c, libproto/pop/pop3_connect.c, maidag/forward.c, maidag/lmtp.c, maidag/maidag.c, maidag/maidag.h, maidag/mailquota.c, mail/alt.c, mail/copy.c, mail/decode.c, mail/escape.c, mail/followup.c, mail/mail.c, mail/mailline.c, mail/msgset.y, mail/print.c, mail/reply.c, mail/send.c, mail/shell.c, mail/util.c, mail/write.c, mailbox/address.c, mailbox/amd.c, mailbox/assoc.c, mailbox/attachment.c, mailbox/attribute.c, mailbox/cfg_lexer.l, mailbox/date.c, mailbox/filter.c, mailbox/gdebug.c, mailbox/header.c, mailbox/kwd.c, mailbox/locale.c, mailbox/mailcap.c, mailbox/mailer.c, mailbox/message.c, mailbox/message_stream.c, mailbox/mime.c, mailbox/msrv.c, mailbox/mutil.c, mailbox/parse822.c, mailbox/progmailer.c, mailbox/rfc2047.c, mailbox/syslog.c, mailbox/url.c, mailbox/version.c, mh/mh.h, mh/mh_alias.l, mh/mh_ctx.c, mh/mh_fmtgram.y, mh/mh_init.c, mh/mh_list.c, mh/mh_msgset.c, mh/mh_sequence.c, mh/mh_whatnow.c, mh/mh_whom.c, mh/mhn.c, mh/mhparam.c, mh/pick.y, mh/sortm.c, mimeview/mimetypes.y, pop3d/bulletin.c, pop3d/expire.c, pop3d/pop3d.c, pop3d/pop3d.h, pop3d/popauth.c, pop3d/user.c, readmsg/msglist.c, readmsg/readmsg.c, readmsg/readmsg.h, sql/mysql.c, sql/postgres.c: Use locale-independent cclass and str functions.
Sergey Poznyakoff authored
-
- 27 Jun, 2007 1 commit
-
-
- 29 Aug, 2005 1 commit
-
-
- 27 Aug, 2005 1 commit
-
-
- 26 Aug, 2005 1 commit
-
-
- 15 Jun, 2005 1 commit
-
-
- 17 May, 2005 1 commit
-
-
- 20 Sep, 2003 1 commit
-
-
- 09 Feb, 2003 1 commit
-
-
- 14 Jan, 2003 1 commit
-
-
- 28 Dec, 2002 1 commit
-
-
- 23 Dec, 2002 1 commit
-
-
- 05 Nov, 2002 1 commit
-
-
- 13 Oct, 2002 1 commit
-
-
- 03 Oct, 2002 1 commit
-
-
- 26 Sep, 2002 1 commit
-
-
- 23 Jul, 2002 1 commit
-
-
- 15 Sep, 2001 1 commit
-
-
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.
Alain Magloire authored
-
- 06 Aug, 2001 1 commit
-
-
- 05 Jul, 2001 1 commit
-
-
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).
Alain Magloire authored
-
- 03 Jul, 2001 1 commit
-
-
- 30 Jun, 2001 1 commit
-
-
- 26 Jun, 2001 1 commit
-
-
- 16 Apr, 2001 1 commit
-
-
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.
Alain Magloire authored
-
- 06 Sep, 2000 1 commit
-
-
- 02 Sep, 2000 1 commit