/[mailutils]/mailutils/imap4d/store.c
ViewVC logotype

Diff of /mailutils/imap4d/store.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by sroberts, Tue Mar 12 03:34:35 2002 UTC revision 1.10 by gray, Thu Aug 1 09:01:00 2002 UTC
# Line 107  imap4d_store0 (char *arg, int isuid, cha Line 107  imap4d_store0 (char *arg, int isuid, cha
107        message_t msg = NULL;        message_t msg = NULL;
108        attribute_t attr = NULL;        attribute_t attr = NULL;
109        char *items = strdup (sp); /* Don't use the orignal list.  */        char *items = strdup (sp); /* Don't use the orignal list.  */
       char *flags = strdup ("");  
110        int first = 1;        int first = 1;
111        size_t msgno;        size_t msgno;
112        char *p = items;        char *p = items;
# Line 140  imap4d_store0 (char *arg, int isuid, cha Line 139  imap4d_store0 (char *arg, int isuid, cha
139                        attribute_set_flags (attr, type);                        attribute_set_flags (attr, type);
140                      }                      }
141                    attribute_set_flags (attr, MU_ATTRIBUTE_MODIFIED);                    attribute_set_flags (attr, MU_ATTRIBUTE_MODIFIED);
                   flags = realloc (flags, strlen (flags) + strlen (item) + 2);  
                   if (*flags)  
                     strcat (flags, " ");  
                   strcat (flags, item);  
142                  }                  }
143              }              }
144          }          }
145        if (ack && *flags)        if (ack)
146          util_out (RESP_NONE, "%d FETCH FLAGS (%s)", msgno, flags);          {
147              util_send ("* %d FETCH ", msgno);
148              fetch_flags0 ("FLAGS", msg, isuid);
149              util_send ("\n");
150            }
151        free (p);        free (p);
       free (flags);  
152        /* Update the flags of uid table.  */        /* Update the flags of uid table.  */
153        imap4d_sync_flags (set[i]);        imap4d_sync_flags (set[i]);
154      }      }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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