1. 26 Feb, 2001 1 commit
    • doc/mailbox.texi : Why is this always show? I did not touch it.
      lib/strtok_r.c : Return NULL and save the old pointer.
      mailbox/folder_imap.c mailbox/mbx_imap.c: Implement FETCH .. ye!!!
      mailbox/mbx_mbox.c : some comments.
      Alain Magloire authored
  2. 23 Feb, 2001 1 commit
    • will permit to change the behaviour of the mailbox.  For example
      POP3 and IMAP4 streams are RFC822 meaning they end with "\r\n",
      Now I'm doing ugly hack to convert it and maintain the offset,
      that does not work well.  Rather lets put the trouble on
      the client ;-) but by setting property_set ("RFC822_FORMAT");
      the conversion "\r\n" can still be done. But it will be up
      to the client to do the offset calculation.
      Alain Magloire authored
  3. 22 Feb, 2001 2 commits
  4. 21 Feb, 2001 1 commit
  5. 20 Feb, 2001 3 commits
  6. 16 Feb, 2001 1 commit
  7. 09 Feb, 2001 1 commit
  8. 07 Feb, 2001 2 commits
  9. 06 Feb, 2001 1 commit
  10. 05 Feb, 2001 8 commits
  11. 02 Feb, 2001 3 commits
  12. 01 Feb, 2001 3 commits
    • Alain Magloire authored
    • header_get_fvalue()
      mailutils/mailbox.h  : rename mailbox_recent_count() to
      mailbox_unseen_count()
      Alain Magloire authored
    • header.c mbx_mboxscan.c mbx_mbox.c : an other attempt for speed
      when parsing, the most common use headers (From, To, Date, CC,..)
      are save in the structure, so when retrieve them it will be
      faster.  Downside the tight parsing loop is not so thight and
      is frankly ugly.  More memory is being use per messages.
      It is hard to guess at this stage the memory patterns
      and where to optimise, probably my last attempt at this
      before the code become truly unmaintable.
      
      mbx_imap.c mailbox.c : I did not understand the difference between
      "recent" and "unseen" english words.  I think that "unseen"
      means new mail, an "recent" mail that was not read yet.
      So I had to rename some functions mailbox_recent_count()
      to mailbox_unseen_count(), but I maybe wrong ... sigh
      somebody with better english skill should explain this
      to me.
      
      mbx_pop.c include/header0.h include/mailbox0.h :
      Introduce header_set_fill() to let the mailboxes fill
      up a buffer that will contains the entire headers.
      Alain Magloire authored
  13. 29 Jan, 2001 4 commits
  14. 26 Jan, 2001 5 commits
  15. 25 Jan, 2001 3 commits
  16. 23 Jan, 2001 1 commit
    • was doing the equivalent of:
      
      char buffer[1024];
      memset (buffer, 0, 1024);
      ...
      read (popfd, buffer, 1024);
      ...
      ret = malloc (strlen (buffer) +1);
      
      According to the rfc a command line should be no longer then
      255 but a malicious client could send a big buffer that could fit
      1024 then buffer would not be null terminated, strlen(buffer) may
      be supceptible to overflow.  A simple fix would be to
      read (fd, buffer, 1023); /* leave space for a null */
      I've put a different fix that does not need the call to memset().
      And at the same time reduce the size of the buffer to  go
      easy on the stack 512 is sufficient.
      Alain Magloire authored