Bug 372168

Summary: Reply buttons are disabled when the MessageView is hidden
Product: [Unmaintained] trojita Reporter: Le Baron d'Merde <lebarondemerde>
Component: CoreAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Image 01.
Image 02.
Config File.
Log.
Screenshot.

Description Le Baron d'Merde 2016-11-07 02:51:51 UTC
Created attachment 102083 [details]
Image 01.

Hello,

Basically, I can receive and send e-mails using Trojitá, what I think means everything is correct but the reply function do not work.

I attach images.

Thank you.
Comment 1 Le Baron d'Merde 2016-11-07 02:52:24 UTC
Created attachment 102084 [details]
Image 02.
Comment 2 Le Baron d'Merde 2016-11-07 02:55:00 UTC
Created attachment 102085 [details]
Config File.

I "masked" the e-mail addresses to avoid spam.
Comment 3 Jan Kundrát 2016-11-07 08:46:38 UTC
- What Qt version is that?
- Do you have any selected e-mail? Can you please show us a screenshot of 
the whole window?
- Please attach the IMAP logs (IMAP -> Debugging -> ...)
Comment 4 Le Baron d'Merde 2016-11-07 14:17:28 UTC
Created attachment 102100 [details]
Log.
Comment 5 Le Baron d'Merde 2016-11-07 14:18:13 UTC
Created attachment 102101 [details]
Screenshot.
Comment 6 Le Baron d'Merde 2016-11-07 14:22:23 UTC
Hello,

Qt-5.6.2, but there are some of the v.4.8.7 installed too.

Thank you.
Comment 7 Jan Kundrát 2016-11-07 15:19:31 UTC
Thanks for the logs.

- Do you use something for managing network? 
NetworkManager/connman/something else?

- What USE flags do you have for qtnetwork:5 ?

- If you're using NetworkManager, what is the output of `nmcli general 
status` when you see the behavior that you're describing?

- Please run Trojita from a terminal and provide its output.

- Please attach also logs from "Connection 0" (which should be the leftmost 
window).

- Does this get fixed when you reconnect (go offline, go back online, 
select another message)?
Comment 8 Le Baron d'Merde 2016-11-07 16:08:30 UTC
For network I am using netifrc (OpenRC)

dev-qt/qtnetwork-5.6.2  USE="ssl -bindist -connman -debug -libproxy -networkmanager {-test}"


*** Terminal

Couldn't find out which mailbox is "SOMEMAIL@campus.ul.pt/Archive" when parsing a STATUS reply
Couldn't find out which mailbox is "SOMEMAIL@campus.ul.pt/Thesis" when parsing a STATUS reply

***

This e-mail (ı) is there from the "Mail Collect" service of Gmx.


*** Connection 0

13:52:07.404 Network Session User's preference changed: NETWORK_ONLINE
13:52:07.405 Network Session Switched to network configuration enp3s0 (Ethernet, 3502748667)
13:52:07.405 Network Session Opening network session
13:52:07.405 Network Session Session is open (configuration enp3s0), online state: online

***

The situation is the same connected or not. I don't have how to try using wireless because I do not have a wireless card.

But *just now* I found out if I change the layout from "Compact" (what I use by default) to anything the reply option begin to work, ever if I return to compact. However, if I start it with any layout but "Compact" the reply option work.

So, the issue appear to be on the "Compact" layout.


PS. Trojitá also appear to not be saving the mail order state. I like to have them sorted from the newest to the oldest, but this state is not being saved between close-start. Neither them are being marked as read when I open for the first time.

PS.2 I am affected by a syslog-ng bug. There may have more messages but I can't receive them now.

https://bugs.gentoo.org/show_bug.cgi?id=586546

Thank you.
Comment 9 Jan Kundrát 2016-11-07 16:56:58 UTC
Could you please emerge this, restart Trojita, see if you can reproduce this, and post the console output?

ACCEPT_KEYWORDS='**' EGIT_BRANCH=refs/changes/37/837/2 USE=debug emerge -1 --nodeps =trojita-9999
Comment 10 Le Baron d'Merde 2016-11-07 17:10:20 UTC
Won't emerge.


>>> Emerging (1 of 1) mail-client/trojita-9999::gentoo
>>> Unpacking source...
 * Fetching git://anongit.kde.org/trojita.git ...
git fetch git://anongit.kde.org/trojita.git +refs/heads/refs/changes/37/837/2:refs/heads/refs/changes/37/837/2
fatal: Couldn't find remote ref refs/heads/refs/changes/37/837/2
 * ERROR: mail-client/trojita-9999::gentoo failed (unpack phase):
 *   Unable to fetch from any of EGIT_REPO_URI
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_unpack
 *   environment, line 3915:  Called git-r3_src_unpack
 *   environment, line 2733:  Called git-r3_src_fetch
 *   environment, line 2727:  Called git-r3_fetch
 *   environment, line 2649:  Called die
 * The specific snippet of code:
 *       [[ -n ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI";
 * 
 * If you need support, post the output of `emerge --info '=mail-client/trojita-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-client/trojita-9999::gentoo'`.
 * The complete build log is located at '/tmp/portage/mail-client/trojita-9999/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/mail-client/trojita-9999/temp/environment'.
 * Working directory: '/tmp/portage/mail-client/trojita-9999/work'
 * S: '/tmp/portage/mail-client/trojita-9999/work/trojita-9999'

>>> Failed to emerge mail-client/trojita-9999
Comment 11 Jan Kundrát 2016-11-07 18:51:09 UTC
Sorry, copy-paste error. The correct command is:

ACCEPT_KEYWORDS='**' EGIT_COMMIT=refs/changes/37/837/2 emerge -1 --nodeps 
=trojita-9999
Comment 12 Le Baron d'Merde 2016-11-07 19:01:43 UTC
Thank you, but no changes so far.
Comment 13 Le Baron d'Merde 2016-11-07 19:04:42 UTC
Sorry I forgot to paste:

### Terminal

void Gui::MainWindow::applySizesAndState() force-calling updateActionsOnlineOffline
void Gui::MainWindow::updateActionsOnlineOffline(bool) true
void Gui::MainWindow::updateActionsOnlineOffline(bool) false
void Gui::MainWindow::updateActionsOnlineOffline(bool) true
Couldn't find out which mailbox is "SOMEMAIL@campus.ul.pt/Archive" when parsing a STATUS reply
Couldn't find out which mailbox is "SOMEMAIL@campus.ul.pt/Thesis" when parsing a STATUS reply
void Gui::MainWindow::applySizesAndState() force-calling updateActionsOnlineOffline
void Gui::MainWindow::updateActionsOnlineOffline(bool) true
void Gui::MainWindow::applySizesAndState() force-calling updateActionsOnlineOffline
void Gui::MainWindow::updateActionsOnlineOffline(bool) true

###
Comment 14 Jan Kundrát 2016-11-07 19:26:58 UTC
OK, this only happens when the message widget is hidden -- you're double-clicking on messages to open them, that's why it happens.

Do you have a reason for this? We should probably prevent this widget hiding:

- there's no UI indicator of this,
- it has real support cost, as demonstrated by this bug.
Comment 15 Le Baron d'Merde 2016-11-07 19:40:39 UTC
Hi,

The reason is when the monitor is not big the information become a bit constricted when there is the message at the same time.

I can use the message widget but I was not expecting this behavior. I was expecting when a message was selected it would be enough to trigger the reply options.

Thank you.
Comment 16 Le Baron d'Merde 2016-11-07 20:03:27 UTC
A good alternative, if you are interested, IMHO would be:

1 - if the message widget is open, the current behavior remains;
2 - if the message widget is hidden, one click open the message in the same way of the "One at Time" layout, instead of opening a second window.

Thank you.
Comment 17 Jan Kundrát 2016-11-24 08:54:34 UTC
> 2 - if the message widget is hidden, one click open the message in the same way 
> of the "One at Time" layout, instead of opening a second window.

I honestly do not think that this is discoverable without additional UI 
work. You would know how to use it because you offered this idea, but try 
to imagine someone new creating such a scenario by accident. IMHO, it would 
need some oobvious UI indication "hey, you should click here to go back".
Comment 18 Le Baron d'Merde 2016-11-27 00:49:11 UTC
Yes, I agree.

The options I have in mind then are:

1 - leave as is;
2 - or remove the message widget completely on Compact mode, but it may bring issues to several people who are using it like it the way it is now. Probably the majority.

Thank you!
Comment 19 Thomas Lübking 2016-11-27 07:01:08 UTC
The only™ reasonable way is to move the reply/delete/... buttons into the messageview (window)
Otherwise, when more than one mail is opened, there's no strong indication about mail the buttons will work on, nor is it controllable.
At very least it's ambigious: The user may believe to operate on the mail he's looking at while actually treating the selected one.

(iirc the techinical issue on the mails UID would remain, i think we had such peservation issues)
Comment 20 Christoph Cullmann 2024-09-23 18:51:04 UTC
Trojitá is no longer maintained, please switch to a maintained alternative like https://apps.kde.org/kmail2/

Sorry for the inconveniences.