Menu

Bug in one of the Sort functions

Help
2009-02-15
2013-04-26
  • Vincent Finn

    Vincent Finn - 2009-02-15

    Hi,

    Just found a small bug in
    ImapCommand.Sort(SortMethod sort, SortOrder order)

    The string passed to string.Format() for the connection write call is wrong.
    You have
    Connection.Write(string.Format("SORT ({0){1}) US-ASCII ALL\r\n", OrderToString(order), SortToString(sort)));

    The second bracket is a parenthesis not a brace.
    So "{0){1}" needs to be "{0}{1}"

      Vin

     
  • Keith Kikta

    Keith Kikta - 2009-12-08

    Think this is fixed in the current version in source control.

     
  • Vincent Finn

    Vincent Finn - 2009-12-08

    Just had a look, it's fixed.

    Thanks, Vin

     
  • Keith Kikta

    Keith Kikta - 2009-12-16

    Awesome thanks.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.