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

Diff of /mailutils/mail/mbox.c

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

revision 1.9 by polak, Mon Dec 23 22:01:34 2002 UTC revision 1.10 by gray, Sun Dec 29 13:37:43 2002 UTC
# Line 21  Line 21 
21   * mb[ox] [msglist]   * mb[ox] [msglist]
22   */   */
23    
24  int  static int
25  mail_mbox (int argc, char **argv)  mbox0 (msgset_t *mspec, message_t msg, void *data)
26  {  {
   message_t msg;  
27    attribute_t attr;    attribute_t attr;
28    
29    if (argc > 1)    message_get_attribute (msg, &attr);
30      return util_msglist_command (mail_mbox, argc, argv, 1);    attribute_set_userflag (attr, MAIL_ATTRIBUTE_MBOXED);
31    else    
32      {    cursor = mspec->msg_part[0];
33        if (util_get_message (mbox, cursor, &msg, MSG_NODELETED))    
         return 1;  
   
       /* Mark the message */  
       message_get_attribute (msg, &attr);  
       attribute_set_userflag (attr, MAIL_ATTRIBUTE_MBOXED);  
     }  
34    return 0;    return 0;
35  }  }
36    
37    int
38    mail_mbox (int argc, char **argv)
39    {
40      return util_foreach_msg (argc, argv, MSG_NODELETED, mbox0, NULL);
41    }

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