@index_fields = ( "subject", "from", "to", "date", "size",
"x-spam-status", "message-id" );
+$create_cid_count = 0;
# mailbox_list_mails(start, end, &folder, [headersonly], [&error])
# Returns an array whose size is that of the entire folder, with messages
{
local ($args, $cidmap) = @_;
if ($args =~ /attach=(\d+)/) {
- $cidmap->{$1} = time().$$;
+ $create_cid_count++;
+ $cidmap->{$1} = time().$$.$create_cid_count;
return "cid:".$cidmap->{$1};
}
else {