From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686; Nav) Description of problem: Very long pieces of email overflow the short used to hold the message length. When displaying available messages the message length will often be negative when this happens. Then since the message appears so "small", mailx does not use a pager to display the message but just dumps it to the screen. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Create a mailbox with a message with a number of body lines greater than a short. 2. Open that mailbox with mailx. 3. Try to read that message. Actual Results: Huge message gets dumped to the screen. Expected Results: Huge message should be displayed with a pager. Additional info: I've got a bunch of mods now to mailx, so diff gives me a lot of output. (I am also using a mailx from an earlier version of RedHat, but I did just verify that this still exists in my new RH7.1 install.) I believe this patch will completely fix the problem: --- mailx-8.1.1/def.h Fri Jun 14 01:26:58 1996 +++ mailx-8.1.1-mine/def.h Wed Mar 1 11:57:51 2000 @@ -71,10 +71,14 @@ struct message { short m_flag; /* flags, see below */ - short m_block; /* block number of this message */ - short m_offset; /* offset in block of message */ + /* block, offset and lines should not be shorts (as they were + ** in the past) since those are too easy to overflow with large + ** mail messages. + **/ + long m_block; /* block number of this message */ + long m_offset; /* offset in block of message */ long m_size; /* Bytes in the message */ - short m_lines; /* Lines in the message */ + long m_lines; /* Lines in the message */ };
This bug is also in version 9.
Thank you for your notice. The problem was fixed. IV
Solved with -40.