#701093 claws-mail: don't generate/rely on non-standard

Package:
claws-mail
Source:
claws-mail
Description:
Fast, lightweight and user-friendly GTK based email client
Submitter:
Andrew Shadura
Date:
2025-09-18 08:16:41 UTC
Severity:
wishlist
Tags:
#701093#5
Date:
2013-02-21 12:52:19 UTC
From:
To:
Once the message sending failed it's impossible to retry. For example,
the server has an expired certificate, so every time I restart Claws I
have to accept it on first message send. If I forget about it, the
connection would time out, so pressing Accept does nothing but produces
'Failed to send message' messagebox. If I click Send button once more,
it just fails immediately without even trying to connect, and nothing
can be seen in the logs. However, if I edit the message and send it
again, it works.

It seems this bug has been introduced quite recently, as on the other
laptop I have an older version, and I've never experienced this bug.

#701093#12
Date:
2013-02-28 10:15:52 UTC
From:
To:
severity 701093 minor
tags 701093 moreinfo unreproducible
thanks

  This looks like a corner case, as the usual is to answer the dialog
when shown.

  There's some changes which could fix this in current upstream CVS.

  Unfortunately the CVS packages autobuilder (http://hydra.debian.net)
  is currently stopped, so you can try to build CVS yourself, or wait a
  bit for the autobuilder if you want to test with a packaged version
  of latest CVS.

  regards,

#701093#21
Date:
2013-02-28 10:21:44 UTC
From:
To:
Hello.

Sorry, I disagree. It's reproducible always. Also, it's not minor bug,
as it requires restart to fix it. It'd like to retag it.

Well, it's not. I can't answer a dialog I don't see, and usually right
after sending the message I switch away to a different desktop/screen
tag, and the dialog apparently doesn't have 'urgent' flag set.

#701093#26
Date:
2013-02-28 10:53:51 UTC
From:
To:
Hello.

By the way, I've just reproduced the bug with cvs61 version. Can't
build directly from CVS currently, so no info about latest code.

#701093#31
Date:
2013-02-28 11:43:50 UTC
From:
To:
  Hi Andrew,

  Not on other systems. That's what unreproducible means: other people
don't see the same. Nobody says you don't have the problem or cannot
reproduce it.

  You said simply re-editing the message suffices for it to work. That's
a very simple workaround, not a "restart". It only happens on specific
server situations (expired certificates) and very specific user behaviour
(the user ignores/forgets to answer the dialog). All of this, IMHO, qualifies
it more as a minor bug than a normal bug.

  Dialog urgency hint is a different problem, unrelated to the sending
failure when the connection times out. Can you please file a different bug
for that?

  regards,

#701093#36
Date:
2013-02-28 12:18:03 UTC
From:
To:
Hello.

I know what unreproducible means. Probably, you didn't try hard enough
:) When I said it's reproducible here always, I meant if you try to
simulate the situation closer to mine you *will* get this.
which indicates there's certainly a bug. Also, I guess it may be
reproduced without expired certificates; I will try that later. Also,
a checkbox “remember my choice” would be useful.

Well this is indeed a minor problem, I wouldn't mind that if that
didn't bring this bug to the surface.

#701093#41
Date:
2013-02-28 12:31:08 UTC
From:
To:
Hello.

Just reproduced it with unreachable SMTP server. Raising the severity back.

#701093#48
Date:
2013-02-28 12:39:32 UTC
From:
To:
  Could you detail the steps you did to reproduce that?

  regards,

#701093#53
Date:
2013-02-28 12:48:17 UTC
From:
To:
Hello.

* Make sure the server is unreachable, for example by this: ip route
add smtp-server dev lo
* Compose new message and try to send it.
* Wait for the timeout.
* Observe the error message.
* Try re-sending it.
* It fails.

Well, now I've copied the exact message, which makes things more
clear: “Some errors occurred while sending queued messages: Couldn't
determine sending informations. Maybe the email hasn't been generated
by Claws Mail.” Somehow I missed the point of this last time. I'd be
rather than happy if Claws could re-generate that information on the
fly. Or not rely on its existence at all.

P. S. Well, actually, Send later doesn't work as well. Something's
horribly broken.

#701093#58
Date:
2013-02-28 12:56:19 UTC
From:
To:
  Hi,

  So you're trying to re-send without making the server reachable again
and expect it to succeed? Is this a joke? :-P

  Yep, your test :)

  regards,

#701093#63
Date:
2013-02-28 12:59:24 UTC
From:
To:
Hello,

Erm, it seems like you're joking. Of course I meant it's reachable
again, but, well, either I have it reachable or not, Claws *must* try
to deliver it, and it doesn't, and the network log shows, and the
message I get confirms that.

Do you really want me to dig into the code? If I was you I'd not dare
to let me do that :D

#701093#68
Date:
2013-02-28 13:19:19 UTC
From:
To:
Hello,

Okay, it seems like I understand what's going on. I use IMAP mailbox,
and the server filters out all those special non-standard Claws mail
headers. I see no real reason to use them at all, as this information
can be found in standard RFC headers which already exist in the
message. Please don't rely on them.

#701093#75
Date:
2013-02-28 13:40:40 UTC
From:
To:
  Hi,

  No, no joke. Just wanted the detailed steps. There's no step saying
the server is made reachable again.

  There's no network log attached to this mail. Can't say much more.

  Only if you're sending a patch with the fix after digging.
  Otherwise don't even bother, you probably wouldn't understand it :)

  BTW, you should test with CVS code first, as suggested in my first answer.

  thanks in advance,

#701093#80
Date:
2013-02-28 14:09:07 UTC
From:
To:
Hello.

Well, it's empty.

Couldn't you please point me to the mailing list message regarding the
commit? I'd like to look at the patch itself (I can't test it
currently).

#701093#85
Date:
2013-02-28 14:16:01 UTC
From:
To:
severity 701093 wishlist
tags 701093 = wontfix
thanks

  The standard headers doesn't have the details saved in the special
header. Have you seen them?

  Anyway the server must not remove headers sent by the client unless
they have invalid data (8-bit data) which is not the case. Which IMAP
server is that which removes client data without warning or error?

  There's no place in the RFCs (3501/2600) that allows that kind of
server behaviour, so it's either a bug or a stupid feature of that server.
But clearly not a claws-mail bug.

  Since you have changed the title I guess you don't want to close this
report, which has become a feature request in fact, so tagging accordingly.

  regards,

#701093#94
Date:
2013-02-28 14:55:07 UTC
From:
To:
Hello.
and To:? That should be perfectly enough to send a message. There's
absolutely no reason to refuse sending a message which doesn't have
Claws special headers.

This is what I have and I have no option to change the server
behaviour. No other mail client is affected by this behaviour, so this
is a fault of Claws Mail.

I'd like it to be fixed, however. When the message is still in Drafts,
it doesn't have any special headers. There's no reason to refuse to
send it, as I said before.

#701093#99
Date:
2013-02-28 15:46:43 UTC
From:
To:
  Hi,

  There's account configurations for things like where to put account's
sent messages or if messages have to be digitally signed, and more. That
information cannot be extracted from To or From.

  That info is required for claws-mail to work properly, and there's no
reason for the server to remove it.

  No, that you can't change the server which is violating the IMAP standards
doesn't make it a client problem :) The other servers out there had never
such problem.

  In any case, you can put your drafts in a local folder instead of server's
and the problem should be fixed. Of course, this has drawbacks if you use
different computers.

  Yes, there is, as explained above. If the local folder drafts workaround
doesn't work for you the only thing I can recommend is to try other mail
clients in Debian and see if they work better with that ugly server.

  regards,

#701093#104
Date:
2013-02-28 16:22:55 UTC
From:
To:
Hello.

I have just one account here. There's no problem to have some
heuristic or user-configurable rules.

Why don't other clients do that?

I'm not speaking about drafts, but the outbound queue. There's no
reason to keep in on the server at all, by the way.

I don't want other mail clients! This can be worked around quite
easily, at least for simple configurations.

Also, what about 'remember my choice for this certificate' checkbox?
And urgency hint?

#701093#109
Date:
2013-02-28 17:07:15 UTC
From:
To:
  Hi,

  I have dozens. It has to work in all cases, not in yours only.

  Most of the clients out there add or allow adding extra headers to
messages, from X-Face images, to any other imaginable stuff. Claws Mail just
uses it also to save more interesting information. And is perfectly valid.
Other clients may use a database or whatever they see appropriate. They
may be slower though.

  You can also move it to a local folder. It's on the server because people
usually wants it there, but you can configure your imap account to use a
local queue.

  Fine, I'll wait for your patch then.

  BTW, upstream developers are famous for not workarounding things for
non-compliant servers, but you may be lucky if the patch is good enough.

  You can disable certificate checks if you want. See hidden preferences:
http://www.claws-mail.org/manual/en/claws-mail-manual.html#adv_hidden.

  Feature request, file the corresponding wishlist bug.
  I'll forward it to upstream.

  regards,

#701093#114
Date:
2013-03-22 13:58:43 UTC
From:
To:
  Hi,
[...]

  Just going back to this (I've been somewhat busy...)

  You can put the queue in a local folder too, there's no need to put
it on the server, see account preferences, advanced tab. That should
prevent the server from changing the mail.

  regards,