Strange previous/next file arrows behavior

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
Hans L
Posts: 156
Joined: Tue Mar 03, 2009 6:12 pm

Strange previous/next file arrows behavior

Post by Hans L »

Hello:

I have an email with three .jpg attachments (1, 2, 3). When I click on the first one, xnView (default) opens and then, I click the arrows as follows:

Left arrow: Click, 1 shows; click, 2 shows; click, 3 shows; arrow dims

Right arrow: Click, 1 shows; click, 3 shows; click, 2 shows; and so on a total of 21 times before the arrow dims (and the order is not 1 3 2 all the time, but sometimes 1 2 3, and a time or two, 1 1 3 2).

How come that this happens when you click the right arrow?

Thanks!

Hans L
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Strange previous/next file arrows behavior

Post by helmut »

Hans L wrote:I have an email with three .jpg attachments (1, 2, 3). When I click on the first one, xnView (default) opens and then, I click the arrows as follows: ...
Reason for your problem is the location of the image files: When double-clicking on an attachements, the attachment is stored in the temporary directory of Windows and then XnView is started. Sure enough, the temporary folder contains quite a number of temporary files, so when navigating using previous and next image, you navigate through all the files located in the temporary folder.

Double-click on an image to open the browser. Then, you will see the full contents of the Windows temp directory and probably see your images multiple times.
Hans L
Posts: 156
Joined: Tue Mar 03, 2009 6:12 pm

Re: Strange previous/next file arrows behavior

Post by Hans L »

Thank you, Helmut.

However, so that I will not go off on a wild-goose chase: every image I see is from the attachment I have clicked on. I just see some, if not all, of them several times.

Regards,

Hans L
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Strange previous/next file arrows behavior

Post by helmut »

Hans L wrote:However, so that I will not go off on a wild-goose chase: every image I see is from the attachment I have clicked on. I just see some, if not all, of them several times.
Thanks for this info, Hans. If you open the browser by selecting "File > Browser" (Ctrl + B), what is displayed, then?
Hans L
Posts: 156
Joined: Tue Mar 03, 2009 6:12 pm

Re: Strange previous/next file arrows behavior

Post by Hans L »

Here is an example:

In the attachment field:

2: (text/html) *
image001.jpg
image002.jpg
image003.jpg
image004.jpg
Ingemar Jeppsson.jpg
Lennart Jacobsson.jpg

* I have my e-mails set to "text" ... not "html" ... so while the text is "2: (text/html)" in the attachment field, when I move it to Windows Explorer, it becomes 512e1855.html. When I click on it, it shows a window with the email message text and the images in image0001.jpg and image002.jpg.

Now. this is what shows when I click "File – Browse" in XnView:

C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e184a.txt
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e184b.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e184c.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e184d.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e184e.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e185a.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e185b.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e185d.txt
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e185e.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e185f.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1844.txt
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1845.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1846.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1847.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1848.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1850.txt
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1851.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1852.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1853.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1854.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1857.txt
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1858.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1859.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1860.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1861.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\512e1862.html
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\image001.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\image002.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\image003.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\image004.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\Ingemar Jeppsson.jpg
C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach\Lennart Jacobsson.jpg

Rather perplexing, and to me inexplicable.

Regards,

Hans L
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Strange previous/next file arrows behavior

Post by helmut »

Thanks for checking and posting the contents of the Windows temporary directory, Hans. Actually, the contents of your temporary directory are no surprise to me and exactly what I've expected:
Whenever you open an attachment in your mail program, your mail program decodes the attachment, creates a new unique temporary file name and stores the attachment in the Windows temporary directory for opening. This happens each time you open an attachment. This is why you see the same image many times in XnView browser or when using Previous/Next file.
Hans L
Posts: 156
Joined: Tue Mar 03, 2009 6:12 pm

Re: Strange previous/next file arrows behavior

Post by Hans L »

Helmut, I do now understand why I see the same picture many times in XnView.

However, why on earth are 32 files created, one html, five txt and 26 jpg. With six jpg, the numbers do not even make sense.

Hoever, when I look at the attachments from the same files now, I notice that the number of files in C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach increases with each time I open a new attachment and look in the Attach folder with "Browse" . Is that normal, or is it my email client that is going berserk?

Regards,

Hans L
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Strange previous/next file arrows behavior

Post by helmut »

Hans L wrote:Helmut, I do now understand why I see the same picture many times in XnView.
Good. :-)
Hans L wrote:However, why on earth are 32 files created, one html, five txt and 26 jpg. With six jpg, the numbers do not even make sense.
The filenames consisting of numbers that you see are typical for temporary file names.
Hans L wrote:However, when I look at the attachments from the same files now, I notice that the number of files in C:\Users\XXX\AppData\Local\Temp\B2Temp\Attach increases with each time I open a new attachment and look in the Attach folder with "Browse" . Is that normal, or is it my email client that is going berserk?
Your email client generates the temporary files. Typically, the files are tidied up either when exiting or on other occassions by the email client. Which e-mail client do you use? You (or we) might find the answer in the documentation of your email client.
Hans L
Posts: 156
Joined: Tue Mar 03, 2009 6:12 pm

Re: Strange previous/next file arrows behavior

Post by Hans L »

Okay, thanks!

My email client is Becky! ("!" is part of the name). It was developed and is maintained by a guy in Japan www.rimarts.co.jp), and is a phenomenal client. Lacking in some areas, but fast, no slowdown if you have even tens of thousands of emails saved, and have the important functions (very good filter, among other things).

Regards,

Hans L
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Strange previous/next file arrows behavior

Post by helmut »

Just browsed the documentation of your mail client "Becky" a bit. I'd recommend to create a temporary folder (e.g. a subfolder of the Windows temporary folder named "becky"). Then, you set the environment variable BECKY2TEMP to that folder. Becky will store temporary files in this directory and remove all files on exit.

Environment variables are set in Windows control panel (Systemsteuerung). On Windows XP it is System, "Enhanced" tab | "Environment variables" button.
Hans L
Posts: 156
Joined: Tue Mar 03, 2009 6:12 pm

Re: Strange previous/next file arrows behavior

Post by Hans L »

Helmut, what will the advantage of that be?

Hans L
Post Reply