The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Neomail ditching message bodies when transferred to saved folder

Discussion in 'E-mail Discussions' started by drose25, Sep 18, 2003.

  1. drose25

    drose25 Well-Known Member

    Joined:
    Apr 3, 2002
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    I have a client who has transferred mail to the saved-messages folder in Neomail. For some reason now, all of his messages seem to have lost the actual content. Only the header and a message like this:

    --0-1302359868-1063642539=:33659
    Content-Type: multipart/alternative; boundary="0-1310662797-1063642539=:33659"

    --0-1310662797-1063642539=:33659
    Content-Type: text/plain; charset=us-ascii

    Is displayed when viewing a message.

    What's up?!

    cPanel.net Support Ticket Number:
     
  2. drose25

    drose25 Well-Known Member

    Joined:
    Apr 3, 2002
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    This may be a case of folder corruption bug as outlined in the message below. Any idea if this has been corrected in Cpanel's version?

    ---

    * And Why is this happening?

    This misterious folder corruptions are caused because there is a bug in
    tell() in perl 5.8 which would return wrong offset if it is called after
    open(F, ">>file");

    This is a serious bug which may corrupt the folder file in some cases when
    using perl 5.8 (eg: RedHat 8.0 ships it by default)


    * The Solution:

    There is only a quick fix, but it implies changing the code. I would not
    call it solution but a safer way of programming...

    Using
    open(F, "+>>file"); # same behavior as "a+" on "C"'s fopen()
    instead of
    open(F, ">>file");
    seems to address the issue.

    A way to do this changes quickly, will be:

    # perl perl -pi'.bak' -e 's#>>#+>>#gs' neomail.pl neomail-prefs.pl

    this will replace any occurances of ">>" with "+>>", and will save a copy
    of the files with the '.bak' appended to its name.


    Watch the complete perl bug report here:

    http://rt.perl.org/rt2//Ticket/Display.html?id=18711


    Regards,

    --
    Paulo Matos

    cPanel.net Support Ticket Number:
     
  3. rhood

    rhood Well-Known Member

    Joined:
    Feb 15, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    We are having the same issue here, however the script appears to break webmail entirely (had to restore the files it modified from backups).

    cPanel.net Support Ticket Number:
     
  4. rhood

    rhood Well-Known Member

    Joined:
    Feb 15, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Is it safe to go and download/install Perl 5.6.1 from layer1.cpanel.net on a RedHat 8 machine with CPanel? I did this on a test machine and it seemed fine, but this is a production machine so I want to be absolutely sure nothing goes wrong in any way.

    cPanel.net Support Ticket Number:
     

Share This Page