Dijji / XstReader

Xst Reader is an open source viewer for Microsoft Outlook’s .ost and .pst files, written entirely in C#. To download an executable of the current version, go to the releases tab.
Microsoft Public License
479 stars 70 forks source link

Add time to email pane and change attachment list order #19

Closed flywire closed 4 years ago

flywire commented 4 years ago

Note: 01729f3 should be used in preference to ba389f5 since suggested first and change is identical. Other parts of PRs are different.

flywire commented 4 years ago

If you doubt this simplifies the build process it then try it on a clean PC.

Dijji commented 4 years ago

Agree with attachment list change: good spot. Agree with idea of adding time, but code could be more simply expressed as: ((DateTime)Date).ToString("g") which produces the same 'short date + space + short time' result.

The readme changes, I don't really understand. Why Open a local folder when double-clicking on the solution file opens Visual Studio and the project? Why press Ctrl+Shift+B? It doesn't do anything on my machine, the hotkey is F6. Why switch to Release mode at all? If you do, why use the Configuration Manager, which you haven't told them how to get to, and not just change the drop down on the toolbar from Debug to Release?

Dijji commented 4 years ago

I forgot to say, thank you for your first contribution as a pull request! All the better for being mostly right 👍

flywire commented 4 years ago

Thank you, we've both after the same thing. This is the first time I've used either VS or C# and it has caused a bit of grief bringing up the environment, esp loading GBs of rubbish, My previous experience is with procedural languages and VB but nothing oop. Using VS to clone repository seems to give the cleanest download and put it in a nice structure.

I'd welcome any direction and I'm sure there is a better path but I wonder if the latest VS release is different (?).

2019-12-07 23_51_01-XstReader - Microsoft Visual Studio

Microsoft Visual Studio V16_4_0

btw - I'm finding the code comments hard to follow. I was expecting something more VB like eg Your First C# Windows Form with a Form.cs object.

Dijji commented 4 years ago

It turns out the same version of Visual Studio 2019 as you, it is just that I am running the Community Edition, and I have a different hotkey on the same menu.

If we cannot rely on consistent hotkeys, we had better say Build/Build Solution, and Debug/Start Debugging instead.

It is my code comment that was obscure. I was merely observing that ((DateTime)Date).ToShortDateString() + " " + ((DateTime)Date).ToShortTimeString() and ((DateTime)Date).ToString("g") yield the same result, but the latter is the crisper expression.

I would have expected there to be detailed click throughs of using Visual Studio and C# out there somewhere: some people seem to love creating such things.

Dijji commented 4 years ago

By the way, what I would like to do is to take some of your changes and not others. However, it is very difficult to partially apply a pull request. By git convention, each group of files making up a change would be made in a different branch, and each would be proposed as a separate pull request.

In this case, what I currently propose to do is to make changes in my own code base: reordering attachments, as proposed, adding time, as proposed, but modified as I mentioned, and build instructions, change only hotkeys to menu directions.

Then ultimately, I will reject your pull request as superseded.

flywire commented 4 years ago
Dijji commented 4 years ago

Closing as superseded by a revised version of the changes checked into master

Dijji commented 4 years ago

Yes, a pull request for each commit that you want merged into master is usual. It is difficult to separate multiple commits within one pull request, and there is no intended way to separate changes made within one commit.

flywire commented 4 years ago

I did separate commits.

Do I need a separate branch for each PR?

Dijji commented 4 years ago

I think the answer is basically yes. You can avoid it, but I wouldn't bother. Here are the instructions that I found.

You actually CAN do this without creating another branch, but it takes a bit of playing around. Here's the steps:

  1. Identify the two commit ranges you want to pull. Here's what i'll use for an example: (other/master) A -> B -> C -> D -> E (yours/master) Let's say that you want to pull B and C in one request, and D & E in another.
  2. Make a pull request. Have the left side ("Base") be commit A. For the right side ("head"), type in the commit number of C.
  3. Write the description for your first request.
  4. Make another request. For the base, type in the commit number of C, and for the head, put E (yours/master).
  5. Write the description.

As I see it, the pull request sees commit C as a branch point. Or something.