I have pulled in a couple of messages using fetchmail and put them through a procmail filter, which has resulted in the two messages being visible in a file manager in ~/Maildir/Design/new. However, using my Imap account on this box I can't see those messages.
Any hints, please?
Anne
On Friday 27 Jan 2006 18:44, Anne Wilson wrote:
I have pulled in a couple of messages using fetchmail and put them through a procmail filter, which has resulted in the two messages being visible in a file manager in ~/Maildir/Design/new. However, using my Imap account on this box I can't see those messages.
Any hints, please?
I can see now what the problem is, but I need advice on correcting it.
The folder Design must have been created before I got dovecot working properly. It is not labelled .INBOX.Design.
It seems to me that I have to somehow move those two messages and the text file .Design to a safe place, so that I can delete the bad folder and create a new one, then move the messages there.
Advice?
Anne
On Fri, 2006-01-27 at 18:57 +0000, Anne Wilson wrote:
The folder Design must have been created before I got dovecot working properly. It is not labelled .INBOX.Design.
It doesn't need to be below INBOX for dovecot.
It seems to me that I have to somehow move those two messages and the text file .Design to a safe place, so that I can delete the bad folder and create a new one, then move the messages there.
text file .Design? What's in it? I think you probably don't need it, move it to some other directory and then rename Design to .Design.
johannes
On Friday 27 Jan 2006 19:11, Johannes Berg wrote:
On Fri, 2006-01-27 at 18:57 +0000, Anne Wilson wrote:
The folder Design must have been created before I got dovecot working properly. It is not labelled .INBOX.Design.
It doesn't need to be below INBOX for dovecot.
It seems to me that I have to somehow move those two messages and the text file .Design to a safe place, so that I can delete the bad folder and create a new one, then move the messages there.
text file .Design? What's in it? I think you probably don't need it, move it to some other directory and then rename Design to .Design.
The text file looks exactly like an mbox file - it is the two messages, complete with headers, concatenated.
There already is an .INBOX.Design folder, set up with all the correct
contents. I wonder what would happen if I renamed Design to Pattern?
I wonder if .INBOX.Design would then show up?
And if it did, would I be able to simply move the messages into the correct folder using a file manager?
Anne
Registered Linux User No.293302 (http://counter.li.org/)
On Fri, 2006-01-27 at 19:25 +0000, Anne Wilson wrote:
The text file looks exactly like an mbox file - it is the two messages, complete with headers, concatenated.
That's strange. It probably includes From .... lines too, making it a complete mbox file.
There already is an .INBOX.Design folder, set up with all the correct contents.
Except the missing two mails? I guess you see all these via dovecot too, right? And in a folder displayed as something like INBOX/Design by your mail client.
I wonder what would happen if I renamed Design to Pattern?
That still wouldn't be correct. It should be named .Pattern.
I wonder if .INBOX.Design would then show up?
Oh inbox.design does not show up via imap?
And if it did, would I be able to simply move the messages into the correct folder using a file manager?
In theory, yes, but you'd have to look out for filename clashes.
Here's how maildir works: Maildir/ cur/ <- all mails in INBOX go here new/ <- new mails stored here until dovecot moves them to cur tmp/ .INBOX/ <- only dovecot control stuff in here .FOLDER/ cur/ <- mails in FOLDER go here new/ <- new mails stored here until dovecot moves them to cur tmp/ .INBOX.FOLDER/ cur,new,tmp - mail for subfolder FOLDER of INBOX go here.
Maybe dovecot is tripped up by the fact that you indeed have .Design, but it isn't a folder. Selecting it in your mail client (if it shows) should give an error (dovecot has an option to ignore non-directories, so that might be on too)
johannes
On Friday 27 Jan 2006 19:32, Johannes Berg wrote:
On Fri, 2006-01-27 at 19:25 +0000, Anne Wilson wrote:
The text file looks exactly like an mbox file - it is the two messages, complete with headers, concatenated.
That's strange. It probably includes From .... lines too, making it a complete mbox file.
Exactly.
There already is an .INBOX.Design folder, set up with all the correct contents.
Except the missing two mails? I guess you see all these via dovecot too, right? And in a folder displayed as something like INBOX/Design by your mail client.
I wonder what would happen if I renamed Design to Pattern?
That still wouldn't be correct. It should be named .Pattern.
I wonder if .INBOX.Design would then show up?
Oh inbox.design does not show up via imap?
I'm beginning to think that the Design folder I can see is the correct, empty folder.
And if it did, would I be able to simply move the messages into the correct folder using a file manager?
In theory, yes, but you'd have to look out for filename clashes.
Renaming the dud folder to .Pattern didn't make it show up in the MUA.
Here's how maildir works: Maildir/ cur/ <- all mails in INBOX go here new/ <- new mails stored here until dovecot moves them to cur tmp/ .INBOX/ <- only dovecot control stuff in here .FOLDER/ cur/ <- mails in FOLDER go here new/ <- new mails stored here until dovecot moves them to cur tmp/ .INBOX.FOLDER/ cur,new,tmp - mail for subfolder FOLDER of INBOX go here.
Maybe dovecot is tripped up by the fact that you indeed have .Design, but it isn't a folder. Selecting it in your mail client (if it shows) should give an error (dovecot has an option to ignore non-directories, so that might be on too)
I didn't see any error.
OK - I've copied the two messages from .Pattern/cur into .INBOX.Design/cur (they were in new, but have jumped across to cur!). Now when I use kmail from here to check mail it flags up that there are two unread messages but if I try to read them they flash on screen and immediately they are invisible again.
It's probably not worth worrying any more about them - unless there is a likelihood that I have corrupted indexes. They were only test messages, and I can replace them. Is the following procmail rule correct, though, for putting them into .INBOX.Design?
:0:
- ^To:.*design@lydgate.org ${MAILDIR}.Design
Anne
Registered Linux User No.293302 (http://counter.li.org/)
On Friday 27 Jan 2006 19:56, Anne Wilson wrote:
It's probably not worth worrying any more about them - unless there is a likelihood that I have corrupted indexes. They were only test messages, and I can replace them. Is the following procmail rule correct, though, for putting them into .INBOX.Design?
:0:
- ^To:.*design@lydgate.org ${MAILDIR}.Design
<Stands back in amazement> .Pattern has appeared in my folder list. I have moved the messages from .Pattern to .Design, and all is well. I can see them!
That just leaves the question of the procmail recipe. Will the messages end up in the right place?
Anne
On Fri, 2006-01-27 at 18:44 +0000, Anne Wilson wrote:
visible in a file manager in ~/Maildir/Design/new. However, using my ^^^^^^^^^^^^^^^^^^^^^
That doesn't look like a correct maildir path. It should be '.Design' instead of 'Design'. Let me guess: You don't even see the folder.
johannes
On Friday 27 Jan 2006 18:59, Johannes Berg wrote:
On Fri, 2006-01-27 at 18:44 +0000, Anne Wilson wrote:
visible in a file manager in ~/Maildir/Design/new. However, using my
^^^^^^^^^^^^^^^^^^^^^
That doesn't look like a correct maildir path. It should be '.Design' instead of 'Design'. Let me guess: You don't even see the folder.
johannes
I see the folder, but you are right, it's wrongly set up. See my second message. Thanks for replying. Any more ideas?
Anne
Registered Linux User No.293302 (http://counter.li.org/)
Anne Wilson wrote:
On Friday 27 Jan 2006 18:59, Johannes Berg wrote:
On Fri, 2006-01-27 at 18:44 +0000, Anne Wilson wrote:
visible in a file manager in ~/Maildir/Design/new. However, using my ^^^^^^^^^^^^^^^^^^^^^
That doesn't look like a correct maildir path. It should be '.Design' instead of 'Design'. Let me guess: You don't even see the folder.
johannes
I see the folder, but you are right, it's wrongly set up. See my second message. Thanks for replying. Any more ideas?
Anne
In a shell:
cd ~/Maildir mv <old folder name> <new folder name>
that'll just rename the folder. If you also need to move the folder within the hierarchy do it as a separate step.
Leeman
participants (3)
-
Anne Wilson
-
Johannes Berg
-
Leeman Strout