From 00042145910e2e0d72aa75a57aa8274e913d6682 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 26 Apr 2020 21:39:19 -0400 Subject: [PATCH] fsf changes, meant to be rebased on upstream As upstream changes, rebase this commit on top. The change to read_body.php, documented here https://sourceforge.net/p/squirrelmail/mailman/message/36992407/ copied here in case that link dies: In the svn version, when viewing a message, if you click the move or copy button, the page changes to the list of messages. In older versions such as 1.4.13, that button was enabled by the delete_move_next plugin, and when pressing move, the page would change to the next message. That is clearly the way it should work. When using the preview panel, this behavior especially makes no sense because you were already seeing the message list and it just turns the preview panel into blank space. After a quick look into the code, I was able to make a one line change to the svn version so that the the page does not change at all when pressing move, which helps workaround the problem so that I can then press a key to go to the next message. I'm hoping someone here is familiar with the code and can help identify the root cause and find a proper fix so it goes to the next message. Here is a comparison of the post request when clicking move in svn vs old working 1.4.13: SVN post: https://webmail.fsf.org/src/read_body.php?mailbox=INBOX&sort=6&startMessage=1&passed_id=18 form data: show_more "0" move_id "19" targetMailbox "INBOX.Trash" Working 1.4.13 post: https://mail1p.fsf.org/src/right_main.php form data: smtoken "EEZR1hS4cPUh" mailbox "INBOX" msg[0] "19" targetMailbox "INBOX.Trash" moveButton "Move" I figured out that if the post url didn't have any path, or had a path of "right_main.php", like the old version, it would stop changing the page, and there was already an example in the code of not passing the path, so I copied that to make this hacky patch. I enabled level 2 debug mode, didnt result in any output in the logs. Configtest shows no errors. --- images/fsf.png | Bin 0 -> 9304 bytes plugins/squirrelspell/sqspell_config.php | 5 ++--- src/read_body.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 images/fsf.png diff --git a/images/fsf.png b/images/fsf.png new file mode 100644 index 0000000000000000000000000000000000000000..8d11491052fd29807583933d2bb6cc40e502c642 GIT binary patch literal 9304 zcmW++1ymbN7Y**N#jSWDxHq^JFYZ>{i@Q4oK1zY&?(SOL-66QN6n821FaOC&vS+iI zot-E5zWXLhMM(w&l>`+80%6F>N~(cCFjl}ZGcqFZ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jli^B-3y3&5IyylXU*OsrdCCu##7J@mi4fp(MCzV z%Udorjyo#WoU_1A7Y*nPWD9q?Q&HZ%8>Lv204iZXRzB}Mq;(|~3RDPB?F)}I$mK0& z0s$TAJ^M|iSNj#9&Jka99H@7+r19S%ODOq1h~rvpR@@^P&}YKJ0s_IUyzK=bNoF?^ z?`MlpXM_i^6Q6|KT#(!xj${~JLM3f5ha^4F#*X#X-V_$FsMU`}7qzCE`J-r8mJL>b zuZ5T!gWP++o?p5EogK~Or+!oXrM<=a!?nhdJKuG~0^A$iSamx3jAF;-n>fkoLyXAR zZN2X-`_y)te|1;!5PnY&CQD3{@Cu2MTN(8j%i%nl`x0zp$c=0ByW$%xR4>5s zvETtP7Yy{{QZmCbb^`+OUeOiU9f8h8-UwGnp5Bt`#WhN--}Cg}Wov>3YC!v0f+A2| zZTa6%8sz-2-mv)<`wr|5eo^#W&cEMZXvh4bb@n6UGJ0w>B61=; zH~({|z~;5fuRQUZT~q3v8nODCKpk1A1(!@x^uSg>+5 z2L^JWP}|t`33g+#-rYr88*NHJt%x2_PZ$Aw8AuXG0|Z97Y>6W($@=xn2iv7Hu!lE3 zpX1`vh4B)jB} 'ispell -a', - 'Spanish' => 'ispell -d spanish -a'); +$SQSPELL_APP = array('English' => 'aspell -a'); /** * Sample configuration for PHP pspell extension. Sets dictionary options. diff --git a/src/read_body.php b/src/read_body.php index 528b3d4b..74146c5c 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -8,7 +8,7 @@ * * @copyright 1999-2024 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License - * @version $Id$ + * @version $Id: read_body.php 14845 2020-01-07 08:09:34Z pdontthink $ * @package squirrelmail */ -- 2.25.1