commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. release-2.2-390-ge759db2


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-390-ge759db2
Date: Thu, 22 Sep 2011 19:09:00 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=e759db27d650197ed1d8f837f30a2d03dcc23b4a

The branch, master has been updated
       via  e759db27d650197ed1d8f837f30a2d03dcc23b4a (commit)
       via  d232a4677cd0b69cd5bb763eaf1325d7dfc8dda3 (commit)
      from  843523b03d1690b700c2bc55fab31f95954669d6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e759db27d650197ed1d8f837f30a2d03dcc23b4a
Author: Sergey Poznyakoff <address@hidden>
Date:   Thu Sep 22 22:07:09 2011 +0300

    Bugfix
    
    * libmailutils/filter/crlfflt.c (_crlf_encoder): Reset state to
    initial if any character other than \r and \n is read.

commit d232a4677cd0b69cd5bb763eaf1325d7dfc8dda3
Author: Sergey Poznyakoff <address@hidden>
Date:   Sat Sep 10 00:23:24 2011 +0300

    Minor changes.
    
    * doc/texinfo/mailutils.texi: Update.
    * doc/texinfo/rendition.texi: Rewrite.

-----------------------------------------------------------------------

Summary of changes:
 doc/texinfo/mailutils.texi    |    1 +
 doc/texinfo/mom.texi          |  147 -----------------------------------------
 doc/texinfo/rendition.texi    |   73 +++++++++++++--------
 libmailutils/filter/crlfflt.c |    5 +-
 4 files changed, 51 insertions(+), 175 deletions(-)
 delete mode 100644 doc/texinfo/mom.texi

diff --git a/doc/texinfo/mailutils.texi b/doc/texinfo/mailutils.texi
index f783c94..5e4ae5e 100644
--- a/doc/texinfo/mailutils.texi
+++ b/doc/texinfo/mailutils.texi
@@ -37,6 +37,7 @@
 * mail: (mailutils)mail.                Send and Receive Mail.
 * maidag: (mailutils)maidag.            A General-Purpose Mail Delivery Agent.
 * messages: (mailutils)messages.        Count Messages in a Mailbox.
+* movemail: (mailutils)movemail.        Move Mail between Mailboxes.
 * pop3d: (mailutils)pop3d.              POP3 Daemon.
 * readmsg: (mailutils)readmsg.          Extract Messages from a Folder.
 * sieve: (mailutils)sieve.              Mail Filtering Utility.
diff --git a/doc/texinfo/mom.texi b/doc/texinfo/mom.texi
deleted file mode 100644
index c2a184c..0000000
--- a/doc/texinfo/mom.texi
+++ /dev/null
@@ -1,147 +0,0 @@
address@hidden This is part of the GNU Mailutils manual.
address@hidden Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2007, 2008, 
2010,
address@hidden 2011 Free Software Foundation, Inc.
address@hidden See file mailutils.texi for copying conditions.
address@hidden 
*******************************************************************
-
address@hidden Mailutils Object Model
-Mailutils is written in C, the language is widely supported on
-many platforms and the ABI (Binary Interface) for linking objects
-with other languages (like Guile, Java, ...) is well-defined.
-
-The C language does not provide support for object oriented programming,
-but by using structures and pointers to function, it is possible to provide
-a simple framework.
-
-Every Mailutils object has a corresponding C structure holding its interface
-and specific data. For example mu_object_t, is the root object and all 
mailutils objects
-extends it:
-
address@hidden
-struct _mu_object;
-typedef struct _mu_object* mu_object_t;
-
-/* Definition of the interface for mu_object */
-struct _mu_object_vtable
address@hidden
-  int  (*create)   (mu_object_t *object);
-  void (*destroy)  (mu_object_t *object);
-  void (*notify)   (mu_object_t object, int event, void *data);
address@hidden
-
-struct _mu_object
address@hidden
-  struct _mu_object_vtable *vtable;
-  int type;
address@hidden
address@hidden smallexample
-
-The @var{vtable} is an array of pointers to function, it provides the interface
-or the list of function for this object. The library provides wrapper to
-access the functions instead using the @var{vtable} directly.
-
address@hidden
-int mu_object_notify(mu_object object, int event, void *data)
address@hidden
-  if (object == NULL || object->vtable == NULL
-      || object->vtable->notify == NULL)
-    return MU_ERR_NOT_SUPPORTED;
-  return object->vtable->notify (object, event, data);
address@hidden
address@hidden smallexample
-
-Instead of using macros or the vtable directly.
address@hidden
-#define mu_object_notify(o, evt, d)  ((o)->vtable->notify(o, evt, d))
address@hidden smallexample
-
address@hidden Implementing an Interface
-
address@hidden ***********************************************************
address@hidden This is not a very good/useful example, we should do one using
address@hidden header or message, something usefully that would clarify the 
concepts
address@hidden better and at the same could be reuse in code by clients.
address@hidden
address@hidden For example mime_t "extends" message_t, this is a good example
address@hidden since you can consider a mime_t as a message_t but with extra 
functions.
address@hidden ***********************************************************
-
-For a more concrete implementation, lets say we are implementing some caching 
mailbox
-but we need to keep a better track of the objects in our implementation.
-We take the approach of simple reference counting and extend the mu_object_t.
-
address@hidden
-#include <mailutils/sys/object.h>
-
-struct my_object;
-typedef struct refcount* refcount;
-
-struct refcount_vtable
address@hidden
-   struct _mu_object_vtable base;  
-   int (*increment)(refcount_t);
-   int (*decrement)(refcount_t);
address@hidden 
-
-struct refcount
address@hidden
-  struct refcount_vtable * vtable;
-  int count;
address@hidden
-
-static int
-refcount_increment (mu_object_t obj)
address@hidden
-   refcount_t refcount = (refcount_t)obj;
-   refcount->count++;
-   return refcount->count;
address@hidden
-
-static int
-refcount_decrement (mu_object_t obj)
address@hidden
-   refcount_t refcount = (refcount_t)obj;
-   if (refcount->count > 0)
-     refcount->count--;
-   return refcount->count;
address@hidden
-
-int
-my_mu_object_create (mu_object_t *pobject)
address@hidden
-   static struct refcount_vtable* vtable;
-   refcount_t ref;
-
-   if (object == NULL)
-     return EINVAL;
-
-   if (!vtable)
-    @{
-      vtable = calloc(1, sizeof(*vtable));
-      if (vtable == NULL)
-        return ENOMEM;
-      vtable->base.vtable = &_mu_object_vtable; // FIXME where can they get 
the base vtable
-      vtable->increment = refcount_increment;
-      vtable->decrement = refcount_decrement;
-    @}
-
-   ref = malloc(sizeof *ref);
-   ref->base = vtable;
-   *pobject = &ref->base.vtable
-   return 0;
address@hidden
address@hidden smallexample
-
-The interface adds a @code{decrement} and @code{increment} to the 
@code{mu_object_t}
-interface. Creating a @code{refcount_t} can be savely typecast to 
@code{mu_object_t},
-for example:
-
address@hidden
-refcount_t ref;
-mu_object_t obj;
-refcount_create (&ref);
-
-/* send a notification to the listeners of an event.  */
-mu_object_notify ((mu_object_t)ref, 5, NULL)
-
address@hidden smallexample
diff --git a/doc/texinfo/rendition.texi b/doc/texinfo/rendition.texi
index 2936694..5e4627c 100644
--- a/doc/texinfo/rendition.texi
+++ b/doc/texinfo/rendition.texi
@@ -1,7 +1,22 @@
address@hidden Let's use the concept of 'renditions' by Fra@,{c}ois Pinard
address@hidden I extended it by adding a FIXME_FOOTNOTE variable, which controls
address@hidden whether FIXME information should be placed in footnotes or
address@hidden inlined. 
address@hidden This file is part of GNU Mailutils.
address@hidden Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2009, 2010, 
2011
address@hidden Free Software Foundation, Inc.
address@hidden
address@hidden GNU Mailutils is free software; you can redistribute it and/or
address@hidden modify it under the terms of the GNU General Public License as
address@hidden published by the Free Software Foundation; either version 3, or 
(at
address@hidden your option) any later version.
address@hidden
address@hidden GNU Mailutils is distributed in the hope that it will be useful, 
but
address@hidden WITHOUT ANY WARRANTY; without even the implied warranty of
address@hidden MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
address@hidden General Public License for more details.
address@hidden
address@hidden You should have received a copy of the GNU General Public License
address@hidden along with GNU Mailutils.  If not, see
address@hidden <http://www.gnu.org/licenses/>.
+
address@hidden This file implements Fra@,{c}ois Pinard's concept of 
'renditions'.
 
 @c ======================================================================
 @c This document has three levels of rendition: PUBLISH, DISTRIB or PROOF,
@@ -39,9 +54,9 @@
 
 @macro WRITEME
 @ifclear PUBLISH
address@hidden
address@hidden node is to be written.}
address@hidden quotation
address@hidden
address@hidden @address@hidden's note:} This node is to be written.}
address@hidden cartouche
 @end ifclear
 @end macro
 
@@ -49,10 +64,10 @@
 
 @macro UNREVISED
 @ifclear PUBLISH
address@hidden
-(@emph{The information in this node may be obsolete or otherwise inaccurate.}
-This message will disappear, once this node revised.)
address@hidden quotation
address@hidden
address@hidden's note:} The information in this node may be obsolete or
+otherwise inaccurate.  This message will disappear, once this node revised.
address@hidden cartouche
 @end ifclear
 @end macro
 
@@ -60,35 +75,39 @@ This message will disappear, once this node revised.)
 
 @macro FIXME{string}
 @ifset PROOF
address@hidden PROOF_FOOTNOTED
address@hidden@strong{FIXME:} \string\}
address@hidden ifset
address@hidden PROOF_FOOTNOTED
address@hidden 1
 @cartouche
address@hidden<FIXME>} \string\ @strong{</>}
address@hidden's note:} \string\
 @end cartouche
address@hidden ifclear
 @end ifset
address@hidden
address@hidden macro
 
address@hidden deadlink{}
+(@strong{Editor's note: dangling link})
 @end macro
 
address@hidden FIXME-ref{string}
address@hidden FIXMEREF{text,string}
 @ifset PROOF
address@hidden<REF>} \string\ @strong{</>}
address@hidden
+\text\ <span class="deadlink">\string\</span> 
address@hidden html
address@hidden
+\text\ @i{\string\}
address@hidden ifnothtml
address@hidden
 @end ifset
address@hidden
address@hidden macro
 
address@hidden FIXME-ref{string}
address@hidden,\string\}
 @end macro
 
 @macro FIXME-pxref{string}
address@hidden PROOF
address@hidden<PXREF>} \string\ @strong{</>}
address@hidden ifset
-
address@hidden,\string\}
 @end macro
 
 @macro FIXME-xref{string}
address@hidden PROOF
address@hidden<XREF>} \string\ @strong{</>}
address@hidden ifset
-
address@hidden,\string\}
 @end macro
diff --git a/libmailutils/filter/crlfflt.c b/libmailutils/filter/crlfflt.c
index 96291b8..abec353 100644
--- a/libmailutils/filter/crlfflt.c
+++ b/libmailutils/filter/crlfflt.c
@@ -88,7 +88,10 @@ _crlf_encoder (void *xd,
          optr[j++] = c;
        }
       else
-       optr[j++] = c;
+       {
+         *state = state_init;
+         optr[j++] = c;
+       }
     }
   iobuf->isize = i;
   iobuf->osize = j;


hooks/post-receive
-- 
GNU Mailutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]