Closed Bug 510695 Opened 15 years ago Closed 14 years ago

"There is an error copying to sent folder. Retry?

Categories

(Thunderbird :: Message Compose Window, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: m7, Unassigned)

Details

(Whiteboard: [closeme 2011-02-21])

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: TB3b3 / 1.9.1.1 / 20090715

I´ve being using TB3b2 and TB3b3 on WinXP SP3 with qmail + Courier IMAP server.

1 - When server and workstation is in the same network (local) everything is
fine, I sent message (with or without attachments) and the message was send and
copying to sent forder (IMAP)

2 - When I´m in other network (remotely) and I´m sent a simple message without
attachment, the message goes and message was copying to Sent folder

3 - When I´m in other network (remotely) and I´m trying sent message WITH
attachment (any, less than 1 MB) the message goes, but when TB3 starting to copy
sent message to Sent folder, the progress bar works too slow and when complete
100% the progress bar starts again (slowly) and when finish 100% appears an
error message "There is an error to copy to sent folder, retry ?" (maybe this
message was translate wrong, because I´m using pt_BR version)


Reproducible: Always

Steps to Reproduce:
1. Configure TB3b3 to IMAP (using a remote server)
2. Compose a new message, with any attachment (1 MB or less)
3. Send message
4. The message goes, but when TB3b3 starts to copy sent message to Sent folder, it fail (two times progress bar, and fail) 
Actual Results:  
Message was sent, but not copied to Sent folder

Expected Results:  
Message Sent, and copied to Sent folder

I manage four servers, and with another mail client (even with celular IMAP account) I can sent and copy message to Sent folder. I´m using TB3b3 or TB3b2, with Linux server + qmail + vpopmail + courier IMAP.

If anyone needs a test account I can do this.
we're sending the data, but the server is not acknowledging that we've sent all the data , so we time out. Either one of us is miscounting the number of bytes, or some data is getting dropped between the client and the server, or the server takes a really long time to acknowledge a very large append. You could try increasing mailnews.tcptimeout but I doubt that will help.
> Build Identifier: TB3b3 / 1.9.1.1 / 20090715

You can add timestamp to NSPR log. See Bug 402793 Comment #17. Get IMAP log with timestamp, with larger value of mailnews.tcptimeout.
I'm reasonably sure that timestamp will show the difference between the timestamp of the last data we send, and the timeout error will be very close to mailnews.tcptimeout.
To Marco Varanda:

Does problem occur even when manual copy(upload) of same mail data to Sent folder?
 -  "Send Later", move mail in "Outbox" of "Local Folders" to a local mail folder,
    then copy the mail to Sent folder of the IMAP account.
 -  "Send" and keep copy of sent mail in local mail folder,
    then copy the mail to Sent folder of the IMAP account.

SMTP server and IMAP server are placed on same system? Or on different system?
("imap:5,smtp:5" may help this kind of check.)
First of all, thank you !

So, I tried what you asked, and works fine, I choose "Send Later" and manually
copy to Sent IMAP Folder, and progress bar (on the status bar, right botton the main program box) was filled just one time (slowly) and the message appears in a IMAP Sent folder.

The IMAP and SMTP server are in the same system, the message was sent quickly, but its message copy to Sent Folder is slow.

I hope these information help you.

Marco
I´ve just created an account:
m-wada@sealtelecom.com.br
imap=smtp=mail.sealtelecom.com.br=189.2.157.200
pass=sentfolder

webmail = mail.sealtelecom.com.br
user=e-mail

Thanks
I forgot ...

SMTP port 9025
Autentication plain text (repeat e-mail and password)
(In reply to comment #6)
> First of all, thank you !
> 
> So, I tried what you asked, and works fine, I choose "Send Later" and manually
> copy to Sent IMAP Folder, and progress bar (on the status bar, right botton the
> main program box) was filled just one time (slowly) and the message appears in
> a IMAP Sent folder.

Were you "remote" when you did that, i.e., #3 in your initial report?
Yes(In reply to comment #9)
> (In reply to comment #6)
> > First of all, thank you !
> > 
> > So, I tried what you asked, and works fine, I choose "Send Later" and manually
> > copy to Sent IMAP Folder, and progress bar (on the status bar, right botton the
> > main program box) was filled just one time (slowly) and the message appears in
> > a IMAP Sent folder.
> 
> Were you "remote" when you did that, i.e., #3 in your initial report?

Yes, I´m in my house, making tests in office, like the first time
I made a video, hosted on Youtube

http://www.youtube.com/watch?v=kZuyZ4ssrr0

(may this video is not available immediately - 16/Aug/09 - 13h30 / -3 GMT)

Thanks
(In reply to comment #6)
> So, I tried what you asked, and works fine, I choose "Send Later" and manually
> copy to Sent IMAP Folder, and progress bar (on the status bar, right botton the
> main program box) was filled just one time (slowly) and the message appears in
> a IMAP Sent folder.
(In reply to comment #7)
> imap=smtp=mail.sealtelecom.com.br=189.2.157.200
> webmail = mail.sealtelecom.com.br

"Copy from local folder to IMAP folder" is nearly equivalent to "Save in Sent of IMAP after mail send".
I looks all in one "Web_mail+IMAP+SMTP" system like "Gmail+Gmail IMAP+Gmail SMTP". If so, all of next can occur at same time.
  (a) SMTP+Web_mail : Sent mail data saving into Mail Database
  (b) SMTP : Mail delivery to destination (Gmail in attached log)
  (c) IMAP : Append of sent mail data by Tb
  (d) IMAP+Web_mail : Storing of arrived mail data into DB,
                      if (b) finished and Gmail was very quick.
Simply a delay at IMAP server, isn't it?
(e.g. due to contention of central Mail DB)
Have you checked with larger mailnews.tcptimeout?
(In reply to comment #12)
> (In reply to comment #6)
> > So, I tried what you asked, and works fine, I choose "Send Later" and manually
> > copy to Sent IMAP Folder, and progress bar (on the status bar, right botton the
> > main program box) was filled just one time (slowly) and the message appears in
> > a IMAP Sent folder.
> (In reply to comment #7)
> > imap=smtp=mail.sealtelecom.com.br=189.2.157.200
> > webmail = mail.sealtelecom.com.br
> 
> "Copy from local folder to IMAP folder" is nearly equivalent to "Save in Sent
> of IMAP after mail send".
> I looks all in one "Web_mail+IMAP+SMTP" system like "Gmail+Gmail IMAP+Gmail
> SMTP". If so, all of next can occur at same time.
>   (a) SMTP+Web_mail : Sent mail data saving into Mail Database
>   (b) SMTP : Mail delivery to destination (Gmail in attached log)
>   (c) IMAP : Append of sent mail data by Tb
>   (d) IMAP+Web_mail : Storing of arrived mail data into DB,
>                       if (b) finished and Gmail was very quick.
> Simply a delay at IMAP server, isn't it?
> (e.g. due to contention of central Mail DB)
> Have you checked with larger mailnews.tcptimeout?


Sorry, I can´t understand what you said. (a,b,c,d) ?

>Simply a delay at IMAP server, isn't it?
I don´t think so, mobile phones, and another mail client works.

> Have you checked with larger mailnews.tcptimeout?
The default value is 100, so I tried 10000 - 1000 - 10 - 1 - 130 - 110 - 120 - 90 - 105
The same problem appears, "There was an error copying the message to sent folder, retry ?

I made the same tests with TB3b4pre (English version) and the problem is the same.

Have you seen my Youtube video ?

Thanks
> 3 - When I´m in other network (remotely) and I´m trying sent message
>     WITH attachment (any, less than 1 MB) the message goes, (snip)

What kind of conection do mean by "remotely"? Wifi connection? SSL tunnel?

> The default value is 100, so I tried 10000 - 1000 - 10 ... (snip)
> The same problem appears, "There was an error copying the message to sent folder, retry ?

When tested with 1000, was the dialog appeared after 1000 sec? Or earlier?

FYI.
Bug 325649 is for similar phenomenon on SMTP. For Tb(IMAP level, Socket level), it looks simply a timeout after sending whole mail data including "end of data indicator". Change(increase) of tcptimeout value of Tb did do nothing in this case. "Silent kill of connection by Yahoo Japan" was suspected. I'm suspecting TCP/IP level timeout at server, followed by silent kill of connection due to such as retry failure.
(In reply to comment #14)
> > 3 - When I´m in other network (remotely) and I´m trying sent message
> >     WITH attachment (any, less than 1 MB) the message goes, (snip)
> 
> What kind of conection do mean by "remotely"? Wifi connection? SSL tunnel?
> 
> > The default value is 100, so I tried 10000 - 1000 - 10 ... (snip)
> > The same problem appears, "There was an error copying the message to sent folder, retry ?
> 
> When tested with 1000, was the dialog appeared after 1000 sec? Or earlier?
> 
> FYI.
> Bug 325649 is for similar phenomenon on SMTP. For Tb(IMAP level, Socket level),
> it looks simply a timeout after sending whole mail data including "end of data
> indicator". Change(increase) of tcptimeout value of Tb did do nothing in this
> case. "Silent kill of connection by Yahoo Japan" was suspected. I'm suspecting
> TCP/IP level timeout at server, followed by silent kill of connection due to
> such as retry failure.


> What kind of conection do mean by "remotely"? Wifi connection? SSL tunnel?
Both of them are cable modem (2mb/s x 2mb/s) without SSL or TLS authentication via SMTP was made by plain text
Remotely means not local, (users with same private local IP with server, doesn´t see this problem).
Both links (server and client) are OK, no fail, no packet loss, etc


> When tested with 1000, was the dialog appeared after 1000 sec? Or earlier?
Earlier, practically immediately
(In reply to comment #15)
> > When tested with 1000, was the dialog appeared after 1000 sec? Or earlier?
> Earlier, practically immediately

It's same as Bug 325649. Problem occurred immediately after sending of whole mail data including "end of data indicator"("." when SMTP, null when IMAP).

Can you get NSPR log of socket level flow with timestamp. (with default tcptimeout )
> https://wiki.mozilla.org/MailNews:Logging
> http://www.mozilla.org/projects/netlib/http/http-debugging.html

> SET NSPR_LOG_MODULES=timestamp,nsHostResolver:5,nsSocketTransport:5,imap:5,DOMLeak:5,DocumentLeak:5,nsDocShellLeak:5
> xxxLeak is for Leak Gauge. Log for dialog open etc. is written by it.
> So "when Tb detected error" is easily be seen in log.
Sorry for my delay, I hope this LOG help us.
I wonder if there's a router or firewall dropping the connection? It doesn't have to do with the TB tcptimeout, apparently.
This is my firewall, there are another rules, but dropping specific SMTP connections from some ADSL countries.

I´ve being using this for a long time.
Attachment #394979 - Attachment mime type: application/octet-stream → text/plain
I was thinking of a firewall between the networks, but I don't really know. I don't think our networking code is broken, because otherwise lots of folks would see this problem...
Now is 00h 14min in Brazil, I disabled all firewall rules to do a test, and same problem was verify.

So I return all firewall rules.

What can I do ?
Do you enable mail scanner feature for outgoing mail of anti-virus software?

By the way, anti-virus software and firewall software hooks activity of application, and it interferes application's action some times. To see whether such interfere exists or not, "simply disable a feature" is not sufficient in many cases. Killing of such software is recommended instead of "disabling firewall rules only". Please note that uninstall of such software is required in the worst case.
this also fails with tb2, right?

Would it be possible for me to get access to an account on the server to try to debug TB from here, and make sure that the timeout is coming from the server?
(In reply to comment #24)
> Would it be possible for me to get access to an account on the server to try to debug TB from here, (snip)

You can use account written in Comment #7, if you don't dislike my name in mail addr and username :-)
marco, i'm fuzzy on what patches got in lately, but can you test v3.1? I think it would be useful unless bienvenu thinks otherwise.
OK

I will try with TB 3.1 latest, with another computer (desktop), I return back soon

Thanks
I´m using TB 3.1.1 / 1.9.2.7 / 20100713

Unfortunately it doesn´t work

:(
Nowadays I´ve been using TB3 with Google/GMail (apps) integration, with IMAP, Calendar, Tasks, Contactlist, AND using all functions with HTC/Nexus One.

All of this works wonderful !

So, if I could suggest something, I would said: "Hey guys, may you could develop, more integrations about Google/GMail, TB4 (with AD banner, like orkut, incredimail, etc), and some Android Cell Phones.

I´m sure this iniciative will produce good impression !

=======

About this error (Copy to SENT IMAP folder) ...... forget about this !

I appreciate your work until now, specially Mr. Wada (from Japan) and Mr. David Bienvenu

Lets try to take TB, a step forward.

Thanks again

varanda 55-11-8396-7777
(In reply to comment #25)
> (In reply to comment #24)
> > Would it be possible for me to get access to an account on the server to try to debug TB from here, (snip)
> 
> You can use account written in Comment #7, if you don't dislike my name in mail
> addr and username :-)

Unfurtunately, this account was down (they change to MS-Exchange, argh !) but I can give another account (in other customer server), or see 1st part of comment 29

thanks
marco varanda - 55-11-8396-7777
(In reply to comment #25)
> (In reply to comment #24)
> > Would it be possible for me to get access to an account on the server to try to debug TB from here, (snip)
> 
> You can use account written in Comment #7, if you don't dislike my name in mail
> addr and username :-)

Comment #7 account was disabled, so I can create a new one, in another server - marco varanda
Component: Folder and Message Lists → Message Compose Window
QA Contact: folders-message-lists → message-compose
Summary: There is an error to copy to sent folder → "There is an error copying to sent folder. Retry?
(In reply to comment #31)
> (In reply to comment #25)
> > (In reply to comment #24)
> > > Would it be possible for me to get access to an account on the server to try to debug TB from here, (snip)
> > 
> > You can use account written in Comment #7, if you don't dislike my name in mail
> > addr and username :-)
> 
> Comment #7 account was disabled, so I can create a new one, in another server -
> marco varanda

yes, please do so.

but if you don't see the problem any more, let's close this bug
Whiteboard: [closeme 2011-02-21]
RESOLVED INCOMPLETE due to lack of response to last question. If you feel this change was made in error, please respond to this bug with your reasons why.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: