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

Diff of /mailutils/imap4d/fetch.c

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

revision 1.30 by gray, Sat Jul 27 14:47:31 2002 UTC revision 1.31 by gray, Thu Aug 1 09:00:05 2002 UTC
# Line 282  fetch_envelope (struct fetch_command *co Line 282  fetch_envelope (struct fetch_command *co
282    
283  /* FLAGS: The flags that are set for this message.  */  /* FLAGS: The flags that are set for this message.  */
284  /* FIXME: User flags not done. If enable change the PERMANENTFLAGS in SELECT */  /* FIXME: User flags not done. If enable change the PERMANENTFLAGS in SELECT */
285  static int  void
286  fetch_flags (struct fetch_command *command, char **arg)  fetch_flags0 (const char *prefix, message_t msg, int isuid)
287  {  {
288    attribute_t attr = NULL;    attribute_t attr = NULL;
289    int space = 0;    int space = 0;
290    (void)arg; /* No argments.  */  
291    message_get_attribute (command->msg, &attr);    message_get_attribute (msg, &attr);
292    util_send ("%s (", command->name);    if (isuid)
293        {
294          struct fetch_command *fcmd = &fetch_command_table[F_UID];
295          fcmd->msg = msg;
296          util_send ("(");
297          fetch_uid (fcmd, NULL);
298          util_send (" ");
299        }
300      util_send ("%s (", prefix);
301    if (attribute_is_deleted (attr))    if (attribute_is_deleted (attr))
302      {      {
303        util_send ("\\Deleted");        util_send ("\\Deleted");
# Line 322  fetch_flags (struct fetch_command *comma Line 330  fetch_flags (struct fetch_command *comma
330          util_send (" ");          util_send (" ");
331        util_send (" \\Draft");        util_send (" \\Draft");
332      }      }
333      if (isuid)
334        util_send (")");
335    util_send (")");    util_send (")");
336    }
337    
338    static int
339    fetch_flags (struct fetch_command *command, char **arg)
340    {
341      fetch_flags0 (command->name, command->msg, 0);
342    return RESP_OK;    return RESP_OK;
343  }  }
344    
345    
346  /* INTERNALDATE   The internal date of the message.  /* INTERNALDATE   The internal date of the message.
347     Format:     Format:
348    

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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